From 71af092b3a043f65b245411b3814722c7368124f 2019-03-09 23:25:49 From: Marcin Lulek Date: 2019-03-09 23:25:49 Subject: [PATCH] package.json: add npm scripts --- diff --git a/frontend/package.json b/frontend/package.json index 826e9e4..6e3b917 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -28,6 +28,7 @@ "scripts": { "bower": "bower install", "build": "grunt", - "watch": "grunt watch" + "watch": "grunt watch", + "watch:dev": "grunt watch:dev" } } diff --git a/frontend/readme.rst b/frontend/readme.rst index cf2f4c9..0f9f1b7 100644 --- a/frontend/readme.rst +++ b/frontend/readme.rst @@ -4,20 +4,18 @@ Javascript frontend for AppEnlight To fetch all the requirememts you need to have nodejs and npm installed on your dev machine, then from this dir execute:: npm install - npm install -g bower - npm install -g grunt-cli - bower install + npm run bower This will fetch all the required components to build front with grunt. To build production version (builds both js and css) just run:: - grunt + npm run build To work on dev code version (builds js with comments and css) run: - grunt watch + npm rum grunt watch You generally shouldn't need to run those separately but still: