Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
trim the fat! include only web components features in platform.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Aug 4, 2014
1 parent dfe2159 commit 19bf7c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 44 deletions.
17 changes: 2 additions & 15 deletions build.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
[
"build/boot.js",
"../WeakMap/weakmap.js",
"../observe-js/src/observe.js",
"build/if-poly.js",
"../ShadowDOM/build.json",
"src/patches-shadowdom-polyfill.js",
"src/ShadowCSS.js",
"build/else.js",
"src/patches-shadowdom-native.js",
"build/end-if.js",

"../URL/url.js",
"src/lang.js",
"src/dom.js",
"src/template.js",
"src/inspector.js",
"src/unresolved.js",
"src/module.js",
"src/microtask.js",
"src/url.js",

"../HTMLImports/build.json",
"../CustomElements/build.json",
"src/patches-custom-elements.js",
"src/loader.js",
"src/styleloader.js",

"../TemplateBinding/build.json",

"src/patches-mdv.js"
"src/unresolved.js",
"src/module.js"
]
13 changes: 0 additions & 13 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ module.exports = function(grunt) {
files: {
'build/platform.js': 'build/platform.concat.js'
}
},
nativeOnly: {
options: {
banner: grunt.file.read('banner.txt') + '//@version <%= buildversion %>\n'
},
files: {
'build/platform.native.js': readManifest('build-native.json')
}
}
},
audit: {
Expand All @@ -77,11 +69,7 @@ module.exports = function(grunt) {
repos: [
'../CustomElements',
'../HTMLImports',
'../NodeBind',
'../ShadowDOM',
'../TemplateBinding',
'../WeakMap',
'../observe-js',
'../platform-dev'
]
},
Expand Down Expand Up @@ -137,7 +125,6 @@ module.exports = function(grunt) {
grunt.registerTask('test-build-cr', ['minify', 'stash', 'karma:buildbot', 'restore']);
grunt.registerTask('test-buildbot', ['override-chrome-launcher', 'karma:buildbot', 'test-build-cr']);
grunt.registerTask('build-lite', ['concat:lite']);
grunt.registerTask('build-native', ['version', 'uglify:nativeOnly']);
grunt.registerTask('release', function() {
grunt.option('release', true);
grunt.task.run('minify');
Expand Down
22 changes: 6 additions & 16 deletions platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,22 @@ function processFlags(flags) {
'../URL/url.js',
'src/lang.js',
'src/dom.js',
'src/template.js',
'src/inspector.js',
'src/unresolved.js',
'src/module.js',
'src/microtask.js',
'src/url.js',

'../HTMLImports/html-imports.js',
'../CustomElements/custom-elements.js',
'src/patches-custom-elements.js',
'src/loader.js',
'src/styleloader.js',

// TODO(sjmiles): polymer-expressions.js does not load dependencies, but
// the build.json does
'../observe-js/src/observe.js',
'../NodeBind/src/NodeBind.js',
'../TemplateBinding/src/TemplateBinding.js',
'src/patches-mdv.js'

// these scripts are loaded in platform.js due to polyfill timing issues
'src/unresolved.js',
'src/module.js'
]
);

}

}

//CustomElements = {useNative: true};

// export

window[scopeName] = {
Expand Down

0 comments on commit 19bf7c1

Please sign in to comment.