Merge pull request #1161 from IanDelMar/gulp-dist
Update gulp dist & gulp dist-product
This commit is contained in:
commit
fa4d143d8f
|
@ -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",
|
||||
|
|
22
gulpfile.js
22
gulpfile.js
|
@ -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());
|
||||
|
|
Reference in New Issue