Merge pull request #1161 from IanDelMar/gulp-dist

Update gulp dist & gulp dist-product
This commit is contained in:
UnderstrapFramework 2020-04-28 14:16:50 +01:00 committed by GitHub
commit fa4d143d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 17 deletions

View File

@ -10,8 +10,8 @@
"img": "./img",
"imgsrc": "./src/img",
"sass": "./sass",
"node": "./node_modules/",
"bower": "./bower_components/",
"node": "./node_modules",
"composer": "./vendor",
"dev": "./src",
"dist": "./dist",
"distprod": "./dist-product",

View File

@ -171,7 +171,7 @@ gulp.task('watch-bs', gulp.parallel('browser-sync', 'watch'));
// Run:
// gulp copy-assets.
// Copy all needed dependency assets files from bower_component assets to themes /js, /scss and /fonts folder. Run this task after bower install or bower update
// Copy all needed dependency assets files from node_modules to theme's /js, /scss and /fonts folder. Run this task after npm update
////////////////// All Bootstrap SASS Assets /////////////////////////
gulp.task('copy-assets', function (done) {
@ -242,8 +242,6 @@ gulp.task(
.src(
[
'**/*',
`!${paths.bower}`,
`!${paths.bower}/**`,
`!${paths.node}`,
`!${paths.node}/**`,
`!${paths.dev}`,
@ -254,17 +252,12 @@ gulp.task(
`!${paths.distprod}/**`,
`!${paths.sass}`,
`!${paths.sass}/**`,
`!${paths.composer}`,
`!${paths.composer}/**`,
'!readme.txt',
'!readme.md',
'!package.json',
'!package-lock.json',
'!gulpfile.js',
'!gulpconfig.json',
'!README.md',
'!*.+(json|js|lock|xml)',
'!CHANGELOG.md',
'!.travis.yml',
'!jshintignore',
'!codesniffer.ruleset.xml',
'*'
],
{ buffer: true }
)
@ -306,15 +299,14 @@ gulp.task(
return gulp
.src([
'**/*',
`!${paths.bower}`,
`!${paths.bower}/**`,
`!${paths.node}`,
`!${paths.node}/**`,
`!${paths.composer}`,
`!${paths.composer}/**`,
`!${paths.dist}`,
`!${paths.dist}/**`,
`!${paths.distprod}`,
`!${paths.distprod}/**`,
'*'
])
.pipe(gulp.dest(paths.distprod))
.pipe(touch());