Skip to content

Commit

Permalink
Merge pull request #16 from cssmagic/build
Browse files Browse the repository at this point in the history
Update building system.
  • Loading branch information
cssmagic committed Dec 28, 2015
2 parents a0b7234 + 53f165d commit 12592c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ gulp.task('default', ['clean'], function () {
gulp.start('js')
})

gulp.task('clean', function () {
del(path.join(myPath.dest, '*.*'))
gulp.task('clean', function (callback) {
del(path.join(myPath.dest, '*.*'), callback)
})

gulp.task('clean-temp', function () {
del(path.join(myPath.temp, '*.*'))
gulp.task('clean-temp', function (callback) {
del(path.join(myPath.temp, '*.*'), callback)
})

gulp.task('prepare-module', ['clean-temp'], function () {
Expand All @@ -52,7 +52,7 @@ gulp.task('prepare-module', ['clean-temp'], function () {
})
})

gulp.task('js', ['prepare-module'], function() {
gulp.task('js', function() {
// combine external modules
Object.keys(modules).forEach(function (key) {
scripts.push(path.join(myPath.temp, key + '.js'))
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"description": "Lightweight JavaScript utilities for mobile web development.",
"license": "MIT",
"scripts": {
"dist": "gulp",
"clean": "gulp clean",
"js": "gulp js",
"dist": "gulp prepare-module && gulp",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {},
Expand Down

0 comments on commit 12592c3

Please sign in to comment.