Skip to content

Commit 479f8e3

Browse files
committed
initial commit
1 parent 58682c2 commit 479f8e3

Some content is hidden

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

71 files changed

+1146
-2
lines changed

README.md

-2
This file was deleted.

angular.json

+161
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
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+
"outputPath": "www",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"assets": [
22+
{
23+
"glob": "**/*",
24+
"input": "src/assets",
25+
"output": "assets"
26+
},
27+
{
28+
"glob": "**/*.svg",
29+
"input": "node_modules/ionicons/dist/ionicons/svg",
30+
"output": "./svg"
31+
}
32+
],
33+
"styles": ["src/theme/variables.scss", "src/global.scss"],
34+
"scripts": [],
35+
"aot": false,
36+
"vendorChunk": true,
37+
"extractLicenses": false,
38+
"buildOptimizer": false,
39+
"sourceMap": true,
40+
"optimization": false,
41+
"namedChunks": true
42+
},
43+
"configurations": {
44+
"production": {
45+
"fileReplacements": [
46+
{
47+
"replace": "src/environments/environment.ts",
48+
"with": "src/environments/environment.prod.ts"
49+
}
50+
],
51+
"optimization": true,
52+
"outputHashing": "all",
53+
"sourceMap": false,
54+
"namedChunks": false,
55+
"aot": true,
56+
"extractLicenses": true,
57+
"vendorChunk": false,
58+
"buildOptimizer": true,
59+
"budgets": [
60+
{
61+
"type": "initial",
62+
"maximumWarning": "2mb",
63+
"maximumError": "5mb"
64+
}
65+
]
66+
},
67+
"ci": {
68+
"progress": false
69+
}
70+
}
71+
},
72+
"serve": {
73+
"builder": "@angular-devkit/build-angular:dev-server",
74+
"options": {
75+
"browserTarget": "app:build"
76+
},
77+
"configurations": {
78+
"production": {
79+
"browserTarget": "app:build:production"
80+
},
81+
"ci": {
82+
"progress": false
83+
}
84+
}
85+
},
86+
"extract-i18n": {
87+
"builder": "@angular-devkit/build-angular:extract-i18n",
88+
"options": {
89+
"browserTarget": "app:build"
90+
}
91+
},
92+
"test": {
93+
"builder": "@angular-devkit/build-angular:karma",
94+
"options": {
95+
"main": "src/test.ts",
96+
"polyfills": "src/polyfills.ts",
97+
"tsConfig": "tsconfig.spec.json",
98+
"karmaConfig": "karma.conf.js",
99+
"styles": [],
100+
"scripts": [],
101+
"assets": [
102+
{
103+
"glob": "favicon.ico",
104+
"input": "src/",
105+
"output": "/"
106+
},
107+
{
108+
"glob": "**/*",
109+
"input": "src/assets",
110+
"output": "/assets"
111+
}
112+
]
113+
},
114+
"configurations": {
115+
"ci": {
116+
"progress": false,
117+
"watch": false
118+
}
119+
}
120+
},
121+
"lint": {
122+
"builder": "@angular-eslint/builder:lint",
123+
"options": {
124+
"lintFilePatterns": [
125+
"src/**/*.ts",
126+
"src/**/*.html"
127+
]
128+
}
129+
},
130+
"e2e": {
131+
"builder": "@angular-devkit/build-angular:protractor",
132+
"options": {
133+
"protractorConfig": "e2e/protractor.conf.js",
134+
"devServerTarget": "app:serve"
135+
},
136+
"configurations": {
137+
"production": {
138+
"devServerTarget": "app:serve:production"
139+
},
140+
"ci": {
141+
"devServerTarget": "app:serve:ci"
142+
}
143+
}
144+
}
145+
}
146+
}
147+
},
148+
"cli": {
149+
"schematicCollections": [
150+
"@ionic/angular-toolkit"
151+
]
152+
},
153+
"schematics": {
154+
"@ionic/angular-toolkit:component": {
155+
"styleext": "scss"
156+
},
157+
"@ionic/angular-toolkit:page": {
158+
"styleext": "scss"
159+
}
160+
}
161+
}

e2e/protractor.conf.js

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

e2e/src/app.e2e-spec.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { AppPage } from './app.po';
2+
3+
describe('new App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
10+
it('should be blank', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toContain('Lorem ipsum dolor sit amet');
13+
});
14+
});

