Skip to content

Commit 97bb32a

Browse files
committed
Updating tests
1 parent 990b0da commit 97bb32a

7 files changed

Lines changed: 2626 additions & 51 deletions

File tree

Gruntfile.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,35 @@ module.exports = function (grunt) {
1313
}
1414
}
1515
},
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+
},
1632
uglify: {
1733
dist: {
1834
src: [ "<banner:meta.banner>", "src/paypal-button.js" ],
1935
dest: "dist/paypal-button.min.js",
2036
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"
2238
}
2339
},
2440
bundled: {
2541
src: [ "<banner:meta.banner>", "lib/MiniCart/minicart.js", "src/paypal-button.js" ],
2642
dest: "dist/paypal-button-minicart.min.js",
2743
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"
2945
}
3046
}
3147
}
@@ -34,8 +50,9 @@ module.exports = function (grunt) {
3450
// Load grunt tasks from npm packages
3551
grunt.loadNpmTasks("grunt-contrib-jshint");
3652
grunt.loadNpmTasks("grunt-contrib-uglify");
53+
grunt.loadNpmTasks("grunt-contrib-concat");
3754

3855
// Default task.
39-
grunt.registerTask("default", ["jshint", "uglify"]);
56+
grunt.registerTask("default", ["jshint", "concat", "uglify"]);
4057

4158
};

0 commit comments

Comments
 (0)