diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..07764a7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf \ No newline at end of file diff --git a/app/README.rst b/app/README.rst index b12d516..a6ea632 100644 --- a/app/README.rst +++ b/app/README.rst @@ -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 diff --git a/app/package.json b/app/package.json index 198e02d..3884466 100644 --- a/app/package.json +++ b/app/package.json @@ -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"