Skip to content

Commit 6519fe6

Browse files
committed
Initial commit
0 parents  commit 6519fe6

39 files changed

+12993
-0
lines changed

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
*.log
7+
*.tmp
8+
*.tmp.*
9+
log.txt
10+
*.sublime-project
11+
*.sublime-workspace
12+
.vscode/
13+
npm-debug.log*
14+
15+
.idea/
16+
.ionic/
17+
.sourcemaps/
18+
.sass-cache/
19+
.tmp/
20+
.versions/
21+
coverage/
22+
www/
23+
node_modules/
24+
tmp/
25+
temp/
26+
platforms/
27+
plugins/
28+
plugins/android.json
29+
plugins/ios.json
30+
$RECYCLE.BIN/
31+
32+
.DS_Store
33+
Thumbs.db
34+
UserInterfaceState.xcuserstate

angular.json

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
{
2+
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
3+
"version": 1,
4+
"defaultProject": "app",
5+
"projects": {
6+
"app": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"progress": false,
17+
"outputPath": "www",
18+
"index": "src/index.html",
19+
"main": "src/main.ts",
20+
"polyfills": "src/polyfills.ts",
21+
"tsConfig": "src/tsconfig.app.json",
22+
"assets": [
23+
{
24+
"glob": "**/*",
25+
"input": "src/assets",
26+
"output": "assets"
27+
},
28+
{
29+
"glob": "**/*.svg",
30+
"input": "node_modules/@ionic/angular/dist/ionic/svg",
31+
"output": "./svg"
32+
}
33+
],
34+
"styles": [
35+
{
36+
"input": "src/theme/variables.scss"
37+
},
38+
{
39+
"input": "src/global.scss"
40+
}
41+
],
42+
"scripts": []
43+
},
44+
"configurations": {
45+
"production": {
46+
"fileReplacements": [
47+
{
48+
"replace": "src/environments/environment.ts",
49+
"with": "src/environments/environment.prod.ts"
50+
}
51+
],
52+
"optimization": true,
53+
"outputHashing": "all",
54+
"sourceMap": false,
55+
"extractCss": true,
56+
"namedChunks": false,
57+
"aot": true,
58+
"extractLicenses": true,
59+
"vendorChunk": false,
60+
"buildOptimizer": true
61+
}
62+
}
63+
},
64+
"serve": {
65+
"builder": "@angular-devkit/build-angular:dev-server",
66+
"options": {
67+
"browserTarget": "app:build"
68+
},
69+
"configurations": {
70+
"production": {
71+
"browserTarget": "app:build:production"
72+
}
73+
}
74+
},
75+
"extract-i18n": {
76+
"builder": "@angular-devkit/build-angular:extract-i18n",
77+
"options": {
78+
"browserTarget": "app:build"
79+
}
80+
},
81+
"test": {
82+
"builder": "@angular-devkit/build-angular:karma",
83+
"options": {
84+
"main": "src/test.ts",
85+
"polyfills": "src/polyfills.ts",
86+
"tsConfig": "src/tsconfig.spec.json",
87+
"karmaConfig": "src/karma.conf.js",
88+
"styles": [
89+
"styles.css"
90+
],
91+
"scripts": [],
92+
"assets": [
93+
{
94+
"glob": "favicon.ico",
95+
"input": "src/",
96+
"output": "/"
97+
},
98+
{
99+
"glob": "**/*",
100+
"input": "src/assets",
101+
"output": "/assets"
102+
}
103+
]
104+
}
105+
},
106+
"lint": {
107+
"builder": "@angular-devkit/build-angular:tslint",
108+
"options": {
109+
"tsConfig": [
110+
"src/tsconfig.app.json",
111+
"src/tsconfig.spec.json"
112+
],
113+
"exclude": [
114+
"**/node_modules/**"
115+
]
116+
}
117+
},
118+
"ionic-cordova-build": {
119+
"builder": "@ionic/ng-toolkit:cordova-build",
120+
"options": {
121+
"browserTarget": "app:build"
122+
},
123+
"configurations": {
124+
"production": {
125+
"browserTarget": "app:build:production"
126+
}
127+
}
128+
},
129+
"ionic-cordova-serve": {
130+
"builder": "@ionic/ng-toolkit:cordova-serve",
131+
"options": {
132+
"cordovaBuildTarget": "app:ionic-cordova-build",
133+
"devServerTarget": "app:serve"
134+
},
135+
"configurations": {
136+
"production": {
137+
"cordovaBuildTarget": "app:ionic-cordova-build:production",
138+
"devServerTarget": "app:serve:production"
139+
}
140+
}
141+
}
142+
}
143+
},
144+
"app-e2e": {
145+
"root": "e2e/",
146+
"projectType": "application",
147+
"architect": {
148+
"e2e": {
149+
"builder": "@angular-devkit/build-angular:protractor",
150+
"options": {
151+
"protractorConfig": "e2e/protractor.conf.js",
152+
"devServerTarget": "app:serve"
153+
}
154+
},
155+
"lint": {
156+
"builder": "@angular-devkit/build-angular:tslint",
157+
"options": {
158+
"tsConfig": "e2e/tsconfig.e2e.json",
159+
"exclude": [
160+
"**/node_modules/**"
161+
]
162+
}
163+
}
164+
}
165+
}
166+
},
167+
"cli": {
168+
"defaultCollection": "@ionic/schematics-angular"
169+
},
170+
"schematics": {
171+
"@ionic/schematics-angular:component": {
172+
"styleext": "scss"
173+
},
174+
"@ionic/schematics-angular:page": {
175+
"styleext": "scss"
176+
}
177+
}
178+
}

e2e/protractor.conf.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Protractor configuration file, see link for more information
2+
// https://github.com/angular/protractor/blob/master/lib/config.ts
3+
4+
const { SpecReporter } = require('jasmine-spec-reporter');
5+
6+
exports.config = {
7+
allScriptsTimeout: 11000,
8+
specs: [
9+
'./src/**/*.e2e-spec.ts'
10+
],
11+
capabilities: {
12+
'browserName': 'chrome'
13+
},
14+
directConnect: true,
15+
baseUrl: 'http://localhost:4200/',
16+
framework: 'jasmine',
17+
jasmineNodeOpts: {
18+
showColors: true,
19+
defaultTimeoutInterval: 30000,
20+
print: function() {}
21+
},
22+
onPrepare() {
23+
require('ts-node').register({
24+
project: 'e2e/tsconfig.e2e.json'
25+
});
26+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
27+
}
28+
};

e2e/src/app.e2e-spec.ts

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { AppPage } from './app.po';
2+
3+
describe('new App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
describe('default screen', () => {
10+
beforeEach(() => {
11+
page.navigateTo('/home');
12+
});
13+
it('should have a title saying Home', () => {
14+
page.getPageOneTitleText().then(title => {
15+
expect(title).toEqual('Home');
16+
});
17+
});
18+
});
19+
});

e2e/src/app.po.ts

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo(destination) {
5+
return browser.get(destination);
6+
}
7+
8+
getTitle() {
9+
return browser.getTitle();
10+
}
11+
12+
getPageOneTitleText() {
13+
return element(by.tagName('app-home')).element(by.deepCss('ion-title')).getText();
14+
}
15+
}

e2e/tsconfig.e2e.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"baseUrl": "./",
6+
"module": "commonjs",
7+
"target": "es5"
8+
}
9+
}

ionic.config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "ionic4-angular6-crud",
3+
"integrations": {},
4+
"type": "angular"
5+
}

0 commit comments

Comments
 (0)