chore(upgrade): rename package.json, tsconfig.json, and karma.conf.js

Add *.1.* to filenames so that they are available for shredding.
This commit is contained in:
Tero Parviainen 2015-12-15 18:56:21 +02:00
parent ad4c521130
commit b11cf9419f
16 changed files with 9 additions and 9 deletions

View File

@ -173,7 +173,7 @@ include ../../../../_includes/_util-fns
in the [Quickstart](../quickstart.html). It instructs the TypeScript compiler how
to interpret our source files.
+makeJson('upgrade/ts/typescript-conversion/tsconfig.json', null, 'tsconfig.json')
+makeJson('upgrade/ts/typescript-conversion/tsconfig.1.json', null, 'tsconfig.json')
:marked
We are telling the TypeScript compiler to turn our TypeScript files to ES5 code
@ -183,7 +183,7 @@ include ../../../../_includes/_util-fns
Also add a `tsc` run script to `package.json`. We'll use it to start the TypeScript
compiler:
+makeJson('upgrade/ts/typescript-conversion/package.json', {paths: 'scripts'}, 'package.json', {otl: /(\"tsc.*)/})
+makeJson('upgrade/ts/typescript-conversion/package.1.json', {paths: 'scripts'}, 'package.json', {otl: /(\"tsc.*)/})
:marked
We can now launch the TypeScript compiler from the command line. It will watch
@ -358,7 +358,7 @@ include ../../../../_includes/_util-fns
We will *watch* them so that the test suite is triggered when changes occur, but we
won't have Karma *include* them because that is now done by SystemJS and the shim.
+makeExample('upgrade/ts/typescript-conversion/test/karma.conf.js', 'files', 'test/karma.conf.js')
+makeExample('upgrade/ts/typescript-conversion/test/karma.conf.1.js', 'files', 'test/karma.conf.js')
:marked
Now we have the infrastructure in place and can convert the test files themselves.
@ -523,7 +523,7 @@ include ../../../../_includes/_util-fns
While we're at it, let's also load the same files into unit tests by
updating the Karma config:
+makeExample('upgrade/ts/ng2_initial/test/karma.conf.js', 'ng2', 'test/karma.conf.js', {otl: /(.*\.\.\/node\_modules\/angular2.*)/})
+makeExample('upgrade/ts/ng2_initial/test/karma.conf.1.js', 'ng2', 'test/karma.conf.js', {otl: /(.*\.\.\/node\_modules\/angular2.*)/})
.alert.is-important
:marked
@ -549,7 +549,7 @@ include ../../../../_includes/_util-fns
compiler's `moduleResolution` option to `node`, so that it knows to look
for these definitions from the `angular2` NPM package.
+makeJson('upgrade/ts/ng2_initial/tsconfig.json', null, 'tsconfig.json', {otl: /(\"moduleResolution.*)/})
+makeJson('upgrade/ts/ng2_initial/tsconfig.1.json', null, 'tsconfig.json', {otl: /(\"moduleResolution.*)/})
:marked
Angular 2 bundles the Jasmine type definitions we need in tests, which means
@ -631,7 +631,7 @@ include ../../../../_includes/_util-fns
We'll also do the same in `karma.conf.js` so that `Http` will be available in
unit tests:
+makeExample('upgrade/ts/ng2_initial/test/karma.conf.js', 'ng2-http')
+makeExample('upgrade/ts/ng2_initial/test/karma.conf.1.js', 'ng2-http')
:marked
Before the `Http` service is available for injection, we still need to register
@ -754,7 +754,7 @@ include ../../../../_includes/_util-fns
the Angular 2 test support library in our unit test suite. We first need to
add the angular `testing` bundle to list of files that Karma is loading:
+makeExample('upgrade/ts/ng2_initial/test/karma.conf.js', 'ng2-testing')
+makeExample('upgrade/ts/ng2_initial/test/karma.conf.1.js', 'ng2-testing')
:marked
Then we'll update the Karma test shim. It should load the Angular 2
@ -959,7 +959,7 @@ include ../../../../_includes/_util-fns
before when we were testing the controller in isolation, but our new test
exercises the component as a whole, which includes the template.
+makeExample('upgrade/ts/ng2_components/test/karma.conf.js', 'html', 'test/karma.conf.js')
+makeExample('upgrade/ts/ng2_components/test/karma.conf.1.js', 'html', 'test/karma.conf.js')
:marked
Now we can start looking at our other controller, which is the one for
@ -1289,7 +1289,7 @@ table
:marked
And this is what `karma.conf.js` should look like:
+makeExample('upgrade/ts/ng2_final/test/karma.conf.js', null, 'test/karma.conf.js')
+makeExample('upgrade/ts/ng2_final/test/karma.conf.1.js', null, 'test/karma.conf.js')
:marked
That is the last we'll see of Angular 1! It has served us well but now