From 1ccee87a4a2bfa1cbdc4c9791c17626d9a699dbd Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 27 Mar 2015 13:58:40 -0700 Subject: [PATCH] Added commandline commands to package.json This enables the "npm run" commands as abstraction aliases into storyboard's build environment. Rather than having to know about grunt, or karma, or any of the other tools that we use, a user can now simply execute 'npm run package' or 'npm run lint' and get the expected results with no foreknowledge. It also allows us to decouple our infra tooling from being grunt aware. Change-Id: I8a5b665aca6586b0831e8441614e96173b450e17 --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3066d7de..281d9fd9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,14 @@ "description": "An all-javascript webclient for the Storyboard API", "main": "index.html", "scripts": { - "test": "grunt test" + "clean": "./node_modules/.bin/grunt clean", + "lint": "./node_modules/.bin/grunt eslint", + "test:unit": "./node_modules/.bin/grunt test:unit", + "test:functional": "./node_modules/.bin/grunt test:functional", + "test:integration": "./node_modules/.bin/grunt test:integration", + "draft": "./node_modules/.bin/grunt build:draft", + "build": "./node_modules/.bin/grunt build", + "serve": "./node_modules/.bin/grunt serve" }, "repository": "", "keywords": [