Skip to content

Commit 17ed2ce

Browse files
committed
Updated CLI to 1.6.5 and lib to 1.0.0-beta.11
1 parent e22f667 commit 17ed2ce

25 files changed

+14691
-184
lines changed
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
23
"project": {
3-
"version": "1.0.0-beta.25.5",
44
"name": "ng2-select2-demo"
55
},
66
"apps": [
@@ -13,50 +13,51 @@
1313
],
1414
"index": "index.html",
1515
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
1617
"test": "test.ts",
17-
"tsconfig": "tsconfig.json",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
1820
"prefix": "app",
19-
"mobile": false,
2021
"styles": [
2122
"styles.css"
2223
],
2324
"scripts": [
2425
"../node_modules/jquery/dist/jquery.js",
2526
"../node_modules/select2/dist/js/select2.full.js"
2627
],
28+
"environmentSource": "environments/environment.ts",
2729
"environments": {
28-
"source": "environments/environment.ts",
2930
"dev": "environments/environment.ts",
3031
"prod": "environments/environment.prod.ts"
3132
}
3233
}
3334
],
34-
"addons": [],
35-
"packages": [],
3635
"e2e": {
3736
"protractor": {
3837
"config": "./protractor.conf.js"
3938
}
4039
},
40+
"lint": [
41+
{
42+
"project": "src/tsconfig.app.json",
43+
"exclude": "**/node_modules/**"
44+
},
45+
{
46+
"project": "src/tsconfig.spec.json",
47+
"exclude": "**/node_modules/**"
48+
},
49+
{
50+
"project": "e2e/tsconfig.e2e.json",
51+
"exclude": "**/node_modules/**"
52+
}
53+
],
4154
"test": {
4255
"karma": {
4356
"config": "./karma.conf.js"
4457
}
4558
},
4659
"defaults": {
4760
"styleExt": "css",
48-
"prefixInterfaces": false,
49-
"inline": {
50-
"style": false,
51-
"template": false
52-
},
53-
"spec": {
54-
"class": false,
55-
"component": true,
56-
"directive": true,
57-
"module": false,
58-
"pipe": true,
59-
"service": true
60-
}
61+
"component": {}
6162
}
6263
}

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# compiled output
44
/dist
5+
/dist-server
56
/tmp
7+
/out-tsc
68

79
# dependencies
810
/node_modules
@@ -14,9 +16,10 @@
1416
.c9/
1517
*.launch
1618
.settings/
19+
*.sublime-workspace
1720

1821
# IDE - VSCode
19-
.vscode/
22+
.vscode/*
2023
!.vscode/settings.json
2124
!.vscode/tasks.json
2225
!.vscode/launch.json
@@ -25,7 +28,7 @@
2528
# misc
2629
/.sass-cache
2730
/connect.lock
28-
/coverage/*
31+
/coverage
2932
/libpeerconnection.log
3033
npm-debug.log
3134
testem.log
@@ -35,6 +38,6 @@ testem.log
3538
/e2e/*.js
3639
/e2e/*.map
3740

38-
#System Files
41+
# System Files
3942
.DS_Store
4043
Thumbs.db

e2e/app.e2e-spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Ng2Select2DemoPage } from './app.po';
1+
import { AppPage } from './app.po';
22

3-
describe('ng2-select2-demo App', function() {
4-
let page: Ng2Select2DemoPage;
3+
describe('ng2-select2-demo App', () => {
4+
let page: AppPage;
55

66
beforeEach(() => {
7-
page = new Ng2Select2DemoPage();
7+
page = new AppPage();
88
});
99

10-
it('should display message saying app works', () => {
10+
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('app works!');
12+
expect(page.getParagraphText()).toEqual('Welcome to app!');
1313
});
1414
});

e2e/app.po.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { browser, element, by } from 'protractor';
1+
import { browser, by, element } from 'protractor';
22

3-
export class Ng2Select2DemoPage {
3+
export class AppPage {
44
navigateTo() {
55
return browser.get('/');
66
}

e2e/tsconfig.e2e.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"baseUrl": "./",
6+
"module": "commonjs",
7+
"target": "es5",
8+
"types": [
9+
"jasmine",
10+
"jasminewd2",
11+
"node"
12+
]
13+
}
14+
}

karma.conf.js

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,28 @@
11
// Karma configuration file, see link for more information
2-
// https://karma-runner.github.io/0.13/config/configuration-file.html
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', 'angular-cli'],
7+
frameworks: ['jasmine', '@angular/cli'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
11-
require('karma-remap-istanbul'),
12-
require('angular-cli/plugins/karma')
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular/cli/plugins/karma')
1314
],
14-
files: [
15-
{ pattern: './src/test.ts', watched: false }
16-
],
17-
preprocessors: {
18-
'./src/test.ts': ['angular-cli']
19-
},
20-
mime: {
21-
'text/x-typescript': ['ts','tsx']
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
2217
},
23-
remapIstanbulReporter: {
24-
reports: {
25-
html: 'coverage',
26-
lcovonly: './coverage/coverage.lcov'
27-
}
18+
coverageIstanbulReporter: {
19+
reports: [ 'html', 'lcovonly' ],
20+
fixWebpackSourcePaths: true
2821
},
2922
angularCli: {
30-
config: './angular-cli.json',
3123
environment: 'dev'
3224
},
33-
reporters: config.angularCli && config.angularCli.codeCoverage
34-
? ['progress', 'karma-remap-istanbul']
35-
: ['progress'],
25+
reporters: ['progress', 'kjhtml'],
3626
port: 9876,
3727
colors: true,
3828
logLevel: config.LOG_INFO,

0 commit comments

Comments
 (0)