Permalink
Browse files

Updates build process.

  • Loading branch information...
lrsjng committed Sep 5, 2013
1 parent a690d4c commit fd16ed9edaf02527523319cf341762c864204efc
Showing with 13 additions and 13 deletions.
  1. +13 −13 makefile.js
View
@@ -14,7 +14,7 @@ module.exports = function (make) {
$ = make.fQuery,
mapSrc = $.map.p(src, build).s('.less', '.css').s('.jade', ''),
- mapRoot = $.map.p(root, build);
+ mapRoot = $.map.p(root, path.join(build, '_h5ai'));
make.version('>=0.10.0');
@@ -88,61 +88,61 @@ module.exports = function (make) {
var header = '/* ' + pkg.name + ' ' + pkg.version + ' - ' + pkg.url + ' */';
$(src + ': _h5ai/client/js/*.js')
- .modified(mapSrc, $(src + ': _h5ai/client/js/**'))
+ .newerThan(mapSrc, $(src + ': _h5ai/client/js/**'))
.includify()
.uglifyjs({header: header})
.WRITE(mapSrc);
$(src + ': _h5ai/client/css/*.less')
- .modified(mapSrc, $(src + ': _h5ai/client/css/**'))
+ .newerThan(mapSrc, $(src + ': _h5ai/client/css/**'))
.less()
.cssmin({header: header})
.WRITE(mapSrc);
$(src + ': **/*.jade')
- .modified(mapSrc)
+ .newerThan(mapSrc)
.handlebars(make.env)
.jade()
.WRITE(mapSrc);
$(src + ': **, ! _h5ai/client/js/**, ! _h5ai/client/css/**, ! **/*.jade')
- .modified(mapSrc)
+ .newerThan(mapSrc)
.handlebars(make.env)
.WRITE(mapSrc);
- $(root + ': README*, LICENSE*')
- .modified(mapRoot)
+ $(root + ': *.md')
+ .newerThan(mapRoot)
.WRITE(mapRoot);
});
make.target('build-uncompressed', ['check-version'], 'build all updated files without compression').sync(function () {
$(src + ': _h5ai/client/js/*.js')
- .modified(mapSrc, $(src + ': _h5ai/client/js/**'))
+ .newerThan(mapSrc, $(src + ': _h5ai/client/js/**'))
.includify()
// .uglifyjs()
.WRITE(mapSrc);
$(src + ': _h5ai/client/css/*.less')
- .modified(mapSrc, $(src + ': _h5ai/client/css/**'))
+ .newerThan(mapSrc, $(src + ': _h5ai/client/css/**'))
.less()
// .cssmin()
.WRITE(mapSrc);
$(src + ': **/*.jade')
- .modified(mapSrc)
+ .newerThan(mapSrc)
.handlebars(make.env)
.jade()
.WRITE(mapSrc);
$(src + ': **, ! _h5ai/client/js/**, ! _h5ai/client/css/**, ! **/*.jade')
- .modified(mapSrc)
+ .newerThan(mapSrc)
.handlebars(make.env)
.WRITE(mapSrc);
- $(root + ': README*, LICENSE*')
- .modified(mapRoot)
+ $(root + ': *.md')
+ .newerThan(mapRoot)
.WRITE(mapRoot);
});

0 comments on commit fd16ed9

Please sign in to comment.