mirror of
https://github.com/lrsjng/jquery-qrcode.git
synced 2026-08-13 04:11:36 +08:00
Add bower support.
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
+25
@@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+1889
File diff suppressed because it is too large
Load Diff
Vendored
+2
File diff suppressed because one or more lines are too long
+5
-2
@@ -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'),
|
||||||
|
|||||||
Reference in New Issue
Block a user