couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [couchdb-fauxton] branch master updated: Fix devserver on Windows (#1008)
Date Mon, 30 Oct 2017 12:39:51 GMT
This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e824bc  Fix devserver on Windows (#1008)
4e824bc is described below

commit 4e824bc5c3d67f95b8b310d79038514cc5b623fb
Author: Alexis Côté <popojargo@users.noreply.github.com>
AuthorDate: Mon Oct 30 08:39:49 2017 -0400

    Fix devserver on Windows (#1008)
    
    * Fix devserver and npm script create:animaldb
---
 devserver.js | 5 +++--
 package.json | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/devserver.js b/devserver.js
index 98b13cb..691d6ee 100644
--- a/devserver.js
+++ b/devserver.js
@@ -31,8 +31,9 @@ const devSetup = function (cb) {
   if (settings.noClean) {
     cmd = 'devSetup';
   }
-
-  const grunt = spawn('grunt', [cmd]);
+  const isOnWindows = process.platform === 'win32';
+  const gruntCmd = isOnWindows ? 'grunt.cmd' : 'grunt';
+  const grunt = spawn(gruntCmd, [cmd]);
 
   grunt.stdout.on('data', (data) => {
     console.log(data.toString());
diff --git a/package.json b/package.json
index 31a4fc2..e3c400b 100644
--- a/package.json
+++ b/package.json
@@ -129,7 +129,7 @@
     "start-debug": "DIST=./dist/debug node ./bin/fauxton",
     "preversion": "node version-check.js && grunt release",
     "test-before-publish": "npm run preversion && npm install . -g",
-    "create:animaldb": "./bin/create-animal-db",
+    "create:animaldb": "node ./bin/create-animal-db",
     "docker:couchdb-up": "docker-compose -f ./docker/dc.selenium.yml up -d couchdb",
     "docker:selenium-up": "docker-compose -f ./docker/dc.selenium.yml up -d selenium",
     "docker:selenium-debug-up": "docker-compose -f ./docker/dc.selenium-debug.yml up -d selenium",

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message