Skip to content

Commit 2061d97

Browse files
author
Andrew Koroluk
committed
wip
1 parent faa41ee commit 2061d97

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

src/generators/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export class Generator extends Base {
542542

543543
// Convert HTML into Pug
544544
if(this.filters.pug) {
545-
let pugFilter = filter(['**/*.html'], {restore: true});
545+
let pugFilter = filter(['**/*.html', '!client/_index.html'], {restore: true});
546546
this.registerTransformStream([
547547
pugFilter,
548548
html2jade({

templates/app/_package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144
"html-webpack-harddisk-plugin": "~0.0.2",
145145
<%_ if(filters.pug) { _%>
146146
"pug-html-loader": "^1.0.8",<% } %>
147-
"awesome-typescript-loader": "^2.2.4",
147+
"typescript": "^2.2.1",
148+
"awesome-typescript-loader": "^3.1.2",
148149
"ng-annotate-loader": "~0.1.0",
149150
"babel-loader": "^6.2.4",
150151
"css-loader": "^0.24.0",

templates/app/tsconfig.client(ts).json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"experimentalDecorators": true,
34
"sourceMap": true,
45
"rootDir": "./client",
56
"module": "commonjs",

templates/app/webpack.make.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
99
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
1010
var fs = require('fs');
1111
var path = require('path');
12-
var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
1312

1413
module.exports = function makeWebpackConfig(options) {
1514
/**
@@ -76,13 +75,13 @@ module.exports = function makeWebpackConfig(options) {
7675

7776
<%_ if(filters.ts) { _%>
7877
config.resolve = {
79-
modulesDirectories: ['node_modules'],
78+
modules: ['node_modules'],
8079
extensions: ['.js', '.ts']
8180
};<% } %>
8281

8382
if(TEST) {
8483
config.resolve = {
85-
modulesDirectories: [
84+
modules: [
8685
'node_modules'
8786
],
8887
extensions: ['.js', '.ts']
@@ -158,7 +157,7 @@ module.exports = function makeWebpackConfig(options) {
158157
// Reference: https://github.com/willyelm/pug-html-loader
159158
// Allow loading Pug throw js
160159
test: /\.(jade|pug)$/,
161-
use: 'pug-html-loader'
160+
use: ['raw-loaer', 'pug-html-loader']
162161
}, {<% } %>
163162
<%_ if(filters.html) { _%>
164163
// HTML LOADER
@@ -180,7 +179,7 @@ module.exports = function makeWebpackConfig(options) {
180179
//
181180
// Reference: https://github.com/webpack/style-loader
182181
// Use style-loader in development for hot-loading
183-
? ExtractTextPlugin.extract({fallbackLoader: 'style-loader', loader: ['css-loader', 'postcss-loader']})
182+
? ExtractTextPlugin.extract({fallback: 'style-loader', use: ['css-loader', 'postcss-loader']})
184183
// Reference: https://github.com/webpack/null-loader
185184
// Skip loading css in test mode
186185
: 'null-loader'
@@ -224,14 +223,6 @@ module.exports = function makeWebpackConfig(options) {
224223
* List: http://webpack.github.io/docs/list-of-plugins.html
225224
*/
226225
config.plugins = [
227-
/*
228-
* Plugin: ForkCheckerPlugin
229-
* Description: Do type checking in a separate process, so webpack don't need to wait.
230-
*
231-
* See: https://github.com/s-panferov/awesome-typescript-loader#forkchecker-boolean-defaultfalse
232-
*/
233-
new ForkCheckerPlugin(),
234-
235226
// Reference: https://github.com/webpack/extract-text-webpack-plugin
236227
// Extract css files
237228
// Disabled when in test mode or not in build mode

0 commit comments

Comments
 (0)