mirror of
https://github.com/bvanroll/rpiRadio.git
synced 2025-08-30 12:32:47 +00:00
Initial Commit
This commit is contained in:
10
ProjectNow/NodeServer/node_modules/synth-js/gulp/config.json
generated
vendored
Normal file
10
ProjectNow/NodeServer/node_modules/synth-js/gulp/config.json
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"paths": {
|
||||
"entry": "./index.js",
|
||||
"dest": "./dst"
|
||||
},
|
||||
"names": {
|
||||
"app": "synth.min.js",
|
||||
"glob": "synth"
|
||||
}
|
||||
}
|
35
ProjectNow/NodeServer/node_modules/synth-js/gulp/tasks/browserify.js
generated
vendored
Normal file
35
ProjectNow/NodeServer/node_modules/synth-js/gulp/tasks/browserify.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
const config = require('../config');
|
||||
|
||||
const gulp = require('gulp');
|
||||
const browserify = require('browserify');
|
||||
const babelify = require('babelify');
|
||||
const source = require('vinyl-source-stream');
|
||||
const buffer = require('vinyl-buffer');
|
||||
const uglify = require('gulp-uglify');
|
||||
const sourcemaps = require('gulp-sourcemaps');
|
||||
const gutil = require('gulp-util');
|
||||
|
||||
gulp.task('browserify', function () {
|
||||
// set up the browserify instance on a task basis
|
||||
let b = browserify({
|
||||
entries: config.paths.entry,
|
||||
debug: true,
|
||||
standalone: config.names.glob,
|
||||
transform: [
|
||||
babelify.configure({
|
||||
presets: ['es2015'],
|
||||
sourceMapsAbsolute: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
return b.bundle()
|
||||
.pipe(source(config.names.app))
|
||||
.pipe(buffer())
|
||||
.pipe(sourcemaps.init({loadMaps: true}))
|
||||
// Add transformation tasks to the pipeline here.
|
||||
.pipe(uglify())
|
||||
.on('error', gutil.log)
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest(config.paths.dest));
|
||||
});
|
3
ProjectNow/NodeServer/node_modules/synth-js/gulp/tasks/default.js
generated
vendored
Normal file
3
ProjectNow/NodeServer/node_modules/synth-js/gulp/tasks/default.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
const gulp = require('gulp');
|
||||
|
||||
gulp.task('default', ['browserify']);
|
Reference in New Issue
Block a user