From 70e29080f217ab57527f3f0643847d582af3c1d2 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Thu, 10 Dec 2015 09:40:54 -0800 Subject: [PATCH] chore(devguide-tooling): update package.json/tsconfig/plunkerblder for alpha.51 closes #468 --- public/docs/_examples/package.json | 17 ++++++++++------- public/docs/_examples/tsconfig.json | 15 +++++++++++---- tools/plunker-builder/indexHtmlTranslator.js | 15 +++++++++++---- 3 files changed, 32 insertions(+), 15 deletions(-) diff --git a/public/docs/_examples/package.json b/public/docs/_examples/package.json index 6b117c0b55..601db61ba9 100644 --- a/public/docs/_examples/package.json +++ b/public/docs/_examples/package.json @@ -1,24 +1,27 @@ { - "name": "angular2-examples-shared", + "name": "angular2-examples-master", "version": "1.0.0", - "description": "This package.json file is intended to be the superset of all dependencies for all of the package.json files below this point.", + "description": "Master package.json, the superset of all dependencies for all of the _example package.json files.", "main": "index.js", "scripts": { - "tsc": "tsc -p src -w", - "start": "live-server --open=src", - "both": "concurrent \"npm run tsc\" \"npm run start\" " + "tsc": "tsc", + "tsc:w": "tsc -w", + "lite": "lite-server", + "live": "live-server", + "start": "npm run lite", + "both": "concurrent \"npm run tsc:w\" \"npm run start\" " }, "keywords": [], "author": "", "license": "ISC", "dependencies": { - "angular2": "2.0.0-alpha.48", + "angular2": "^2.0.0-alpha.51", "systemjs": "0.19.6" }, "devDependencies": { "concurrently": "^1.0.0", + "lite-server": "^1.3.1", "live-server": "^0.8.2", - "lite-server": "^1.3.1", "typescript": "^1.7.3" } } diff --git a/public/docs/_examples/tsconfig.json b/public/docs/_examples/tsconfig.json index 24f8573a6f..9dc06d2001 100644 --- a/public/docs/_examples/tsconfig.json +++ b/public/docs/_examples/tsconfig.json @@ -1,9 +1,16 @@ { "compilerOptions": { "target": "ES5", - "module": "commonjs", + "module": "system", + "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, - "experimentalDecorators": true - } -} \ No newline at end of file + "experimentalDecorators": true, + "removeComments": false, + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true + }, + "exclude": [ + "node_modules" + ] +} diff --git a/tools/plunker-builder/indexHtmlTranslator.js b/tools/plunker-builder/indexHtmlTranslator.js index a72b656abd..a035825f9c 100644 --- a/tools/plunker-builder/indexHtmlTranslator.js +++ b/tools/plunker-builder/indexHtmlTranslator.js @@ -3,6 +3,10 @@ module.exports = { }; var _rxRules = { + basehref: { + from: //, + to: '' + }, script: { from: /.*<\/script>/, to: '' @@ -24,6 +28,9 @@ var _rxRules = { }; var _rxData = [ + { + pattern: 'basehref', + }, { pattern: 'script', from: 'node_modules/systemjs/dist/system.src.js', @@ -33,22 +40,22 @@ var _rxData = [ { pattern: 'script', from: 'node_modules/angular2/bundles/angular2.dev.js', - to: 'https://code.angularjs.org/2.0.0-alpha.47/angular2.dev.js' + to: 'https://code.angularjs.org/2.0.0-alpha.51/angular2.dev.js' }, { pattern: 'script', from: 'node_modules/angular2/bundles/router.dev.js', - to: 'https://code.angularjs.org/2.0.0-alpha.47/router.dev.js' + to: 'https://code.angularjs.org/2.0.0-alpha.51/router.dev.js' }, { pattern: 'script', from: 'node_modules/angular2/bundles/http.dev.js', - to: 'https://code.angularjs.org/2.0.0-alpha.47/http.dev.js' + to: 'https://code.angularjs.org/2.0.0-alpha.51/http.dev.js' }, { pattern: 'script', from: 'node_modules/angular2/bundles/testing.js', - to: 'https://code.angularjs.org/2.0.0-alpha.47/testing.js' + to: 'https://code.angularjs.org/2.0.0-alpha.51/testing.js' }, { pattern: 'link',