Skip to content

Commit 2582c12

Browse files
committed
dependencies update
1 parent 3f5ca15 commit 2582c12

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

demo/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,3 @@ node_modules/*
3030

3131
# added automatically by precommit-hook as defaults
3232
.jshint*
33-
34-
dist/
35-
!node_modules/awesome-theme

demo/app/worker.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
'use strict';
22

33
const express = require('express');
4-
const hook = require('css-modules-require-hook');
54
const path = require('path');
65
const viewEngine = require('./view-engine');
76

87
const config = require('../package').config;
98
const app = express();
109

11-
hook({
12-
generateScopedName: config.css,
13-
});
10+
require('css-modules-require-hook/preset');
1411

1512
// setting rendering engine
1613
app.engine('js', viewEngine);

demo/cmrh.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = require('./package').config;
2+
3+
module.exports = {
4+
generateScopedName: config.css,
5+
};

demo/package.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,22 @@
1717
],
1818
"author": "Alexey Litvinov",
1919
"license": "MIT",
20+
"dependencies": {
21+
"css-modules-require-hook": "^3.0.0-beta",
22+
"express": "^4.13.4",
23+
"react": "^0.14.7",
24+
"react-dom": "^0.14.7"
25+
},
2026
"devDependencies": {
21-
"babel-loader": "^6.2.1",
22-
"css-loader": "^0.23.1",
27+
"babel-core": "^6.5.2",
28+
"babel-loader": "^6.2.3",
29+
"babel-preset-es2015": "^6.5.0",
30+
"babel-preset-react": "^6.5.0",
31+
"babel-preset-stage-0": "^6.5.0",
32+
"css-loader": "0.23.1",
2333
"extract-text-webpack-plugin": "^1.0.1",
24-
"style-loader": "^0.13.0",
25-
"webpack": "^1.12.10"
26-
},
27-
"dependencies": {
28-
"babel-core": "^6.4.0",
29-
"babel-preset-es2015": "^6.3.13",
30-
"babel-preset-react": "^6.3.13",
31-
"babel-preset-stage-0": "^6.3.13",
32-
"css-modules-require-hook": "^2.1.0",
33-
"express": "^4.13.3",
34-
"lodash": "^3.10.1",
35-
"postcss": "^5.0.14",
36-
"postcss-modules-extract-imports": "^1.0.0",
37-
"postcss-modules-local-by-default": "^1.0.1",
38-
"postcss-modules-scope": "^1.0.0",
39-
"postcss-modules-values": "^1.1.1",
40-
"react": "^0.14.6",
41-
"react-dom": "^0.14.6"
34+
"npm-install-webpack-plugin": "^2.0.2",
35+
"style-loader": "0.13.0",
36+
"webpack": "^1.12.14"
4237
}
4338
}

demo/webpack.config.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
'use strict';
22

33
const ExtractTextPlugin = require('extract-text-webpack-plugin');
4-
const path = require('path');
4+
const NpmInstallPlugin = require('npm-install-webpack-plugin');
5+
const resolve = require('path').resolve;
56

67
const config = require('./package').config;
78

89
module.exports = {
9-
entry: path.resolve('app/browser.js'),
10+
entry: resolve('app/browser.js'),
1011

1112
output: {
1213
filename: 'browser.js',
13-
path: path.resolve('static'),
14+
path: resolve('static'),
1415
},
1516

1617
module: {
@@ -32,5 +33,10 @@ module.exports = {
3233
new ExtractTextPlugin('common.css', {
3334
allChunks: true
3435
}),
36+
new NpmInstallPlugin({
37+
cacheMin: 999999,
38+
saveDev: true,
39+
saveExact: true,
40+
}),
3541
],
3642
};

0 commit comments

Comments
 (0)