From 3dec5bb98ad85802eeeffae82aacb060eb8d9066 Mon Sep 17 00:00:00 2001 From: Davison Long Date: Mon, 17 Jul 2017 19:38:18 -0400 Subject: [PATCH] make project compatible with direct npm/yarn installation from github repo --- Gruntfile.js | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c2e821ad..77d48789 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -194,8 +194,12 @@ module.exports = function(grunt) { target: sources }, "git-describe": { + "options": { + failOnError: false + }, build: {} - } + }, + gitInfo: "unknown" }); // ---------- diff --git a/package.json b/package.json index ae9b05fe..231c5158 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,6 @@ }, "scripts": { "test": "grunt test", - "prepublish": "grunt build" + "prepare": "grunt build" } }