Skip to content

Commit

Permalink
fix(build): allow gulp install from direct checkout folder
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
lubber-de authored Jan 27, 2023
1 parent 27c5d2f commit 2015119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ module.exports = function (callback) {
return;
}

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

Expand Down

0 comments on commit 2015119

Please sign in to comment.