Skip to content

Commit

Permalink
fix(build): missing _site files and check npm folder
Browse files Browse the repository at this point in the history
Added missing boilerplace files
Added a check if npx gulp install runs inside node_modules/fomantic-ui to avoid "Error: ENOENT: no such file or directory, stat './src/_site" and others. As gulp install copies/updates files to the custom folder it is intended to always run inside the original node_modules folder
  • Loading branch information
lubber-de authored Jan 23, 2023
1 parent ed8c5e9 commit df306be
Show file tree
Hide file tree
Showing 30 changed files with 61 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/_site/collections/breadcrumb.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/collections/message.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
Site Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/elements/emoji.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/
File renamed without changes.
6 changes: 3 additions & 3 deletions src/_site/elements/flag.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* -------------------
Flag Variables
-------------------- */
/*******************************
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/elements/list.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/elements/placeholder.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/elements/placeholder.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/elements/text.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/elements/text.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/
File renamed without changes.
3 changes: 3 additions & 0 deletions src/_site/modules/calendar.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/modules/flyout.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/modules/flyout.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/modules/modal.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/modules/rating.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/modules/search.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/modules/sidebar.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
User Variable Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/modules/slider.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/modules/slider.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/modules/sticky.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
Site Overrides
User Variable Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/modules/toast.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/
3 changes: 3 additions & 0 deletions src/_site/modules/toast.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/views/ad.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/views/card.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/views/comment.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/views/feed.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/views/item.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
2 changes: 1 addition & 1 deletion src/_site/views/statistic.overrides
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*******************************
User Variable Overrides
Site Overrides
*******************************/
8 changes: 8 additions & 0 deletions tasks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ 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');
console.error('Aborting.');
callback();

return;
}

/* -----------------
Update SUI
----------------- */
Expand Down

0 comments on commit df306be

Please sign in to comment.