Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Side by Side Diff: polymer_0.5.4/bower_components/web-animations-js/Gruntfile.js

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 module.exports = function(grunt) { 1 module.exports = function(grunt) {
2 grunt.loadNpmTasks('grunt-contrib-uglify'); 2 grunt.loadNpmTasks('grunt-contrib-uglify');
3 grunt.loadNpmTasks('grunt-gjslint'); 3 grunt.loadNpmTasks('grunt-gjslint');
4 grunt.loadNpmTasks('grunt-checkrepo'); 4 grunt.loadNpmTasks('grunt-checkrepo');
5 grunt.loadNpmTasks('grunt-karma'); 5 grunt.loadNpmTasks('grunt-karma');
6 grunt.loadNpmTasks('grunt-saucelabs'); 6 grunt.loadNpmTasks('grunt-saucelabs');
7 grunt.loadNpmTasks('grunt-git-status'); 7 grunt.loadNpmTasks('grunt-git-status');
8 grunt.loadNpmTasks('grunt-template'); 8 grunt.loadNpmTasks('grunt-template');
9 9
10 var targetConfig = require('./target-config.js'); 10 var targetConfig = require('./target-config.js');
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 config.sourceMapConcat[target] = { 95 config.sourceMapConcat[target] = {
96 sources: sources 96 sources: sources
97 } 97 }
98 return 'sourceMapConcat:' + target; 98 return 'sourceMapConcat:' + target;
99 }; 99 };
100 100
101 var concatDefines = { 101 var concatDefines = {
102 WEB_ANIMATIONS_TESTING: false 102 WEB_ANIMATIONS_TESTING: false
103 }; 103 };
104 104
105 function buildMinifill(target) { 105 function buildWebAnimations1(target) {
106 var config = targetConfig[target]; 106 var config = targetConfig[target];
107 return genTarget(target).concat([ 107 return genTarget(target).concat([
108 concat(config.scopeSrc.concat(config.sharedSrc).concat(config.minifillSrc) , 'inter-raw-' + target + '.js', concatDefines), 108 concat(config.scopeSrc.concat(config.sharedSrc).concat(config.webAnimation s1Src), 'inter-raw-' + target + '.js', concatDefines),
109 guard('inter-raw-' + target + '.js', 'inter-' + target + '.js'), 109 guard('inter-raw-' + target + '.js', 'inter-' + target + '.js'),
110 compress('inter-' + target + '.js', target + '.min.js', concatDefines) 110 compress('inter-' + target + '.js', target + '.min.js', concatDefines)
111 ]); 111 ]);
112 } 112 }
113 113
114 function buildMaxifill(target) { 114 function buildWebAnimationsNext(target) {
115 var config = targetConfig[target]; 115 var config = targetConfig[target];
116 return genTarget(target).concat([ 116 return genTarget(target).concat([
117 concat(config.scopeSrc.concat(config.sharedSrc), 'inter-' + target + '-pre amble.js', concatDefines), 117 concat(config.scopeSrc.concat(config.sharedSrc), 'inter-' + target + '-pre amble.js', concatDefines),
118 concat(config.minifillSrc, 'inter-component-' + target + 'minifill.js', co ncatDefines), 118 concat(config.webAnimations1Src, 'inter-component-' + target + 'web-animat ions-1.js', concatDefines),
119 guard('inter-component-' + target + 'minifill.js', 'inter-guarded-' + targ et + '-minifill.js'), 119 guard('inter-component-' + target + 'web-animations-1.js', 'inter-guarded- ' + target + '-web-animations-1.js'),
120 concat(config.maxifillSrc, 'inter-component-' + target + '.js', concatDefi nes), 120 concat(config.webAnimationsNextSrc, 'inter-component-' + target + '.js', c oncatDefines),
121 concatWithMaps(['inter-' + target + '-preamble.js', 'inter-guarded-' + tar get + '-minifill.js', 'inter-component-' + target + '.js'], 121 concatWithMaps(['inter-' + target + '-preamble.js', 'inter-guarded-' + tar get + '-web-animations-1.js', 'inter-component-' + target + '.js'],
122 'inter-' + target + '.js'), 122 'inter-' + target + '.js'),
123 compress('inter-' + target + '.js', target + '.min.js', concatDefines) 123 compress('inter-' + target + '.js', target + '.min.js', concatDefines)
124 ]); 124 ]);
125 } 125 }
126 126
127 grunt.registerTask('web-animations', buildMinifill('web-animations')); 127 grunt.registerTask('web-animations', buildWebAnimations1('web-animations'));
128 grunt.registerTask('web-animations-next', buildMaxifill('web-animations-next') ); 128 grunt.registerTask('web-animations-next', buildWebAnimationsNext('web-animatio ns-next'));
129 grunt.registerTask('web-animations-next-lite', buildMaxifill('web-animations-n ext-lite')); 129 grunt.registerTask('web-animations-next-lite', buildWebAnimationsNext('web-ani mations-next-lite'));
130 130
131 var testTargets = {'web-animations': {}, 'web-animations-next': {}}; 131 var testTargets = {'web-animations': {}, 'web-animations-next': {}};
132 132
133 grunt.initConfig({ 133 grunt.initConfig({
134 uglify: config.uglify, 134 uglify: config.uglify,
135 template: config.template, 135 template: config.template,
136 wrap: config.wrap, 136 wrap: config.wrap,
137 sourceMapConcat: config.sourceMapConcat, 137 sourceMapConcat: config.sourceMapConcat,
138 checkrepo: { 138 checkrepo: {
139 all: { 139 all: {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 grunt.task.registerTask('clean', 'Remove files generated by grunt', function() { 271 grunt.task.registerTask('clean', 'Remove files generated by grunt', function() {
272 grunt.file.expand('web-animations*').concat(grunt.file.expand('test/runner-* .html')).concat(grunt.file.expand('inter-*')).forEach(function(file) { 272 grunt.file.expand('web-animations*').concat(grunt.file.expand('test/runner-* .html')).concat(grunt.file.expand('inter-*')).forEach(function(file) {
273 grunt.file.delete(file); 273 grunt.file.delete(file);
274 grunt.log.writeln('File ' + file + ' removed'); 274 grunt.log.writeln('File ' + file + ' removed');
275 }); 275 });
276 }); 276 });
277 277
278 grunt.task.registerTask('default', ['web-animations', 'web-animations-next', ' web-animations-next-lite', 'gjslint']); 278 grunt.task.registerTask('default', ['web-animations', 'web-animations-next', ' web-animations-next-lite', 'gjslint']);
279 }; 279 };
OLDNEW
« no previous file with comments | « polymer_0.5.4/bower_components/web-animations-js/COPYING ('k') | polymer_0.5.4/bower_components/web-animations-js/History.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698