Browse Source

fixed build for windoz

AlexiCauvin 6 years ago
parent
commit
b81de89072
1 changed files with 3 additions and 1 deletions
  1. 3 1
      frontend_lib/package.json

+ 3 - 1
frontend_lib/package.json View File

9
     "servdev-dashboard": "NODE_ENV=development webpack-dashboard -m -p 9870 -- webpack-dev-server --watch --colors --inline --hot --progress",
9
     "servdev-dashboard": "NODE_ENV=development webpack-dashboard -m -p 9870 -- webpack-dev-server --watch --colors --inline --hot --progress",
10
     "buildwindoz": "set NODE_ENV=production&& webpack -p",
10
     "buildwindoz": "set NODE_ENV=production&& webpack -p",
11
     "build": "NODE_ENV=production webpack -p",
11
     "build": "NODE_ENV=production webpack -p",
12
+    "build-translation": "node i18next.scanner.js",
12
     "buildtracimlib": "NODE_ENV=production webpack -p && echo '/* eslint-disable */' | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_frontend_lib.js",
13
     "buildtracimlib": "NODE_ENV=production webpack -p && echo '/* eslint-disable */' | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_frontend_lib.js",
13
-    "buildtracimlibwindoz": "set NODE_ENV=production&& webpack -p && echo '/* eslint-disable */' | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_frontend_lib.js",
14
+    "buildtracimlibwindoz": "set NODE_ENV=production&& webpack -p && echo /* eslint-disable */ | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && echo /* eslint-enable */>> dist/tracim_frontend_lib.js",
14
     "test": "echo \"Error: no test specified\" && exit 1"
15
     "test": "echo \"Error: no test specified\" && exit 1"
15
   },
16
   },
16
   "author": "",
17
   "author": "",
44
     "whatwg-fetch": "^2.0.3"
45
     "whatwg-fetch": "^2.0.3"
45
   },
46
   },
46
   "devDependencies": {
47
   "devDependencies": {
48
+    "i18next-scanner": "^2.6.1",
47
     "webpack-dashboard": "^1.1.1",
49
     "webpack-dashboard": "^1.1.1",
48
     "webpack-dev-server": "^2.9.2"
50
     "webpack-dev-server": "^2.9.2"
49
   },
51
   },