mirror of
https://github.com/lrsjng/jquery-qrcode.git
synced 2026-08-12 20:01:55 +08:00
Updates makefile.
This commit is contained in:
+10
@@ -34,6 +34,11 @@ var pkg = require('./package.json'),
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mapperSrc = function (blob) {
|
||||||
|
|
||||||
|
return blob.source.replace(src, build);
|
||||||
|
},
|
||||||
|
|
||||||
mapperRoot = function (blob) {
|
mapperRoot = function (blob) {
|
||||||
|
|
||||||
return blob.source.replace(root, build);
|
return blob.source.replace(root, build);
|
||||||
@@ -104,10 +109,15 @@ module.exports = function (make) {
|
|||||||
|
|
||||||
var scriptName = pkg.name;
|
var scriptName = pkg.name;
|
||||||
|
|
||||||
|
$(src + '/demo/*')
|
||||||
|
.handlebars(replacements)
|
||||||
|
.write($.OVERWRITE, mapperSrc);
|
||||||
|
|
||||||
$(src + ': ' + scriptName + '.js')
|
$(src + ': ' + scriptName + '.js')
|
||||||
.includify()
|
.includify()
|
||||||
.handlebars(replacements)
|
.handlebars(replacements)
|
||||||
.write($.OVERWRITE, path.join(build, scriptName + '-' + pkg.version + '.js'))
|
.write($.OVERWRITE, path.join(build, scriptName + '-' + pkg.version + '.js'))
|
||||||
|
.write($.OVERWRITE, path.join(build, 'demo', scriptName + '.js'))
|
||||||
.uglifyjs()
|
.uglifyjs()
|
||||||
.write($.OVERWRITE, path.join(build, scriptName + '-' + pkg.version + '.min.js'));
|
.write($.OVERWRITE, path.join(build, scriptName + '-' + pkg.version + '.min.js'));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user