Skip to content

Commit ea945e2

Browse files
authored
Merge pull request #92 from marmelab/run-project
[RFR] Fix make watch
2 parents 80e7000 + 983f133 commit ea945e2

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"tabWidth": 4
5+
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ install: package.json ## Install dependencies
1010
@$(PKG) install
1111

1212
watch: ## continuously compile ES6 files to JS
13-
NODE_ENV=development ./node_modules/.bin/rollup -c --watch
13+
NODE_ENV=development ./node_modules/.bin/webpack --watch
1414

1515
test: ## Launch unit tests
1616
@NODE_ENV=test ./node_modules/.bin/jest

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
},
2222
],
2323
],
24-
plugins: ['add-module-exports', '@babel/plugin-external-helpers'],
24+
plugins: ['add-module-exports'],
2525
},
2626
production: {
2727
presets: [
@@ -32,7 +32,7 @@ module.exports = {
3232
},
3333
],
3434
],
35-
plugins: ['add-module-exports', '@babel/plugin-external-helpers'],
35+
plugins: ['add-module-exports'],
3636
},
3737
},
3838
};

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ let libraryName = 'json-graphql-server';
55
let plugins = [];
66
let outputFile;
77

8-
if (process.env.node_env === 'production') {
8+
if (process.env.NODE_ENV === 'production') {
99
outputFile = target => `${libraryName}.${target}.min.js`;
1010
} else {
1111
outputFile = target => `${libraryName}.${target}.js`;
1212
}
1313

1414
const defaultConfig = {
1515
devtool: 'source-map',
16-
mode: process.env.node_env === 'production' ? 'production' : 'development',
16+
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
1717
module: {
1818
rules: [
1919
{

0 commit comments

Comments
 (0)