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:
committed by
Henning Jacobs
parent
355401deeb
commit
5a1fa0f1c4
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* text eol=lf
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user