In my gulp build I've made a task that runs after all compiling, uglifying and minification has occurred. This task simply copies everything from the src into the dest directory that hasn't been touched/processed by earlier tasks. The little issue…
If I have the files
client/
a.js
bob.js
bad.js
And the gulp task
gulp.task('copy', function() {
return gulp.src(['client/*.js', '!client/b*.js', 'client/bad.js'])
.pipe(gulp.dest('public'));
});
then according to the…
I have a folder that contains audio files.
Starting to this folder I need to write a manifest file.
This is the format of the manifests:
{
"audio": [
"assets/sounds/file1.mp3",
"assets/sounds/file2.mp3",
…
Consider this which checks for JS files in either of two specific locations:
gulp.src( "@(Branch|Main)/*.js" ).pipe( _do-stuff_ )
How does one get which folder was matched (Main or Branch) for the current file(s)?
I have a gulp task like this:
const dest_free = "build/free";
gulp.task("build-free", ["clean-free"], function () {
gulp.src(["src/**", "!src/composer.*", "LICENSE", "src/plugins/index.php", "!src/plugins/**"])
…
I have been working on converting a grunt task to gulp. The grunt file looks like this:
browserify: {
options: {
transform: [ require('grunt-react').browserify ]
},
client: {
src: ['react/**/*.jsx'],
dest:…
I have
D1
SD1
SD2
SD3
dist
I want to copy all directories under D1 (except dist) to dist. Obviously I can't copy dist to dist otherwise it will be recursive indefinitely.
This is my code
gulp.task('extras', () => {
return gulp.src([
…