Skip to content

Commit 2015119

Browse files
authored
fix(build): allow gulp install from direct checkout folder
The strict check for running gulp install inside node_modules was breaking the nightly build. The only necessary check was to look for the _site folder, so i adjusted that , so gulp install also works when FUI for example was just cloned from git wihtout being inside node_modules)
1 parent 27c5d2f commit 2015119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/install.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ module.exports = function (callback) {
7777
return;
7878
}
7979

80-
if (!manager) {
81-
console.log('\u001B[92mgulp install\u001B[0m must run inside \u001B[92mnode_modules' + path.sep + 'fomantic-ui\u001B[0m');
80+
if (!fs.existsSync(source.site)) {
81+
console.log('Missing _site folder. \u001B[92mgulp install\u001B[0m must run inside \u001B[92mnode_modules' + path.sep + 'fomantic-ui\u001B[0m');
8282
console.error('Aborting.');
8383
callback();
8484

0 commit comments

Comments
 (0)