Ray Schamp
1e7bd97987
Merge pull request #910 from rschamp/bugfix/787
...
Add Cache-Control header to all S3 uploads
2016-09-21 16:51:38 -04:00
Matthew Taylor
dc209f466a
Fall back to doing it the svg way
2016-08-04 08:35:30 -04:00
Matthew Taylor
3a6ed90e72
Don’t use mime magic to guess
...
hopefully just using file extensions works
2016-08-04 08:24:02 -04:00
Matthew Taylor
538aed21eb
remove extra space
2016-08-04 08:04:45 -04:00
Matthew Taylor
1013f260b9
Use guess-mime-type
to get the right file type
...
should help with some header issues we’re seeing. Also remove `x-frame-options` meta tag, since it’s not acknolwedged by some browsers (like Chrome).
2016-08-04 08:02:45 -04:00
Ray Schamp
a0ba19a2c1
Force SVG mimetype
2016-05-31 10:42:54 -04:00
Ray Schamp
1322e25cc2
Upload svgs with MIME type image/svg+xml
...
Unfortunately there's no way to map extensions to MIME type. The s3cmd tool guesses wrong and uploads svgs with text/html. Upload everything but svgs first, then upload only svgs using the correct MIME type.
2016-05-20 11:36:10 -04:00
Ray Schamp
acf0f1c298
Merge pull request #486 from rschamp/bugfix/remove-tag
...
Remove tag target
2016-05-17 16:27:13 -04:00
Ray Schamp
82f3f5782c
Remove tag target
...
Missed this when we moved that task to webpack.
2016-05-17 13:56:38 -04:00
Ray Schamp
b0b520fe18
Lint JSON, expand and simplify lint step
2016-05-16 13:02:55 -04:00
Ray Schamp
dd1c2c1627
Use s3cmd to sync with S3
2016-04-29 15:52:15 -04:00
Ray Schamp
669a8c9ae3
Mark version with webpack
2016-04-28 15:40:50 -04:00
Matthew Taylor
2eb62e8ab3
move component convention back to what it was
...
formerly presentation components such as `navigation` and `footer` have been nested, and renamed to `container` inside their respective component subdirs
2016-04-21 18:13:21 -04:00
Matthew Taylor
9b52097c38
Update lint paths for new component structure
2016-04-21 16:49:32 -04:00
Ray Schamp
ff70324fb5
Use s3 module to deploy to S3
2016-04-19 16:35:51 -04:00
Ray Schamp
303b5c44a8
Lint bin subdirectories
2016-04-19 10:47:33 -04:00
Ray Schamp
eb5edc293d
Linting
2016-04-18 14:07:27 -04:00
Ray Schamp
43788eb7d8
Split server and routes/config
...
Turn HtmlGeneratorPlugin into a module
Turn server into dev-server and simplify it
2016-04-18 14:07:11 -04:00
Ray Schamp
de5f36b649
Add script for configuring Fastly for S3
...
* Builds the Pass condition based on the static directory and view routes.
* Updates Fastly with new header and conditions based on the view routes.
* Uses a nice module for interacting with fastly :)
Needs some major cleanup but it works. Hopefully Travis will work too.
2016-04-15 19:42:57 -04:00
Matthew Taylor
c448b15dd4
Refactor build-locales a bit
...
This makes a couple of procedure-specific parts into methods in `locale-compare`, so that they can be tested more readily.
2016-03-23 08:22:09 -04:00
Matthew Taylor
b123650988
Add localization spot checks
...
1. checks the localization for a few reference languages for the nav bar
2. for our localized pages (splash, about, wedo2), it checks to see that there are locale strings, whether or not they're english (to make sure at least something is on the page).
2016-03-22 16:26:16 -04:00
Matthew Taylor
ceec694b2a
Revert "Migrate to using a loader method"
...
This reverts commit 214430b0c4
.
2016-01-08 13:50:58 -05:00
Matthew Taylor
214430b0c4
Migrate to using a loader method
...
This moves all locale/translation building to a dependency, `scratch-www-intl-loader`, as well as tests associated with it. Also gets rid of the `make translations` step.
2016-01-07 17:01:57 -05:00
Matthew Taylor
21668d6915
Fix tests
2016-01-06 15:08:54 -05:00
Matthew Taylor
8ae98d703f
Make localizations view-based
...
1. Load locale strings into `window._messages` in a separate file added to `template.html`, which contains view-specific and general strings
2. Update build-locales to compile separate files
2016-01-06 14:09:32 -05:00
Ray Schamp
70a0a2d4c4
Rename version to tag to match scratch-api
2015-11-20 11:08:42 -05:00
Ray Schamp
7983d7601b
Quiet EB config status check command
2015-11-20 11:07:39 -05:00
Ray Schamp
82fe07ed8b
Add version.txt file to build directory on build
2015-11-20 11:07:39 -05:00
Ray Schamp
fafff50401
Merge pull request #209 from rschamp/feature/developers-developers-developers
...
Use webpack-dev-middleware for assets in dev
2015-11-20 11:04:10 -05:00
Ray Schamp
3afcd7fd9f
Remove watch
and stop
targets, update README
2015-11-19 15:59:30 -05:00
Ray Schamp
c065df3faa
Use webpack for static assets
2015-11-19 15:25:39 -05:00
Matthew Taylor
fc834b8817
Move scripts to new lib
folder
...
Thanks @thisandagain for the tip!
2015-11-19 10:05:38 -05:00
Matthew Taylor
ca10232498
Clean up build-locales
and add tests for it.
...
1. Use md5 compare instead of string compare for determining presence of translation
2. Strip out whitespace before doing md5 compare
2015-11-09 11:40:36 -05:00
Ray Schamp
b278aa05f5
Add deploy
make target
...
Now that we send the build artifact to EB from Travis, we have to do the same thing locally.
2015-11-03 12:51:45 -05:00
Ray Schamp
07e1a96811
Test the build when we test our build
...
Use webpack --bail to actually return 1 when the build fails
2015-10-21 13:43:26 -04:00
Andrew Sliwinski
9d9a2ca491
Remove nginx build process and clean-up for production
2015-10-20 12:48:32 -04:00
Andrew Sliwinski
0f89152399
Create locale directory if it does not exist
2015-10-19 20:35:36 -04:00
Matthew Taylor
be5d8cd3eb
use po2icu
to get po files as json icu files
2015-10-15 23:02:57 -04:00
Ray Schamp
4fdc4dc49d
Make start also watch, and allow stop to kill it
2015-10-08 16:21:39 -06:00
Ray Schamp
c3bc59fee2
Add a Sass linter
2015-09-24 18:32:21 -04:00
Ray Schamp
2e57805192
Move session from providers to beside main
2015-09-24 18:13:30 -04:00
Ray Schamp
54cca4ef96
Don't lint json in providers
2015-09-22 10:26:20 -04:00
Ray Schamp
d6576409f1
Something like session handling
2015-09-22 10:26:19 -04:00
Andrew Sliwinski
5eca8d03ae
Add deployment configuration
2015-09-19 19:25:54 -04:00
Colby Gutierrez-Kraybill
1cf6cedaee
Initial nginx config generation, can use environment variabes PORT and SERVER_NAME. Dynamically figures out static regex based on build directory
2015-09-16 15:09:15 -04:00
Ray Schamp
2b2029f335
Add a command to stop the watch command
2015-09-08 14:56:54 -04:00
Andrew Sliwinski
3716d0462c
Merge and resolve feedback from review
2015-09-04 08:26:18 -07:00
Andrew Sliwinski
41176aaee1
Extend build process to support multiple views
2015-09-03 22:26:56 -07:00
Andrew Sliwinski
9ba3f729cf
Avoid port conflict with vagrant and clarify readme
2015-09-02 14:59:31 -07:00
Andrew Sliwinski
121b0e106f
Use linux compatible glob strings in makefile
2015-09-02 14:40:14 -07:00