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", "img": "./img",
"imgsrc": "./src/img", "imgsrc": "./src/img",
"sass": "./sass", "sass": "./sass",
"node": "./node_modules/", "node": "./node_modules",
"bower": "./bower_components/", "composer": "./vendor",
"dev": "./src", "dev": "./src",
"dist": "./dist", "dist": "./dist",
"distprod": "./dist-product", "distprod": "./dist-product",

View File

@ -171,7 +171,7 @@ gulp.task('watch-bs', gulp.parallel('browser-sync', 'watch'));
// Run: // Run:
// gulp copy-assets. // 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 ///////////////////////// ////////////////// All Bootstrap SASS Assets /////////////////////////
gulp.task('copy-assets', function (done) { gulp.task('copy-assets', function (done) {
@ -242,8 +242,6 @@ gulp.task(
.src( .src(
[ [
'**/*', '**/*',
`!${paths.bower}`,
`!${paths.bower}/**`,
`!${paths.node}`, `!${paths.node}`,
`!${paths.node}/**`, `!${paths.node}/**`,
`!${paths.dev}`, `!${paths.dev}`,
@ -254,17 +252,12 @@ gulp.task(
`!${paths.distprod}/**`, `!${paths.distprod}/**`,
`!${paths.sass}`, `!${paths.sass}`,
`!${paths.sass}/**`, `!${paths.sass}/**`,
`!${paths.composer}`,
`!${paths.composer}/**`,
'!readme.txt', '!readme.txt',
'!readme.md', '!README.md',
'!package.json', '!*.+(json|js|lock|xml)',
'!package-lock.json',
'!gulpfile.js',
'!gulpconfig.json',
'!CHANGELOG.md', '!CHANGELOG.md',
'!.travis.yml',
'!jshintignore',
'!codesniffer.ruleset.xml',
'*'
], ],
{ buffer: true } { buffer: true }
) )
@ -306,15 +299,14 @@ gulp.task(
return gulp return gulp
.src([ .src([
'**/*', '**/*',
`!${paths.bower}`,
`!${paths.bower}/**`,
`!${paths.node}`, `!${paths.node}`,
`!${paths.node}/**`, `!${paths.node}/**`,
`!${paths.composer}`,
`!${paths.composer}/**`,
`!${paths.dist}`, `!${paths.dist}`,
`!${paths.dist}/**`, `!${paths.dist}/**`,
`!${paths.distprod}`, `!${paths.distprod}`,
`!${paths.distprod}/**`, `!${paths.distprod}/**`,
'*'
]) ])
.pipe(gulp.dest(paths.distprod)) .pipe(gulp.dest(paths.distprod))
.pipe(touch()); .pipe(touch());