From b370d1d38cec0f5db8192c8a1573b0d0b1655ee9 Mon Sep 17 00:00:00 2001 From: RobertoGonzalez Date: Mon, 19 Jan 2015 19:17:59 -0300 Subject: [PATCH] Better build script. --- bower.json | 6 ++---- {build => dist}/README.md | 0 {build => dist}/blockrain.css | 0 {build => dist}/blockrain.jquery.js | 0 {build => dist}/blockrain.jquery.min.js | 0 dist/blockrain.zip | Bin 40567 -> 38164 bytes gulpfile.js | 10 +++++----- 7 files changed, 7 insertions(+), 9 deletions(-) rename {build => dist}/README.md (100%) rename {build => dist}/blockrain.css (100%) rename {build => dist}/blockrain.jquery.js (100%) rename {build => dist}/blockrain.jquery.min.js (100%) diff --git a/bower.json b/bower.json index ee5de86..792acee 100644 --- a/bower.json +++ b/bower.json @@ -2,7 +2,7 @@ "name": "blockrain", "version": "0.1.0", "description": "Add a game of tetris to your site", - "main": "build/blockrain.jquery.min.js", + "main": "dist/blockrain.jquery.min.js", "repository": { "type": "git", "url": "git://github.com/Aerolab/blockrain.js.git" @@ -20,14 +20,12 @@ ], "ignore": [ "assets", - "dist", - "src", + "dist/blockrain.zip", ".gitignore", "Copyright", "gulpfile.js", "index.html", - "LICENSE.txt", "package.json", "node_modules", diff --git a/build/README.md b/dist/README.md similarity index 100% rename from build/README.md rename to dist/README.md diff --git a/build/blockrain.css b/dist/blockrain.css similarity index 100% rename from build/blockrain.css rename to dist/blockrain.css diff --git a/build/blockrain.jquery.js b/dist/blockrain.jquery.js similarity index 100% rename from build/blockrain.jquery.js rename to dist/blockrain.jquery.js diff --git a/build/blockrain.jquery.min.js b/dist/blockrain.jquery.min.js similarity index 100% rename from build/blockrain.jquery.min.js rename to dist/blockrain.jquery.min.js diff --git a/dist/blockrain.zip b/dist/blockrain.zip index 0a9292f5e214eb4817d3a2600c84ef34da6af373..2262d628c82b6a4545344ab28e32726d1957fdeb 100644 GIT binary patch delta 145 zcmeyqhiS?xCY}IqW)?061_llW*;$(_xLE_4fOLJ#8wV~VaSKi}CLTs65eAsb$uH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7qc3M|c=R~w-_+Bcn znl#DZ9S3AsKYe$W!S?+K9h~C)+s`i|1i@u8cmBG=O@0yp9vRQs=bLA zCccXp_%t4T-g69^@=U3bs?afgU;afD4Ha<%#d5Z#k%rb5e2lGzIl~1^6C^I^|4B~` z44H~R#{bgP8)jN7pm0zFht;8$E)|dy@c%LElC=IY|A8(`lYhQtO=MrYA$dt%SlW3?*y95J-bw&!hgGe0Wom4 AqyPW_ diff --git a/gulpfile.js b/gulpfile.js index 83ca1cb..00e7e65 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,28 +19,28 @@ gulp.task('js', function () { return gulp.src(['./src/blockrain.jquery.libs.js', './src/blockrain.jquery.src.js', './src/blockrain.jquery.themes.js']) .pipe(concat('blockrain.jquery.js')) .pipe(header(getCopyright(), {version: getVersion()})) - .pipe(gulp.dest('./build')) + .pipe(gulp.dest('./dist')) .pipe(uglify({preserveComments:'none'})) .pipe(concat('blockrain.jquery.min.js')) .pipe(header(getCopyright(), {version: getVersion()})) - .pipe(gulp.dest('./build')); + .pipe(gulp.dest('./dist')); }); gulp.task('css', function () { // CSS return gulp.src(['./src/blockrain.css']) - .pipe(gulp.dest('./build')); + .pipe(gulp.dest('./dist')); }); gulp.task('readme', function () { // Readme return gulp.src(['./README.md']) - .pipe(gulp.dest('./build')); + .pipe(gulp.dest('./dist')); }); gulp.task('dist', function () { // Create a ZIP File - return gulp.src('./build/*') + return gulp.src(['./dist/blockrain.jquery.js', './dist/blockrain.jquery.min.js', './dist/blockrain.css']) .pipe(zip('blockrain.zip')) .pipe(gulp.dest('./dist')); });