Skip to content

Commit 481363b

Browse files
committed
Remove unnecesary values from paths.yml
1 parent 0db1381 commit 481363b

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

lib/generators/react_on_rails/templates/base/base/config/webpack/paths.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
# Used by webpacker_lite to configure the helpers and by webpack from the
2+
# client/webpack.config.js file, in variable `paths`.
13
default: &default
24
output: public
3-
assets: webpack
45
manifest: manifest.json
5-
node_modules: client/node_modules
6-
source: client/app
76

87
development:
98
<<: *default

spec/dummy/client/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
"scripts": {
6969
"lint": "eslint --ext .js,.jsx .",
7070
"test": "yarn run build:test && rspec",
71-
"build:test": "NODE_ENV=test yarn run build:client && NODE_ENV=test yarn run build:server",
72-
"build:production:client": "NODE_ENV=production webpack --config webpack.client.rails.build.config.js",
73-
"build:production:server": "NODE_ENV=production webpack --config webpack.server.rails.build.config.js",
74-
"build:client": "webpack --config webpack.client.rails.build.config.js",
71+
"build:test": "yarn run build:test:client && yarn run build:test:server",
72+
"build:test:client": "NODE_ENV=test webpack --config webpack.client.rails.build.config.js",
73+
"build:test:server": "NODE_ENV=test webpack --config webpack.server.rails.build.config.js",
7574
"build:dev:client": "NODE_ENV=development webpack -w --config webpack.client.rails.build.config.js",
7675
"build:dev:server": "NODE_ENV=development webpack -w --config webpack.server.rails.build.config.js",
77-
"build:server": "webpack --config webpack.server.rails.build.config.js",
76+
"build:production:client": "NODE_ENV=production webpack --config webpack.client.rails.build.config.js",
77+
"build:production:server": "NODE_ENV=production webpack --config webpack.server.rails.build.config.js",
7878
"hot-assets": "NODE_ENV=development babel-node server-rails-hot.js",
7979
"install-react-on-rails": "rm -rf node_modules/react-on-rails && npm i 'file:../../..'"
8080
},

spec/dummy/config/webpack/paths.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
# Used by webpacker_lite to configure the helpers and by webpack from the
2+
# client/webpack.client.base.config.js and other sibling config files, using variable `paths`.
13
default: &default
2-
config: client/webpack
34
output: public
4-
assets: webpack
55
manifest: manifest.json
6-
source: client/app
76

87
development:
98
<<: *default

0 commit comments

Comments
 (0)