-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix build & add node 10 #64
Changes from all 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,8 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- 9 | ||
- 12 | ||
- 10 | ||
- 8 | ||
- 7 | ||
- 6 | ||
cache: yarn | ||
script: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,25 +18,17 @@ module.exports = { | |
main: './test/main_test', | ||
}, | ||
|
||
plugins: [ | ||
new webpack.DefinePlugin({ __VALUEA__: 10 }), | ||
], | ||
plugins: [new webpack.DefinePlugin({__VALUEA__: 10})], | ||
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. sorry for this noise; I'm guessing this was prettier kicking in since I changed this file? |
||
|
||
output: { | ||
path: path.resolve(__dirname, './dest'), | ||
filename: 'bundle.js', | ||
filename: '[name].js', | ||
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. this is the fix for the aforementioned |
||
}, | ||
|
||
resolve: { | ||
root: [ | ||
path.resolve(__dirname, './src'), | ||
path.resolve(__dirname, './test'), | ||
], | ||
root: [path.resolve(__dirname, './src'), path.resolve(__dirname, './test')], | ||
extensions: ['', '.js'], | ||
modules: [ | ||
__dirname, | ||
path.resolve(__dirname, './node_modules'), | ||
], | ||
modules: [__dirname, path.resolve(__dirname, './node_modules')], | ||
}, | ||
|
||
resolveLoader: { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
"jsdom": "^11.7.0", | ||
"karma-jasmine": "^1.1.1", | ||
"karma-jsdom-launcher": "^6.1.3", | ||
"karma-webpack": "^3.0.0", | ||
"karma-webpack": "^4.0.0", | ||
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. technically, karma-webpack 3 isn't meant to be used with webpack 4 (codymikol/karma-webpack@c1c0ee2) so I bumped it for the webpack 4 example |
||
"karma": "^2.0.0", | ||
"webpack": "~4" | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ module.exports = { | |
|
||
output: { | ||
path: path.resolve(__dirname, './dest'), | ||
filename: 'bundle.js', | ||
filename: '[name].js', | ||
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. this is more for consistency with the the other examples, but we could technically use |
||
}, | ||
|
||
resolve: { | ||
|
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.
looks like some modules are only compatible with LTS versions of node so I also removed 9 & 7