Commit bc8f02420f59d5ea1e821baba384511e3aae2027
1 parent
bb8f499a
Exists in
master
and in
35 other branches
renamed spec.ts to specs.ts to avoid include to spec.ts itself in the webpack entry
Showing
3 changed files
with
12 additions
and
12 deletions
Show diff stats
src/spec.ts
... | ... | @@ -1,11 +0,0 @@ |
1 | - | |
2 | -require("core-js/shim"); | |
3 | -require("reflect-metadata"); | |
4 | -require("ng-forward"); | |
5 | - | |
6 | - | |
7 | -// require all spec files | |
8 | -requireAll((<any>require).context("./", true, /spec.ts$/)); | |
9 | -function requireAll(r: any): any { | |
10 | - r.keys().forEach(r); | |
11 | -} | |
12 | 0 | \ No newline at end of file |
... | ... | @@ -0,0 +1,11 @@ |
1 | + | |
2 | +require("core-js/shim"); | |
3 | +require("reflect-metadata"); | |
4 | +require("ng-forward"); | |
5 | + | |
6 | + | |
7 | +// require all spec files | |
8 | +requireAll((<any>require).context("./", true, /spec.ts$/)); | |
9 | +function requireAll(r: any): any { | |
10 | + r.keys().forEach(r); | |
11 | +} | |
0 | 12 | \ No newline at end of file | ... | ... |
webpack.config.js
... | ... | @@ -25,7 +25,7 @@ var testingFiles = glob.sync("./src/app/**/*.[sS]pec.ts"); |
25 | 25 | var webpackConfig = { |
26 | 26 | entry: { |
27 | 27 | noosfero: './src/app/index.ts', |
28 | - 'noosfero-specs': './src/spec.ts' | |
28 | + 'noosfero-specs': './src/specs.ts' | |
29 | 29 | }, |
30 | 30 | |
31 | 31 | plugins: [ new CommonsChunkPlugin("commons.js")], | ... | ... |