Browse Source

Leave only node 6.14 build #27

pull/1/head
Alexey Velikiy 7 years ago
parent
commit
701708552f
  1. 2
      server/build/dev-server.js
  2. 4
      server/build/webpack.614.prod.conf.js
  3. 2
      server/build/webpack.base.conf.js
  4. 5
      server/package.json

2
server/build/dev-server.js

@ -10,7 +10,7 @@ env.LOG_LEVEL = 'debug';
const nodemon = spawn( const nodemon = spawn(
'nodemon', 'nodemon',
['--exec', '"node --inspect dist/server.js"'], ['--exec', '"node --inspect dist/server-dev.js"'],
{ env: env, shell: true } { env: env, shell: true }
); );

4
server/build/webpack.614.prod.conf.js

@ -11,9 +11,9 @@ module.exports = {
__dirname: false, __dirname: false,
__filename: false, __filename: false,
}, },
entry: [ 'babel-polyfill', './dist/server.js' ], entry: [ 'babel-polyfill', './dist/server-dev.js' ],
output: { output: {
filename: "server-6-14.js", filename: "server.js",
path: path.join(__dirname, '../dist') path: path.join(__dirname, '../dist')
}, },
module: { module: {

2
server/build/webpack.base.conf.js

@ -16,7 +16,7 @@ module.exports = {
}, },
entry: [ './src/index.ts' ], entry: [ './src/index.ts' ],
output: { output: {
filename: "server.js", filename: "server-dev.js",
path: resolve('dist') path: resolve('dist')
}, },
optimization: { optimization: {

5
server/package.json

@ -5,9 +5,8 @@
"scripts": { "scripts": {
"start": "node dist/server.js", "start": "node dist/server.js",
"dev": "node build/dev-server.js", "dev": "node build/dev-server.js",
"build": "webpack --config build/webpack.prod.conf.js", "build-prod": "webpack --config build/webpack.prod.conf.js",
"6-14-start": "node dist/server-6-14.js", "build": "npm run build-prod && webpack --config build/webpack.614.prod.conf.js"
"6-14-build": "npm run build && webpack --config build/webpack.614.prod.conf.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

Loading…
Cancel
Save