Add bower support.

pull/18/head
Lars Jung 11 years ago
parent 81c8a12397
commit 09b743b865

@ -1,4 +1,4 @@
Copyright (c) 2013 Lars Jung, http://larsjung.de Copyright (c) 2014 Lars Jung, http://larsjung.de
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in

@ -0,0 +1,25 @@
{
"name": "jquery.qrcode",
"version": "0.7.0+",
"homepage": "http://larsjung.de/qrcode/",
"authors": [
"Lars Jung <lrsjng@gmail.com>"
],
"description": "generate QR codes dynamically",
"main": "dist/jquery.qrcode.js",
"keywords": [
"jquery",
"javascript",
"qrcode"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"build",
"local"
]
}

1889
dist/jquery.qrcode.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -12,6 +12,7 @@ module.exports = function (make) {
root = path.resolve(__dirname), root = path.resolve(__dirname),
src = path.join(root, 'src'), src = path.join(root, 'src'),
dist = path.join(root, 'dist'),
build = path.join(root, 'build'); build = path.join(root, 'build');
@ -82,13 +83,15 @@ module.exports = function (make) {
}); });
make.target('build', ['check-version'], 'build all updated files').sync(function () { make.target('build', ['check-version', 'clean'], 'build all files').sync(function () {
$(src + ': jquery.qrcode.js') $(src + ': jquery.qrcode.js')
.includify() .includify()
.handlebars(make.env) .handlebars(make.env)
.WRITE($.map.p(src, dist))
.WRITE($.map.p(src, build).s('.js', '-' + pkg.version + '.js')) .WRITE($.map.p(src, build).s('.js', '-' + pkg.version + '.js'))
.uglifyjs() .uglifyjs()
.WRITE($.map.p(src, dist).s('.js', '.min.js'))
.WRITE($.map.p(src, build).s('.js', '-' + pkg.version + '.min.js')); .WRITE($.map.p(src, build).s('.js', '-' + pkg.version + '.min.js'));
$(src + ': **, ! *.js') $(src + ': **, ! *.js')
@ -101,7 +104,7 @@ module.exports = function (make) {
}); });
make.target('release', ['clean', 'build'], 'create a zipball').async(function (done, fail) { make.target('release', ['build'], 'create a zipball').async(function (done, fail) {
$(build + ': **').shzip({ $(build + ': **').shzip({
target: path.join(build, pkg.name + '-' + pkg.version + '.zip'), target: path.join(build, pkg.name + '-' + pkg.version + '.zip'),

Loading…
Cancel
Save