From 0800482ec9899193ea4415bdbac2509336707b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E6=9D=B0?= Date: Mon, 28 Dec 2015 13:51:16 +0800 Subject: [PATCH 1/2] #3514: the fix for issue: 'The checking for semantic.json always fails when npm dependent package uses Semantic UI'. --- tasks/config/project/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/config/project/install.js b/tasks/config/project/install.js index 85a69418a..b5ce939ef 100644 --- a/tasks/config/project/install.js +++ b/tasks/config/project/install.js @@ -31,7 +31,7 @@ var when = { // install hasConfig: function() { - return requireDotFile('semantic.json'); + return requireDotFile('semantic.json', process.cwd()); }, allowOverwrite: function(questions) { From 79e615a0bbf0c3d2e6cd225514279be55a43e118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E6=9D=B0?= Date: Mon, 28 Dec 2015 14:40:53 +0800 Subject: [PATCH 2/2] If semantic.json was not found, exit with an error code. --- tasks/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build.js b/tasks/build.js index e7935645e..56ea87924 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -29,7 +29,7 @@ module.exports = function(callback) { if( !install.isSetup() ) { console.error('Cannot find semantic.json. Run "gulp install" to set-up Semantic'); - return; + return 1; } // check for right-to-left (RTL) language