Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[submodule "build"]
path = build
url = git@github.com:siteorigin/plugin-build.git

[submodule "base/inc/installer"]
path = base/inc/installer
url = git@github.com:siteorigin/siteorigin-installer.git
45 changes: 38 additions & 7 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,65 @@ module.exports = {
},
copy: {
src: [
'**/!(*.js|*.less|*.css)', // Everything except .js, .css and .less files
// Use restrictive positive patterns instead of broad match + exclusions.
// This fixes Gulp 5 exclusion pattern bug where !build/** is ignored.

// Root level files (excluding those handled by version task).
'changelog.txt',
'wpml-config.xml',

// Directory-based patterns.
'admin/**/!(*.js|*.less|*.css)',
'base/**/!(*.js|*.less|*.css)',
'compat/**/!(*.js|*.less|*.css)',
'css/**/!(*.js|*.less|*.css)',
'icons/**/!(*.js|*.less|*.css)',
'js/**/!(*.js|*.less|*.css)',
'widgets/**/!(*.js|*.less|*.css)',
'icons/**/*css', // Copy CSS for icon packs.
'js/lib/**/*css', // Copy CSS for JS libs.
'css/lib/**/*css', // Copy CSS for JS libs.
'base/less/*.less', // LESS libraries used in runtime styles
'base/inc/widgets/less/*.less',
'base/less/*.less', // LESS libraries used in runtime styles.
'base/inc/widgets/less/*.less', // Widget LESS libraries.
'base/inc/installer/css/*css', // Include Installer CSS.
'widgets/**/styles/*.less', // All the widgets' runtime .less files
'widgets/**/styles/*.less', // All the widgets' runtime .less files.
'!{build,build/**}', // Ignore build/ and contents
'!{node_modules,node_modules/**}', // Ignore node_modules/ and contents.
'!{tests,tests/**}', // Ignore tests/ and contents.
'!{tmp,tmp/**}', // Ignore tmp/ and contents
'!playwright.config.js', // Exclude playwright config file.
'!so-widgets-bundle.php', // Not the base plugin file. It is copied by the 'version' task.
'!readme.txt', // Not the readme.txt file. It is copied by the 'version' task.
'!readme.md', // Ignore the readme.md file. It is for the github repo.
'!.editorconfig', // Ignore .editorconfig file. Only for development.
'!base/inc/installer/inc/github-plugin-updater.php', // Exclude Installer's Updater.
'!{package.json,package-lock.json}', // Exclude node package files.
]
},
i18n: {
pot: {
src: [
'**/*.php', // All the PHP files.
'!tmp/**/*.php', // Ignore tmp/ and contents
'!dist/**/*.php' // Ignore dist/ and contents
'!tmp/**/*.php', // Ignore tmp/ and contents.
'!dist/**/*.php' // Ignore dist/ and contents.
],
textdomain: 'so-widgets-bundle',
destFile: 'so-widgets-bundle.pot',
package: 'SiteOrigin Widgets Bundle',
bugReport: 'http://www.siteorigin.com/thread',
lastTranslator: 'SiteOrigin <support@siteorigin.com>',
team: 'SiteOrigin <support@siteorigin.com>'
},
googleFonts: {
dest: 'base/inc/fonts.php',
},
fontAwesome: {
base: 'icons/fontawesome/',
version: '6.7.2',
css: {
dest: 'icons/fontawesome/'
},
fonts: {
dest: 'icons/fontawesome/webfonts/'
}
}
};