From bcf1dc308185d84f2683eb6e2abf426347a4a5fa Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Wed, 23 Oct 2013 12:52:46 -0700 Subject: [PATCH] Add most minimal platform build for x-tag compatibility --- .gitignore | 6 ++---- build-lite.json | 4 ++++ gruntfile.js | 8 ++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 build-lite.json diff --git a/.gitignore b/.gitignore index f4906ac..a3732ec 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,6 @@ /test.bat /build/shadowdom.conditional.js -platform.min* -platform.native* -platform.sandbox* -platform.concat* +*.min.js* +*.concat.js* build.bat diff --git a/build-lite.json b/build-lite.json new file mode 100644 index 0000000..8b62a11 --- /dev/null +++ b/build-lite.json @@ -0,0 +1,4 @@ +[ + "../HTMLImports/build.json", + "../CustomElements/build.json" +] diff --git a/gruntfile.js b/gruntfile.js index 6b710db..d10accb 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -32,6 +32,13 @@ module.exports = function(grunt) { } } }, + concat: { + lite: { + files: { + 'platform-lite.concat.js': readManifest('build-lite.json', [tmp.path]) + } + } + }, uglify: { options: { banner: grunt.file.read('LICENSE'), @@ -96,5 +103,6 @@ module.exports = function(grunt) { grunt.registerTask('docs', ['yuidoc']); grunt.registerTask('test', ['override-chrome-launcher', 'karma:platform']); grunt.registerTask('test-buildbot', ['override-chrome-launcher', 'karma:buildbot']); + grunt.registerTask('build-lite', ['gen_license', 'concat', 'clean_license']); };