Skip to content

Commit 7be12d0

Browse files
committed
First Push.
0 parents  commit 7be12d0

File tree

160 files changed

+22758
-0
lines changed

Some content is hidden

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

160 files changed

+22758
-0
lines changed

AngularApp/angular.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"cd-admin-v2": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"architect": {
11+
"build": {
12+
"builder": "@angular-devkit/build-angular:browser",
13+
"options": {
14+
"outputPath": "dist",
15+
"index": "src/index.html",
16+
"main": "src/main.ts",
17+
"tsConfig": "src/tsconfig.app.json",
18+
"polyfills": "src/polyfills.ts",
19+
"assets": [
20+
"src/assets",
21+
"src/favicon.ico"
22+
],
23+
"styles": [
24+
"src/theme/theme.scss",
25+
"src/theme/typography.scss"
26+
],
27+
"scripts": []
28+
},
29+
"configurations": {
30+
"production": {
31+
"fileReplacements": [
32+
{
33+
"replace": "src/environments/environment.ts",
34+
"with": "src/environments/environment.prod.ts"
35+
}
36+
]
37+
}
38+
}
39+
},
40+
"serve": {
41+
"builder": "@angular-devkit/build-angular:dev-server",
42+
"options": {
43+
"browserTarget": "cd-admin-v2:build"
44+
},
45+
"configurations": {
46+
"prod": {
47+
"browserTarget": "cd-admin-v2:build:prod"
48+
}
49+
}
50+
},
51+
"extract-i18n": {
52+
"builder": "@angular-devkit/build-angular:extract-i18n",
53+
"options": {
54+
"browserTarget": "cd-admin-v2:build"
55+
}
56+
},
57+
"test": {
58+
"builder": "@angular-devkit/build-angular:karma",
59+
"options": {
60+
"main": "src/test.ts",
61+
"karmaConfig": "./karma.conf.js",
62+
"polyfills": "src/polyfills.ts",
63+
"tsConfig": "src/tsconfig.spec.json",
64+
"scripts": [],
65+
"styles": [
66+
"src/theme/theme.scss",
67+
"src/theme/typography.scss"
68+
],
69+
"assets": [
70+
"src/assets",
71+
"src/favicon.ico"
72+
]
73+
}
74+
},
75+
"lint": {
76+
"builder": "@angular-devkit/build-angular:tslint",
77+
"options": {
78+
"tsConfig": [
79+
"src/tsconfig.app.json",
80+
"src/tsconfig.spec.json"
81+
],
82+
"exclude": [
83+
"**/node_modules/**"
84+
]
85+
}
86+
}
87+
}
88+
}
89+
},
90+
"defaultProject": "Beetle Project Management",
91+
"schematics": {
92+
"@schematics/angular:component": {
93+
"prefix": "app",
94+
"styleext": "scss"
95+
},
96+
"@schematics/angular:directive": {
97+
"prefix": "app"
98+
}
99+
}
100+
}

AngularApp/e2e/app.e2e-spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { AppPage } from './app.po';
2+
3+
describe('cd-admin-v2 App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
10+
it('should display welcome message', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toEqual('Welcome to app!');
13+
});
14+
});

AngularApp/e2e/app.po.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getParagraphText() {
9+
return element(by.css('app-root h1')).getText();
10+
}
11+
}

AngularApp/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+
}

AngularApp/firebase.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"hosting": {
3+
"public": "dist",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
]
9+
}
10+
}

AngularApp/karma.conf.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular-devkit/build-angular/plugins/karma')
14+
],
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
},
18+
coverageIstanbulReporter: {
19+
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
20+
fixWebpackSourcePaths: true
21+
},
22+
23+
reporters: ['progress', 'kjhtml'],
24+
port: 9876,
25+
colors: true,
26+
logLevel: config.LOG_INFO,
27+
autoWatch: true,
28+
browsers: ['Chrome'],
29+
singleRun: false
30+
});
31+
};

0 commit comments

Comments
 (0)