From 4f75e7fc1676a8f84f6107bb37dff5acc9e8c3db Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 31 Jul 2017 12:02:33 -0700 Subject: [PATCH] Remove NPM script for compiling CSS. --- package.json | 3 +-- tasks/ui_framework.js | 3 +-- ui_framework/README.md | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7ce4b92a2727..cd9aab51392b 100644 --- a/package.json +++ b/package.json @@ -63,8 +63,7 @@ "mocha": "echo 'use `node scripts/mocha`' && false", "sterilize": "grunt sterilize", "uiFramework:start": "grunt uiFramework:start", - "uiFramework:build": "grunt uiFramework:build", - "uiFramework:compileCss": "grunt uiFramework:compileCss" + "uiFramework:build": "grunt uiFramework:build" }, "repository": { "type": "git", diff --git a/tasks/ui_framework.js b/tasks/ui_framework.js index 386d0b642186..497f647ca9d7 100644 --- a/tasks/ui_framework.js +++ b/tasks/ui_framework.js @@ -110,9 +110,8 @@ module.exports = function (grunt) { // Compile the SCSS in a separate process because node-sass throws a fatal error if it fails // to compile. grunt.util.spawn({ - cmd: 'npm', + cmd: isPlatformWindows ? '.\\node_modules\\.bin\\grunt.cmd' : './node_modules/.bin/grunt', args: [ - 'run', 'uiFramework:compileCss', ], }, (error, result) => { diff --git a/ui_framework/README.md b/ui_framework/README.md index 4f7794d61ce3..61bb97d16ba5 100644 --- a/ui_framework/README.md +++ b/ui_framework/README.md @@ -7,7 +7,8 @@ ### Documentation -Compile the CSS with `npm run uiFramework:compileCss`. +Compile the CSS with `./node_modules/grunt/bin/grunt uiFramework:compileCss` (OS X) or +`.\node_modules\grunt\bin\grunt uiFramework:compileCss` (Windows). You can view interactive documentation by running `npm run uiFramework:start` and then visiting `http://localhost:8020/`. This will also start watching the SCSS files, and will recompile the CSS