This repository has been archived by the owner on Jul 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ngrx/build-process
chore: Upgrade build process to use ngc and new folder structure
- Loading branch information
Showing
19 changed files
with
101 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,4 @@ __build__/** | |
|
||
# Build Artifacts # | ||
release | ||
.ngc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
machine: | ||
node: | ||
version: 6.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'core-js'; | ||
import 'core-js/es7/reflect'; | ||
import 'zone.js/dist/zone'; | ||
import 'zone.js/dist/long-stack-trace-zone'; | ||
import 'zone.js/dist/jasmine-patch'; | ||
import 'zone.js/dist/async-test'; | ||
import 'zone.js/dist/fake-async-test'; | ||
import 'zone.js/dist/sync-test'; | ||
|
||
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. | ||
declare var __karma__: any; | ||
declare var System: any; | ||
|
||
// Prevent Karma from running prematurely. | ||
__karma__.loaded = function () {}; | ||
|
||
|
||
Promise.all([ | ||
System.import('@angular/core/testing'), | ||
System.import('@angular/platform-browser-dynamic/testing') | ||
]) | ||
// First, initialize the Angular testing environment. | ||
.then(([testing, testingBrowser]) => { | ||
testing.getTestBed().initTestEnvironment( | ||
testingBrowser.BrowserDynamicTestingModule, | ||
testingBrowser.platformBrowserDynamicTesting() | ||
); | ||
}) | ||
// Then we find all the tests. | ||
.then(() => (<any>require).context('./spec', true, /\.spec\.ts/)) | ||
// And load the modules. | ||
.then(context => context.keys().map(context)) | ||
// Finally, start Karma to run the tests. | ||
.then(__karma__.start, __karma__.error); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"version": "2.0.0", | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"outDir": "./release/esm", | ||
"target": "es5", | ||
"module": "es2015", | ||
"sourceMap": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"removeComments": false, | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
"lib": ["dom", "es5", "es2015"] | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"genDir": ".ngc" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
{ | ||
"version": "1.8.0", | ||
"version": "2.0.0", | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"outDir": "./release/es6", | ||
"target": "es6", | ||
"sourceMap": true, | ||
"outDir": "./release", | ||
"target": "es5", | ||
"module": "commonjs", | ||
"sourceMap": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"removeComments": false, | ||
"moduleResolution": "node", | ||
"declaration": true | ||
"declaration": true, | ||
"lib": ["dom", "es5", "es2015"] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"spec", | ||
"typings", | ||
"release" | ||
] | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"genDir": ".ngc" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.