-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Build default language with locale (adds preserveLocale flag) #1940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
6153962
cb37e5a
e9ce1c9
539c3d6
c16b5ef
d851b97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,10 +5,11 @@ | |
| "homepage": "https://nodejs.org", | ||
| "scripts": { | ||
| "build": "node build.js", | ||
| "build:deploy":"node build.js --preserveLocale", | ||
| "serve": "node server.js", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we also have
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think while developing is less needed to build all the files for every language. I think it's more relevant when deploying. But a second script in package.json might help. Current options to serve with preserveLocale are: I could add a script to run: |
||
| "external:survey": "rsync -avz --exclude 'node_modules*' --exclude 'package*' external/survey-2018/ build/en/user-survey-report", | ||
| "gzip": "find build -type f \\( -name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.xml' -o -name '*.json' \\) -exec gzip -kf9 {} \\;", | ||
| "deploy": "npm run load-schedule && npm run build && npm run external:survey && npm run gzip", | ||
| "deploy": "npm run load-schedule && npm run build:deploy && npm run external:survey && npm run gzip", | ||
| "load-versions": "node scripts/load-versions.js", | ||
| "load-schedule": "curl -sS https://raw.githubusercontent.com/nodejs/Release/master/schedule.json -o source/schedule.json", | ||
| "start": "npm run serve", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.