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:
parent
f5271d71f1
commit
044a0c6e5f
|
@ -9,6 +9,5 @@
|
|||
],
|
||||
"main": "quickstart-specs.html",
|
||||
"open": "app/app.component.spec.ts",
|
||||
"tags": ["quickstart", "setup", "testing"],
|
||||
"includeSystemConfig": true
|
||||
"tags": ["quickstart", "setup", "testing"]
|
||||
}
|
||||
|
|
|
@ -10,6 +10,5 @@
|
|||
],
|
||||
"main": "1st-specs.html",
|
||||
"open": "app/1st.spec.ts",
|
||||
"tags": ["testing"],
|
||||
"includeSystemConfig": true
|
||||
"tags": ["testing"]
|
||||
}
|
||||
|
|
|
@ -20,6 +20,5 @@
|
|||
"app-specs.html"
|
||||
],
|
||||
"main": "app-specs.html",
|
||||
"tags": ["testing"],
|
||||
"includeSystemConfig": true
|
||||
"tags": ["testing"]
|
||||
}
|
||||
|
|
|
@ -17,6 +17,5 @@
|
|||
"bag-specs.html"
|
||||
],
|
||||
"main": "bag-specs.html",
|
||||
"tags": ["testing"],
|
||||
"includeSystemConfig": true
|
||||
"tags": ["testing"]
|
||||
}
|
||||
|
|
|
@ -11,6 +11,5 @@
|
|||
],
|
||||
"main": "banner-inline-specs.html",
|
||||
"open": "app/banner-inline.component.spec.ts",
|
||||
"tags": ["testing"],
|
||||
"includeSystemConfig": true
|
||||
"tags": ["testing"]
|
||||
}
|
||||
|
|
|
@ -13,6 +13,5 @@
|
|||
],
|
||||
"main": "banner-specs.html",
|
||||
"open": "app/banner.component.spec.ts",
|
||||
"tags": ["testing"],
|
||||
"includeSystemConfig": true
|
||||
"tags": ["testing"]
|
||||
}
|
||||
|
|
|
@ -39,12 +39,10 @@ class PlunkerBuilder {
|
|||
|
||||
_addPlunkerFiles(config, postData) {
|
||||
if (config.basePath.indexOf('/ts') > -1) {
|
||||
if (config.includeSystemConfig) {
|
||||
// uses systemjs.config.js so add plunker version
|
||||
this.options.addField(postData, 'systemjs.config.js', this.systemjsConfig);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_buildCopyrightStrings() {
|
||||
var copyright = 'Copyright 2017 Google Inc. All Rights Reserved.\n'
|
||||
|
|
|
@ -19,10 +19,6 @@ var _rxRules = {
|
|||
from: '/<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:
|
||||
// <script>
|
||||
// System.import('app').catch(function(err){ console.error(err); });
|
||||
|
@ -106,9 +102,6 @@ var _rxData = [
|
|||
{
|
||||
pattern: 'zone_pkg',
|
||||
},
|
||||
{
|
||||
pattern: 'systemjs',
|
||||
},
|
||||
// {
|
||||
// pattern: 'system_strip_import_app',
|
||||
// },
|
||||
|
|
Loading…
Reference in New Issue