Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp tools for compression #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var pump = require('pump');
var watch = require('gulp-watch');

gulp.task('js', function (cb) {
pump([
gulp.src('source/*/*.js'),
uglify(),
gulp.dest('compressed')
],
cb
);
});

gulp.task('watch', function () {
// Endless stream mode
gulp.watch('source/*/*.js', ['js']);
});
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "cashmusic.js",
"version": "1.0.0",
"description": "JavaScript library providing video lightboxes, audio player (via SM2), and element tweening based on audio progress. Also CASH Music embeds.",
"main": "index.js",
"repository": "[email protected]:cashmusic/cashmusic.js.git",
"author": "CASH Music <[email protected]>",
"license": "MIT",
"dependencies": {
"gulp": "^3.9.1",
"gulp-uglify": "^3.0.0",
"gulp-watch": "^5.0.0",
"pump": "^3.0.0"
}
}