-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MrFrankel
committed
Jun 14, 2018
1 parent
bda1c7f
commit 282f571
Showing
13 changed files
with
612 additions
and
525 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es5", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"moduleResolution": "node", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"strictNullChecks": true, | ||
"skipLibCheck": true, | ||
"lib": [ | ||
"es7", | ||
"dom", | ||
"es2017.object", | ||
"es2015.iterable", | ||
"ScriptHost" | ||
] | ||
}, | ||
"typeRoots": [ | ||
"./node_modules/@types", | ||
"./node_modules" | ||
], | ||
"types": [ | ||
"node" | ||
], | ||
"include": [ | ||
"." | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"dist-tsc", | ||
"test", | ||
"example-cli" | ||
], | ||
"angularCompilerOptions": { | ||
"preserveWhiteSpace": false | ||
|
||
} | ||
} |
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es5", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"moduleResolution": "node", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"strictNullChecks": true, | ||
"skipLibCheck": true, | ||
"lib": [ | ||
"es7", | ||
"dom", | ||
"es2017.object", | ||
"es2015.iterable", | ||
"ScriptHost" | ||
] | ||
}, | ||
"typeRoots": [ | ||
"./node_modules/@types", | ||
"./node_modules" | ||
], | ||
"types": [ | ||
"node" | ||
], | ||
"include": [ | ||
"." | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"dist-tsc", | ||
"example", | ||
"example-cli" | ||
], | ||
"angularCompilerOptions": { | ||
"preserveWhiteSpace": false | ||
|
||
} | ||
} |
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,66 @@ | ||
const path = require('path'); | ||
const {CheckerPlugin} = require('awesome-typescript-loader'); | ||
const webpack = require('webpack'); | ||
const OpenBrowserPlugin = require('open-browser-webpack-plugin'); | ||
const chalk = require('chalk'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const ProgressBarPlugin = require('progress-bar-webpack-plugin'); | ||
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin; | ||
|
||
module.exports = { | ||
entry: './test/app/index.ts', | ||
output: { | ||
filename: '[name].js', | ||
path: path.resolve(__dirname, '../test_dist') | ||
}, | ||
resolve: { | ||
extensions: ['.ts', '.tsx', '.js', '.jsx', '.html', '.css'] | ||
}, | ||
devtool: 'source-map', | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts?$/, | ||
use: ['awesome-typescript-loader', 'angular2-template-loader'], | ||
exclude: ['node_modules', /__tests__/, 'example', 'dist', 'dist_tsc'] | ||
}, | ||
{ | ||
test: /\.(html|css)$/, | ||
use: 'raw-loader', | ||
exclude: ['node_modules', /__tests__/, 'example', 'dist', 'dist_tsc'] | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new CheckerPlugin(), | ||
new AngularCompilerPlugin({ | ||
tsConfigPath: './test/tsconfig.json', | ||
entryModule: 'test/app/app.module#AppModule', | ||
sourceMap: true | ||
}), | ||
|
||
new HtmlWebpackPlugin({ | ||
inject: true, | ||
template: 'test/index.html' | ||
}), | ||
new ProgressBarPlugin({ | ||
format: ' build [' + chalk.blue.bold(':bar') + ']' + chalk.green.bold(':percent') + ' (:elapsed seconds) => :msg... ', | ||
clear: false | ||
}), | ||
new OpenBrowserPlugin({ | ||
url: `http://localhost:8888` | ||
}), | ||
new webpack.HotModuleReplacementPlugin() | ||
], | ||
devServer: { | ||
// https: true, | ||
hot: true, | ||
stats: 'errors-only', | ||
port: 8888, | ||
inline: true, | ||
historyApiFallback: { | ||
index: './test/' | ||
}, | ||
open: false | ||
} | ||
}; |
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
Oops, something went wrong.