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

Unified Diff: experimental/webtry/poly/Gruntfile.js

Issue 292433002: Move zooming into its own component, imported via HTML Imports. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: experimental/webtry/poly/Gruntfile.js
diff --git a/experimental/webtry/poly/Gruntfile.js b/experimental/webtry/poly/Gruntfile.js
new file mode 100644
index 0000000000000000000000000000000000000000..cf70277872f7f57cd96e3cefd9545af773168b79
--- /dev/null
+++ b/experimental/webtry/poly/Gruntfile.js
@@ -0,0 +1,64 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ // Install all the packages listed in the bower.json file.
+ shell: {
+ bower_install: {
+ command: 'bower install'
+ }
+ },
+ // Copy all the bower files into a single directory.
+ bower: {
+ dev: {
+ dest: '../../../out/grunt/third_party'
+ }
+ },
+ // Concatenate all the files in third_party into a single file.
+ concat: {
+ dist: {
+ src: [
+ '../../../out/grunt/third_party/WeakMap.js',
+ '../../../out/grunt/third_party/classlist.js',
+ '../../../out/grunt/third_party/pointerevents-polyfill.js',
+ '../../../out/grunt/third_party/MutationObserver.js',
+ '../../../out/grunt/third_party/CustomElements.js',
+ '../../../out/grunt/third_party/HTMLImports.js',
+ ],
+ dest: '../../../out/grunt/src/<%= pkg.name %>.js'
+ }
+ },
+ // Uglify the one big file into one smaller file.
+ uglify: {
+ options: {
+ banner: '/*! <%= pkg.name %> built from /exerimental/webtry/poly <%= grunt.template.today("yyyy-mm-dd") %> */\n'
+ },
+ build: {
+ src: '../../../out/grunt/src/<%= pkg.name %>.js',
+ dest: '../res/js/<%= pkg.name %>.js'
+ }
+ },
+ copy: {
+ simple: {
+ src: '../../../out/grunt/src/<%= pkg.name %>.js',
+ dest: '../res/js/<%= pkg.name %>.js'
+ }
+ }
+ });
+
+ // Load the plugins for the above commands.
+ grunt.loadNpmTasks('grunt-bower');
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-shell');
+
+ // By default run all the commands in the right sequence to build our custom minified polyfill.
+ grunt.registerTask('default', ['shell:bower_install', 'bower', 'concat', 'uglify']);
+
+ // A target to build an unminified version, for debugging.
+ grunt.registerTask('notmin', ['shell:bower_install', 'bower', 'concat', 'copy:simple']);
+
+};

Powered by Google App Engine
This is Rietveld 408576698