| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 990b0da commit 97bb32a
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,19 +13,35 @@ module.exports = function (grunt) { | |||
| 13 | 13 | } | |
| 14 | 14 | } | |
| 15 | 15 | }, | |
| 16 | + concat: { | ||
| 17 | + dist: { | ||
| 18 | + src: [ "<banner:meta.banner>", "src/paypal-button.js" ], | ||
| 19 | + dest: "dist/paypal-button.js", | ||
| 20 | + options: { | ||
| 21 | + banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */\n" | ||
| 22 | + } | ||
| 23 | + }, | ||
| 24 | + bundled: { | ||
| 25 | + src: [ "<banner:meta.banner>", "lib/MiniCart/minicart.js", "src/paypal-button.js" ], | ||
| 26 | + dest: "dist/paypal-button-minicart.js", | ||
| 27 | + options: { | ||
| 28 | + banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */\n" | ||
| 29 | + } | ||
| 30 | + } | ||
| 31 | + }, | ||
| 16 | 32 | uglify: { | |
| 17 | 33 | dist: { | |
| 18 | 34 | src: [ "<banner:meta.banner>", "src/paypal-button.js" ], | |
| 19 | 35 | dest: "dist/paypal-button.min.js", | |
| 20 | 36 | options: { | |
| 21 | - banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd, h:MM:ss TT\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */" | ||
| 37 | + banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */\n" | ||
| 22 | 38 | } | |
| 23 | 39 | }, | |
| 24 | 40 | bundled: { | |
| 25 | 41 | src: [ "<banner:meta.banner>", "lib/MiniCart/minicart.js", "src/paypal-button.js" ], | |
| 26 | 42 | dest: "dist/paypal-button-minicart.min.js", | |
| 27 | 43 | options: { | |
| 28 | - banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd, h:MM:ss TT\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */" | ||
| 44 | + banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */\n" | ||
| 29 | 45 | } | |
| 30 | 46 | } | |
| 31 | 47 | } | |
@@ -34,8 +50,9 @@ module.exports = function (grunt) { | |||
| 34 | 50 | // Load grunt tasks from npm packages | |
| 35 | 51 | grunt.loadNpmTasks("grunt-contrib-jshint"); | |
| 36 | 52 | grunt.loadNpmTasks("grunt-contrib-uglify"); | |
| 53 | + grunt.loadNpmTasks("grunt-contrib-concat"); | ||
| 37 | 54 | ||
| 38 | 55 | // Default task. | |
| 39 | - grunt.registerTask("default", ["jshint", "uglify"]); | ||
| 56 | + grunt.registerTask("default", ["jshint", "concat", "uglify"]); | ||
| 40 | 57 | ||
| 41 | 58 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments