Windows build fixes (#192)

* Forced checkouts to use LF line endings and added NPM cripts for windows

* Updated the readme

* Removed verbose logs
This commit is contained in:
Matthew Casperson
2018-12-27 20:11:26 +10:00
committed by Henning Jacobs
parent 355401deeb
commit 5a1fa0f1c4
3 changed files with 16 additions and 0 deletions

View File

@@ -12,3 +12,16 @@ Frontend development is supported by watching the source code and continuously r
.. code-block:: bash
$ npm start
Windows uses slightly different scripts. This will build the JavaScript app in Windows:
.. code-block:: powershell
$ npm install
$ npm run buildwin
This will start the code watch and rebuild script in Windows:
.. code-block:: powershell
$ npm run startwin

View File

@@ -9,8 +9,10 @@
"scripts": {
"prestart": "npm install",
"start": "NODE_ENV=development webpack --watch",
"startwin": "SET NODE_ENV=development & webpack --watch",
"webpack": "webpack -p --config ./webpack.config.js",
"build": "NODE_ENV=production npm run webpack",
"buildwin": "SET NODE_ENV=production & npm run webpack",
"prewebpack": "npm run clean",
"lint": "eslint ./src/**/*.js",
"clean": "rimraf $npm_package_config_buildDir && mkdir $npm_package_config_buildDir"