Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Commit 5a1fa0f

Browse files
mcaspersonhjacobs
authored andcommitted
Windows build fixes (#192)
* Forced checkouts to use LF line endings and added NPM cripts for windows * Updated the readme * Removed verbose logs
1 parent 355401d commit 5a1fa0f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

app/README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@ Frontend development is supported by watching the source code and continuously r
1212
.. code-block:: bash
1313
1414
$ npm start
15+
16+
Windows uses slightly different scripts. This will build the JavaScript app in Windows:
17+
18+
.. code-block:: powershell
19+
20+
$ npm install
21+
$ npm run buildwin
22+
23+
This will start the code watch and rebuild script in Windows:
24+
25+
.. code-block:: powershell
26+
27+
$ npm run startwin

app/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
"scripts": {
1010
"prestart": "npm install",
1111
"start": "NODE_ENV=development webpack --watch",
12+
"startwin": "SET NODE_ENV=development & webpack --watch",
1213
"webpack": "webpack -p --config ./webpack.config.js",
1314
"build": "NODE_ENV=production npm run webpack",
15+
"buildwin": "SET NODE_ENV=production & npm run webpack",
1416
"prewebpack": "npm run clean",
1517
"lint": "eslint ./src/**/*.js",
1618
"clean": "rimraf $npm_package_config_buildDir && mkdir $npm_package_config_buildDir"

0 commit comments

Comments
 (0)