e2e/src/app.po.ts

+11
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.deepCss('app-root ion-content')).getText();
10+
}
11+
}

e2e/tsconfig.json

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

ionic.config.json

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

karma.conf.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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'),
13+
require('@angular-devkit/build-angular/plugins/karma')
14+
],
15+
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
22+
clearContext: false // leave Jasmine Spec Runner output visible in browser
23+
},
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, './coverage/ngv'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
34+
},
35+
reporters: ['progress', 'kjhtml'],
36+
port: 9876,
37+
colors: true,
38+
logLevel: config.LOG_INFO,
39+
autoWatch: true,
40+
browsers: ['Chrome'],
41+
singleRun: false,
42+
restartOnFileChange: true
43+
});
44+
};

package.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "momint",
3+
"version": "0.0.1",
4+
"author": "Ionic Framework",
5+
"homepage": "https://ionicframework.com/",
6+
"scripts": {
7+
"ng": "ng",
8+
"start": "ng serve",
9+
"build": "ng build",
10+
"test": "ng test",
11+
"lint": "ng lint",
12+
"e2e": "ng e2e"
13+
},
14+
"private": true,
15+
"dependencies": {
16+
"@angular/common": "14.0.0",
17+
"@angular/core": "14.0.0",
18+
"@angular/forms": "14.0.0",
19+
"@angular/platform-browser": "14.0.0",
20+
"@angular/platform-browser-dynamic": "14.0.0",
21+
"@angular/router": "14.0.0",
22+
"@ionic/angular": "6.1.9",
23+
"rxjs": "~6.6.0",
24+
"tslib": "^2.2.0",
25+
"zone.js": "~0.11.4"
26+
},
27+
"devDependencies": {
28+
"@angular-devkit/build-angular": "^14.0.0",
29+
"@angular-eslint/builder": "~13.0.1",
30+
"@angular-eslint/eslint-plugin": "~13.0.1",
31+
"@angular-eslint/eslint-plugin-template": "~13.0.1",
32+
"@angular-eslint/template-parser": "~13.0.1",
33+
"@angular/cli": "^14.0.0",
34+
"@angular/compiler": "^14.0.0",
35+
"@angular/compiler-cli": "^14.0.0",
36+
"@angular/language-service": "^14.0.0",
37+
"@ionic/angular-toolkit": "^6.0.0",
38+
"@types/jasmine": "~3.6.0",
39+
"@types/jasminewd2": "~2.0.3",
40+
"@types/node": "^12.11.1",
41+
"@typescript-eslint/eslint-plugin": "5.3.0",
42+
"@typescript-eslint/parser": "5.3.0",
43+
"eslint": "^7.6.0",
44+
"eslint-plugin-import": "2.22.1",
45+
"eslint-plugin-jsdoc": "30.7.6",
46+
"eslint-plugin-prefer-arrow": "1.2.2",
47+
"jasmine-core": "~3.8.0",
48+
"jasmine-spec-reporter": "~5.0.0",
49+
"karma": "~6.3.2",
50+
"karma-chrome-launcher": "~3.1.0",
51+
"karma-coverage": "~2.0.3",
52+
"karma-coverage-istanbul-reporter": "~3.0.2",
53+
"karma-jasmine": "~4.0.0",
54+
"karma-jasmine-html-reporter": "^1.5.0",
55+
"protractor": "~7.0.0",
56+
"ts-node": "~8.3.0",
57+
"typescript": "~4.7.3"
58+
},
59+
"description": "An Ionic project"
60+
}

src/app/app-routing.module.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { NgModule } from '@angular/core';
2+
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
3+
4+
const routes: Routes = [
5+
{
6+
path: 'discover',
7+
loadChildren: () => import('./features/nfts/screens/discover/discover.module').then(m => m.DiscoverPageModule)
8+
},
9+
{
10+
path: '',
11+
redirectTo: 'discover',
12+
pathMatch: 'full'
13+
},
14+
];
15+
16+
@NgModule({
17+
imports: [
18+
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
19+
],
20+
exports: [RouterModule]
21+
})
22+
export class AppRoutingModule { }

src/app/app.component.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ion-app>
2+
<ion-router-outlet></ion-router-outlet>
3+
</ion-app>

src/app/app.component.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)