From 4d6e7dfc3ed4a5e72e5c4c9d44f782f15b8543b3 Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Wed, 2 Mar 2016 20:46:35 +0100 Subject: [PATCH] Use local version of gulp in build steps. Previously developers had to install gulp globally on their machine to build the project. These changes changes that by using the already locally installed version of gulp, removing the environment requirements aswell as ensuring everyone are using the same version of gulp. It fixes the VS Code build tasks, aswell as creating a npm script to trigger the watch task: ```bash $ npm run watch ``` --- .vscode/tasks.json | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 78d287a1677..55d4551fef2 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,6 +1,6 @@ { "version": "0.1.0", - "command": "gulp", + "command": "./node_modules/.bin/gulp", "isShellCommand": true, "tasks": [ { diff --git a/package.json b/package.json index cf0ec7d93ec..235c6d86398 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "scripts": { "test": "node node_modules/mocha/bin/_mocha", "preinstall": "node build/npm/preinstall.js", - "postinstall": "npm --prefix extensions/vscode-api-tests/ install extensions/vscode-api-tests/ && npm --prefix extensions/json/ install extensions/json/ && npm --prefix extensions/typescript/ install extensions/typescript/" + "postinstall": "npm --prefix extensions/vscode-api-tests/ install extensions/vscode-api-tests/ && npm --prefix extensions/json/ install extensions/json/ && npm --prefix extensions/typescript/ install extensions/typescript/", + "watch": "gulp watch" }, "dependencies": { "applicationinsights": "0.15.6",