chore: add systemjs.config.js back to plunkers (#3219)

* chore: add systemjs.config.js back to plunkers

* remove the non needed options from plnkr.json as well
This commit is contained in:
Jesús Rodríguez 2017-02-14 00:32:38 +01:00 committed by Ward Bell
parent f5271d71f1
commit 044a0c6e5f
8 changed files with 8 additions and 23 deletions

View File

@ -9,6 +9,5 @@
], ],
"main": "quickstart-specs.html", "main": "quickstart-specs.html",
"open": "app/app.component.spec.ts", "open": "app/app.component.spec.ts",
"tags": ["quickstart", "setup", "testing"], "tags": ["quickstart", "setup", "testing"]
"includeSystemConfig": true
} }

View File

@ -10,6 +10,5 @@
], ],
"main": "1st-specs.html", "main": "1st-specs.html",
"open": "app/1st.spec.ts", "open": "app/1st.spec.ts",
"tags": ["testing"], "tags": ["testing"]
"includeSystemConfig": true
} }

View File

@ -20,6 +20,5 @@
"app-specs.html" "app-specs.html"
], ],
"main": "app-specs.html", "main": "app-specs.html",
"tags": ["testing"], "tags": ["testing"]
"includeSystemConfig": true
} }

View File

@ -17,6 +17,5 @@
"bag-specs.html" "bag-specs.html"
], ],
"main": "bag-specs.html", "main": "bag-specs.html",
"tags": ["testing"], "tags": ["testing"]
"includeSystemConfig": true
} }

View File

@ -11,6 +11,5 @@
], ],
"main": "banner-inline-specs.html", "main": "banner-inline-specs.html",
"open": "app/banner-inline.component.spec.ts", "open": "app/banner-inline.component.spec.ts",
"tags": ["testing"], "tags": ["testing"]
"includeSystemConfig": true
} }

View File

@ -13,6 +13,5 @@
], ],
"main": "banner-specs.html", "main": "banner-specs.html",
"open": "app/banner.component.spec.ts", "open": "app/banner.component.spec.ts",
"tags": ["testing"], "tags": ["testing"]
"includeSystemConfig": true
} }

View File

@ -39,12 +39,10 @@ class PlunkerBuilder {
_addPlunkerFiles(config, postData) { _addPlunkerFiles(config, postData) {
if (config.basePath.indexOf('/ts') > -1) { if (config.basePath.indexOf('/ts') > -1) {
if (config.includeSystemConfig) {
// uses systemjs.config.js so add plunker version // uses systemjs.config.js so add plunker version
this.options.addField(postData, 'systemjs.config.js', this.systemjsConfig); this.options.addField(postData, 'systemjs.config.js', this.systemjsConfig);
} }
} }
}
_buildCopyrightStrings() { _buildCopyrightStrings() {
var copyright = 'Copyright 2017 Google Inc. All Rights Reserved.\n' var copyright = 'Copyright 2017 Google Inc. All Rights Reserved.\n'

View File

@ -19,10 +19,6 @@ var _rxRules = {
from: '/<link rel="stylesheet" href=".*%tag%".*>/', from: '/<link rel="stylesheet" href=".*%tag%".*>/',
to: '<link rel="stylesheet" href="%tag%">' to: '<link rel="stylesheet" href="%tag%">'
}, },
systemjs: {
from: /<script src="systemjs.config.js"><\/script>/,
to: '<script src="https://cdn.rawgit.com/angular/angular.io/b3c65a9/public/docs/_examples/_boilerplate/systemjs.config.web.js"></script>'
},
// Clear script like this: // Clear script like this:
// <script> // <script>
// System.import('app').catch(function(err){ console.error(err); }); // System.import('app').catch(function(err){ console.error(err); });
@ -106,9 +102,6 @@ var _rxData = [
{ {
pattern: 'zone_pkg', pattern: 'zone_pkg',
}, },
{
pattern: 'systemjs',
},
// { // {
// pattern: 'system_strip_import_app', // pattern: 'system_strip_import_app',
// }, // },