-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add build step to CI #499
Add build step to CI #499
Changes from 2 commits
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
before_script: | ||
- "npm run travis-builds" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ | |
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack", | ||
"lint": "eslint .", | ||
"dev": "cross-env BABEL_ENV=default webpack --watch", | ||
"test": "npm run lint && npm run test-unit" | ||
"test": "npm run lint && npm run test-unit", | ||
"travis-builds": "concurrently \"npm run build\" \"cross-env BABEL_ENV=default webpack\" \"cross-env BABEL_ENV=default NODE_ENV=test webpack\"" | ||
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 don't know that we need to build all the environments. I think this could be simplified to: "ci": "concurrently \"npm run build\" \"npm test\"" (Assuming Aside: How do you feel about the Can we also fix the whitespace here to use spaces instead of tabs? Spaces are an exception for this file because the default behavior of 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. Can't use npm test persee only test env as 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. Wait nvm confusing that with dev. 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. Good catch on the tab as well :). Those sound like good changes. |
||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^6.7.7", | ||
|
@@ -28,6 +29,7 @@ | |
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-latest": "^6.24.0", | ||
"chai": "^3.5.0", | ||
"concurrently": "^3.4.0", | ||
"cross-env": "^3.2.4", | ||
"deep-freeze": "0.0.1", | ||
"dirty-chai": "^1.2.2", | ||
|
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.
Thinking since we're customizing the build so much at this point we may as well override
script
instead of defining asbefore_script
, then move all tasks (including defaulttest
) into a newci
npm script.