-
Notifications
You must be signed in to change notification settings - Fork 135
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
Simplify gulp by removing separate prod/dev scripts #854
Conversation
fd73763
to
b977c2b
Compare
@@ -32,17 +32,19 @@ var environmentAssets, | |||
|
|||
/** | |||
* Load config + assets | |||
* Note that loading config before `env:*` | |||
* tasks would load configs with wrong environment | |||
*/ | |||
function loadConfig(done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This task should be removed.
Is this still a work in progress? Is it ready for a review? |
I'd say it's 80% done and up for grabs if you would like to get familiar with it. :-) Gulp is quite simple. The problem is that our tests expect |
This pull request is marked as unloved because it has not had any activity for 180 days. It doesn't mean it's not important, so please remove the unloved label if you like it, or add a comment saying what it means to you :) However, if you just leave it like this, I'll close it in 14 days to help keep your pull requests tidy! Thanks! |
Work in progress.
The idea is that instead of:
we would have:
NODE_ENV=production npm run build npm run build # defaulting to "development"
and the same for:
NODE_ENV=production npm run start npm run start # defaulting to "development"
It's just a bit annoying how tests are currently set up with their own
NODE_ENV=test
env so this will need some further work to play nicely. Might be I can chop this into two smaller PRs: tests and the rest.Testing
NODE_ENV=development
if none is setnpm start
andnpm build
should produce different builds withNODE_ENV=production
andNODE_ENV=development
npm run test:*
scripts should work and not wipe out development database