Skip to content

Commit 3a6b5f1

Browse files
committed
Refactor code and build structure
1 parent 3d9186e commit 3a6b5f1

File tree

51 files changed

+49
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+49
-79
lines changed

.angular-cli.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"apps": [
77
{
88
"root": "src",
9+
"appRoot": "",
910
"outDir": "dist",
10-
"main": "../karmaMain.ts",
11+
"main": "../main.ts",
1112
"polyfills": "../polyfills.ts",
1213
"test": "../test.ts",
1314
"tsconfig": "../tsconfig.json",

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ coverage
1212
.travis.yml
1313
gulpfile.js
1414
karma.conf.js
15-
karmaMain.ts
1615
polyfills.ts
17-
protractor.conf.js
1816
test.ts
1917
tsconfig.json
2018
tsconfig.ngc.json

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const tmpDir = './tmp';
66
const distDir = './dist';
77

88
gulp.task('inline-templates', ['clean-tmp'], function () {
9-
return gulp.src(['!./src/app/**/*.spec.ts', './src/app/**/*.ts'])
9+
return gulp.src('./src/**/*.ts')
1010
.pipe(inlineNg2Template({
1111
base: '/src',
1212
target: 'es6',

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module.exports = function (config) {
55
config.set({
6-
basePath: '',
6+
basePath: 'test',
77
frameworks: ['jasmine', '@angular/cli'],
88
plugins: [
99
require('karma-jasmine'),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2-
import { NgHttpLoaderModule } from './src/app/ng-http-loader.module';
2+
import { NgHttpLoaderModule } from './src/ng-http-loader.module';
33

44
platformBrowserDynamic().bootstrapModule(NgHttpLoaderModule);

protractor.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)