Add bower support.

This commit is contained in:
Lars Jung
2014-07-07 18:18:20 +02:00
parent 81c8a12397
commit 09b743b865
5 changed files with 1922 additions and 3 deletions
+1 -1
View File
@@ -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
this software and associated documentation files (the "Software"), to deal in
+25
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
+2
View File
File diff suppressed because one or more lines are too long
+5 -2
View File
@@ -12,6 +12,7 @@ module.exports = function (make) {
root = path.resolve(__dirname),
src = path.join(root, 'src'),
dist = path.join(root, 'dist'),
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')
.includify()
.handlebars(make.env)
.WRITE($.map.p(src, dist))
.WRITE($.map.p(src, build).s('.js', '-' + pkg.version + '.js'))
.uglifyjs()
.WRITE($.map.p(src, dist).s('.js', '.min.js'))
.WRITE($.map.p(src, build).s('.js', '-' + pkg.version + '.min.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({
target: path.join(build, pkg.name + '-' + pkg.version + '.zip'),