Initial commit

This commit is contained in:
병준 박 2019-11-07 21:15:26 +09:00
parent 6439666786
commit 3a8e5642fc
246 changed files with 18988 additions and 10 deletions

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}"
}
]
}

13
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,13 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.autoClosingBrackets": "languageDefined",
"editor.trimAutoWhitespace": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"git.ignoreLimitWarning": true,
"prettier.singleQuote": true,
"debug.node.autoAttach": "on"
}

View File

@ -2,5 +2,626 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": {} "projects": {
"ui": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui",
"sourceRoot": "projects/ui/src",
"prefix": "ui",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui/tsconfig.lib.json",
"project": "projects/ui/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui/src/test.ts",
"tsConfig": "projects/ui/tsconfig.spec.json",
"karmaConfig": "projects/ui/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui/tsconfig.lib.json",
"projects/ui/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"ui-user": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui-user",
"sourceRoot": "projects/ui-user/src",
"prefix": "ui-user",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui-user/tsconfig.lib.json",
"project": "projects/ui-user/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui-user/src/test.ts",
"tsConfig": "projects/ui-user/tsconfig.spec.json",
"karmaConfig": "projects/ui-user/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui-user/tsconfig.lib.json",
"projects/ui-user/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"ui-game": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui-game",
"sourceRoot": "projects/ui-game/src",
"prefix": "ui-game",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui-game/tsconfig.lib.json",
"project": "projects/ui-game/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui-game/src/test.ts",
"tsConfig": "projects/ui-game/tsconfig.spec.json",
"karmaConfig": "projects/ui-game/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui-game/tsconfig.lib.json",
"projects/ui-game/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"ui-money": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui-money",
"sourceRoot": "projects/ui-money/src",
"prefix": "ui-money",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui-money/tsconfig.lib.json",
"project": "projects/ui-money/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui-money/src/test.ts",
"tsConfig": "projects/ui-money/tsconfig.spec.json",
"karmaConfig": "projects/ui-money/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui-money/tsconfig.lib.json",
"projects/ui-money/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"ui-site": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui-site",
"sourceRoot": "projects/ui-site/src",
"prefix": "ui-site",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui-site/tsconfig.lib.json",
"project": "projects/ui-site/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui-site/src/test.ts",
"tsConfig": "projects/ui-site/tsconfig.spec.json",
"karmaConfig": "projects/ui-site/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui-site/tsconfig.lib.json",
"projects/ui-site/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"ui-information": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui-information",
"sourceRoot": "projects/ui-information/src",
"prefix": "ui-information",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui-information/tsconfig.lib.json",
"project": "projects/ui-information/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui-information/src/test.ts",
"tsConfig": "projects/ui-information/tsconfig.spec.json",
"karmaConfig": "projects/ui-information/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui-information/tsconfig.lib.json",
"projects/ui-information/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"ui-special": {
"projectType": "library",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ui-special",
"sourceRoot": "projects/ui-special/src",
"prefix": "ui-special",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ui-special/tsconfig.lib.json",
"project": "projects/ui-special/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ui-special/src/test.ts",
"tsConfig": "projects/ui-special/tsconfig.spec.json",
"karmaConfig": "projects/ui-special/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ui-special/tsconfig.lib.json",
"projects/ui-special/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api": {
"projectType": "library",
"root": "projects/api",
"sourceRoot": "projects/api/src",
"prefix": "api",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api/tsconfig.lib.json",
"project": "projects/api/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api/src/test.ts",
"tsConfig": "projects/api/tsconfig.spec.json",
"karmaConfig": "projects/api/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api/tsconfig.lib.json",
"projects/api/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api-user": {
"projectType": "library",
"root": "projects/api-user",
"sourceRoot": "projects/api-user/src",
"prefix": "api-user",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api-user/tsconfig.lib.json",
"project": "projects/api-user/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api-user/src/test.ts",
"tsConfig": "projects/api-user/tsconfig.spec.json",
"karmaConfig": "projects/api-user/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api-user/tsconfig.lib.json",
"projects/api-user/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api-special": {
"projectType": "library",
"root": "projects/api-special",
"sourceRoot": "projects/api-special/src",
"prefix": "api-special",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api-special/tsconfig.lib.json",
"project": "projects/api-special/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api-special/src/test.ts",
"tsConfig": "projects/api-special/tsconfig.spec.json",
"karmaConfig": "projects/api-special/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api-special/tsconfig.lib.json",
"projects/api-special/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api-site": {
"projectType": "library",
"root": "projects/api-site",
"sourceRoot": "projects/api-site/src",
"prefix": "api-site",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api-site/tsconfig.lib.json",
"project": "projects/api-site/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api-site/src/test.ts",
"tsConfig": "projects/api-site/tsconfig.spec.json",
"karmaConfig": "projects/api-site/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api-site/tsconfig.lib.json",
"projects/api-site/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api-money": {
"projectType": "library",
"root": "projects/api-money",
"sourceRoot": "projects/api-money/src",
"prefix": "api-money",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api-money/tsconfig.lib.json",
"project": "projects/api-money/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api-money/src/test.ts",
"tsConfig": "projects/api-money/tsconfig.spec.json",
"karmaConfig": "projects/api-money/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api-money/tsconfig.lib.json",
"projects/api-money/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api-information": {
"projectType": "library",
"root": "projects/api-information",
"sourceRoot": "projects/api-information/src",
"prefix": "api-information",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api-information/tsconfig.lib.json",
"project": "projects/api-information/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api-information/src/test.ts",
"tsConfig": "projects/api-information/tsconfig.spec.json",
"karmaConfig": "projects/api-information/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api-information/tsconfig.lib.json",
"projects/api-information/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"api-game": {
"projectType": "library",
"root": "projects/api-game",
"sourceRoot": "projects/api-game/src",
"prefix": "api-game",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/api-game/tsconfig.lib.json",
"project": "projects/api-game/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/api-game/src/test.ts",
"tsConfig": "projects/api-game/tsconfig.spec.json",
"karmaConfig": "projects/api-game/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/api-game/tsconfig.lib.json",
"projects/api-game/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"backend": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/backend",
"sourceRoot": "projects/backend/src",
"prefix": "backend",
"architect": {
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./config/extra-webpack.config.js",
"mergeStrategies": {
"externals": "replace"
}
},
"outputPath": "dist/backend",
"index": "projects/backend/src/index.html",
"main": "projects/backend/src/main.ts",
"polyfills": "projects/backend/src/polyfills.ts",
"tsConfig": "projects/backend/tsconfig.app.json",
"aot": false,
"assets": [
"projects/backend/src/favicon.ico",
"projects/backend/src/assets"
],
"styles": ["projects/backend/src/styles.scss"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/backend/src/environments/environment.ts",
"with": "projects/backend/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"browserTarget": "backend:build"
},
"configurations": {
"production": {
"browserTarget": "backend:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "backend:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/backend/src/test.ts",
"polyfills": "projects/backend/src/polyfills.ts",
"tsConfig": "projects/backend/tsconfig.spec.json",
"karmaConfig": "projects/backend/karma.conf.js",
"assets": [
"projects/backend/src/favicon.ico",
"projects/backend/src/assets"
],
"styles": ["projects/backend/src/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/backend/tsconfig.app.json",
"projects/backend/tsconfig.spec.json",
"projects/backend/e2e/tsconfig.json"
],
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "projects/backend/e2e/protractor.conf.js",
"devServerTarget": "backend:serve"
},
"configurations": {
"production": {
"devServerTarget": "backend:serve:production"
}
}
}
}
}
},
"defaultProject": "backend"
} }

View File

@ -0,0 +1,52 @@
const path = require('path');
const webpack = require('webpack');
const pkg = require('../package.json');
module.exports = (config, options) => {
config.plugins.push(
new webpack.DefinePlugin({
APP_VERSION: JSON.stringify(pkg.version)
})
);
config.resolve.alias = {
...config.resolve.alias,
'@totopia-scss/ui': path.resolve(
__dirname,
'..',
'projects/ui/assets/scss'
),
'@totopia-scss/ui-game': path.resolve(
__dirname,
'..',
'projects/ui-game/assets/scss'
),
'@totopia-scss/ui-information': path.resolve(
__dirname,
'..',
'projects/ui-information/assets/scss'
),
'@totopia-scss/ui-money': path.resolve(
__dirname,
'..',
'projects/ui-money/assets/scss'
),
'@totopia-scss/ui-site': path.resolve(
__dirname,
'..',
'projects/ui-site/assets/scss'
),
'@totopia-scss/ui-special': path.resolve(
__dirname,
'..',
'projects/ui-special/assets/scss'
),
'@totopia-scss/ui-user': path.resolve(
__dirname,
'..',
'projects/ui-user/assets/scss'
)
};
return config;
};

12646
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,24 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "npm-run-all -p start:app",
"start:watch": "npm-run-all -p start:app start:library start:library-scss",
"start:app": "ng serve",
"build": "ng build", "build": "ng build",
"build:library:api": "ng build api",
"build:library:api-game": "ng build api-game",
"build:library:api-information": "ng build api-information",
"build:library:api-money": "ng build api-money",
"build:library:api-site": "ng build api-site",
"build:library:api-special": "ng build api-special",
"build:library:api-user": "ng build api-user",
"build:library:ui": "ng build ui && scss-bundle -p ./projects/ui/scss-bundle.config.json",
"build:library:ui-game": "ng build ui-game && scss-bundle -p ./projects/ui-game/scss-bundle.config.json",
"build:library:ui-information": "ng build ui-information && scss-bundle -p ./projects/ui-information/scss-bundle.config.json",
"build:library:ui-money": "ng build ui-money && scss-bundle -p ./projects/ui-money/scss-bundle.config.json",
"build:library:ui-site": "ng build ui-site && scss-bundle -p ./projects/ui-site/scss-bundle.config.json",
"build:library:ui-special": "ng build ui-special && scss-bundle -p ./projects/ui-special/scss-bundle.config.json",
"build:library:ui-user": "ng build ui-user && scss-bundle -p ./projects/ui-user/scss-bundle.config.json",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
@ -12,25 +28,37 @@
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~8.2.12", "@angular/animations": "~8.2.12",
"@angular/cdk": "^8.2.3",
"@angular/common": "~8.2.12", "@angular/common": "~8.2.12",
"@angular/compiler": "~8.2.12", "@angular/compiler": "~8.2.12",
"@angular/core": "~8.2.12", "@angular/core": "~8.2.12",
"@angular/forms": "~8.2.12", "@angular/forms": "~8.2.12",
"@angular/material": "^8.2.3",
"@angular/platform-browser": "~8.2.12", "@angular/platform-browser": "~8.2.12",
"@angular/platform-browser-dynamic": "~8.2.12", "@angular/platform-browser-dynamic": "~8.2.12",
"@angular/router": "~8.2.12", "@angular/router": "~8.2.12",
"@ngrx/effects": "^8.4.0",
"@ngrx/entity": "^8.4.0",
"@ngrx/router-store": "^8.4.0",
"@ngrx/store": "^8.4.0",
"@ngrx/store-devtools": "^8.4.0",
"hammerjs": "^2.0.8",
"rxjs": "~6.4.0", "rxjs": "~6.4.0",
"tslib": "^1.10.0", "tslib": "^1.10.0",
"zone.js": "~0.9.1" "zone.js": "~0.9.1"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.803.15",
"@angular-devkit/build-ng-packagr": "~0.803.15",
"@angular/cli": "~8.3.15", "@angular/cli": "~8.3.15",
"@angular/compiler-cli": "~8.2.12", "@angular/compiler-cli": "~8.2.12",
"@angular/language-service": "~8.2.12", "@angular/language-service": "~8.2.12",
"@angular-builders/custom-webpack": "^8.2.0",
"@types/node": "~8.9.4", "@types/node": "~8.9.4",
"@types/jasmine": "~3.3.8", "@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.0.0", "codelyzer": "^5.0.0",
"fs-extra": "^8.1.0",
"jasmine-core": "~3.4.0", "jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0", "karma": "~4.1.0",
@ -38,8 +66,12 @@
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1", "karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0", "karma-jasmine-html-reporter": "^1.4.0",
"ng-packagr": "^5.4.0",
"npm-run-all": "^4.1.5",
"protractor": "~5.4.0", "protractor": "~5.4.0",
"scss-bundle": "^3.0.1",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tsickle": "^0.37.0",
"tslint": "~5.15.0", "tslint": "~5.15.0",
"typescript": "~3.5.3" "typescript": "~3.5.3"
} }

View File

@ -0,0 +1,24 @@
# ApiGame
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api-game` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api-game`.
> Note: Don't forget to add `--project api-game` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api-game` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api-game`, go to the dist folder `cd dist/api-game` and run `npm publish`.
## Running unit tests
Run `ng test api-game` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api-game'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api-game",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api-game",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiGameComponent } from './api-game.component';
describe('ApiGameComponent', () => {
let component: ApiGameComponent;
let fixture: ComponentFixture<ApiGameComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiGameComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiGameComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-game-api-game',
template: `
<p>
api-game works!
</p>
`,
styles: []
})
export class ApiGameComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiGameComponent } from './api-game.component';
@NgModule({
declarations: [ApiGameComponent],
imports: [
],
exports: [ApiGameComponent]
})
export class ApiGameModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiGameService } from './api-game.service';
describe('ApiGameService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiGameService = TestBed.get(ApiGameService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiGameService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api-game
*/
export * from './lib/api-game.service';
export * from './lib/api-game.component';
export * from './lib/api-game.module';

View File

@ -0,0 +1,21 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"apiGame",
"camelCase"
],
"component-selector": [
true,
"element",
"api-game",
"kebab-case"
]
}
}

View File

@ -0,0 +1,24 @@
# ApiInformation
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api-information` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api-information`.
> Note: Don't forget to add `--project api-information` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api-information` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api-information`, go to the dist folder `cd dist/api-information` and run `npm publish`.
## Running unit tests
Run `ng test api-information` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api-information'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api-information",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api-information",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiInformationComponent } from './api-information.component';
describe('ApiInformationComponent', () => {
let component: ApiInformationComponent;
let fixture: ComponentFixture<ApiInformationComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiInformationComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiInformationComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-information-api-information',
template: `
<p>
api-information works!
</p>
`,
styles: []
})
export class ApiInformationComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiInformationComponent } from './api-information.component';
@NgModule({
declarations: [ApiInformationComponent],
imports: [
],
exports: [ApiInformationComponent]
})
export class ApiInformationModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiInformationService } from './api-information.service';
describe('ApiInformationService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiInformationService = TestBed.get(ApiInformationService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiInformationService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api-information
*/
export * from './lib/api-information.service';
export * from './lib/api-information.component';
export * from './lib/api-information.module';

View File

@ -0,0 +1,21 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"apiInformation",
"camelCase"
],
"component-selector": [
true,
"element",
"api-information",
"kebab-case"
]
}
}

View File

@ -0,0 +1,24 @@
# ApiMoney
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api-money` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api-money`.
> Note: Don't forget to add `--project api-money` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api-money` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api-money`, go to the dist folder `cd dist/api-money` and run `npm publish`.
## Running unit tests
Run `ng test api-money` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api-money'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api-money",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api-money",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiMoneyComponent } from './api-money.component';
describe('ApiMoneyComponent', () => {
let component: ApiMoneyComponent;
let fixture: ComponentFixture<ApiMoneyComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiMoneyComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiMoneyComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-money-api-money',
template: `
<p>
api-money works!
</p>
`,
styles: []
})
export class ApiMoneyComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiMoneyComponent } from './api-money.component';
@NgModule({
declarations: [ApiMoneyComponent],
imports: [
],
exports: [ApiMoneyComponent]
})
export class ApiMoneyModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiMoneyService } from './api-money.service';
describe('ApiMoneyService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiMoneyService = TestBed.get(ApiMoneyService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiMoneyService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api-money
*/
export * from './lib/api-money.service';
export * from './lib/api-money.component';
export * from './lib/api-money.module';

View File

@ -0,0 +1,21 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"apiMoney",
"camelCase"
],
"component-selector": [
true,
"element",
"api-money",
"kebab-case"
]
}
}

View File

@ -0,0 +1,24 @@
# ApiSite
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api-site` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api-site`.
> Note: Don't forget to add `--project api-site` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api-site` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api-site`, go to the dist folder `cd dist/api-site` and run `npm publish`.
## Running unit tests
Run `ng test api-site` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api-site'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api-site",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api-site",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiSiteComponent } from './api-site.component';
describe('ApiSiteComponent', () => {
let component: ApiSiteComponent;
let fixture: ComponentFixture<ApiSiteComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiSiteComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiSiteComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-site-api-site',
template: `
<p>
api-site works!
</p>
`,
styles: []
})
export class ApiSiteComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiSiteComponent } from './api-site.component';
@NgModule({
declarations: [ApiSiteComponent],
imports: [
],
exports: [ApiSiteComponent]
})
export class ApiSiteModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiSiteService } from './api-site.service';
describe('ApiSiteService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiSiteService = TestBed.get(ApiSiteService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiSiteService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api-site
*/
export * from './lib/api-site.service';
export * from './lib/api-site.component';
export * from './lib/api-site.module';

View File

@ -0,0 +1,21 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"apiSite",
"camelCase"
],
"component-selector": [
true,
"element",
"api-site",
"kebab-case"
]
}
}

View File

@ -0,0 +1,24 @@
# ApiSpecial
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api-special` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api-special`.
> Note: Don't forget to add `--project api-special` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api-special` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api-special`, go to the dist folder `cd dist/api-special` and run `npm publish`.
## Running unit tests
Run `ng test api-special` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api-special'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api-special",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api-special",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiSpecialComponent } from './api-special.component';
describe('ApiSpecialComponent', () => {
let component: ApiSpecialComponent;
let fixture: ComponentFixture<ApiSpecialComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiSpecialComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiSpecialComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-special-api-special',
template: `
<p>
api-special works!
</p>
`,
styles: []
})
export class ApiSpecialComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiSpecialComponent } from './api-special.component';
@NgModule({
declarations: [ApiSpecialComponent],
imports: [
],
exports: [ApiSpecialComponent]
})
export class ApiSpecialModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiSpecialService } from './api-special.service';
describe('ApiSpecialService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiSpecialService = TestBed.get(ApiSpecialService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiSpecialService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api-special
*/
export * from './lib/api-special.service';
export * from './lib/api-special.component';
export * from './lib/api-special.module';

View File

@ -0,0 +1,21 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"apiSpecial",
"camelCase"
],
"component-selector": [
true,
"element",
"api-special",
"kebab-case"
]
}
}

View File

@ -0,0 +1,24 @@
# ApiUser
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api-user` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api-user`.
> Note: Don't forget to add `--project api-user` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api-user` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api-user`, go to the dist folder `cd dist/api-user` and run `npm publish`.
## Running unit tests
Run `ng test api-user` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api-user'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api-user",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api-user",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiUserComponent } from './api-user.component';
describe('ApiUserComponent', () => {
let component: ApiUserComponent;
let fixture: ComponentFixture<ApiUserComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiUserComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiUserComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-user-api-user',
template: `
<p>
api-user works!
</p>
`,
styles: []
})
export class ApiUserComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiUserComponent } from './api-user.component';
@NgModule({
declarations: [ApiUserComponent],
imports: [
],
exports: [ApiUserComponent]
})
export class ApiUserModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiUserService } from './api-user.service';
describe('ApiUserService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiUserService = TestBed.get(ApiUserService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiUserService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api-user
*/
export * from './lib/api-user.service';
export * from './lib/api-user.component';
export * from './lib/api-user.module';

View File

@ -0,0 +1,21 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"apiUser",
"camelCase"
],
"component-selector": [
true,
"element",
"api-user",
"kebab-case"
]
}
}

24
projects/api/README.md Normal file
View File

@ -0,0 +1,24 @@
# Api
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
## Code scaffolding
Run `ng generate component component-name --project api` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project api`.
> Note: Don't forget to add `--project api` or else it will be added to the default project in your `angular.json` file.
## Build
Run `ng build api` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build api`, go to the dist folder `cd dist/api` and run `npm publish`.
## Running unit tests
Run `ng test api` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/api'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

View File

@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/api",
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@ -0,0 +1,8 @@
{
"name": "@totopia/api",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.12",
"@angular/core": "^8.2.12"
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApiComponent } from './api.component';
describe('ApiComponent', () => {
let component: ApiComponent;
let fixture: ComponentFixture<ApiComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApiComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApiComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,16 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'api-api',
template: `
<p>
api works!!
</p>
`,
styles: []
})
export class ApiComponent implements OnInit {
constructor() {}
ngOnInit() {}
}

View File

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { ApiComponent } from './api.component';
@NgModule({
declarations: [ApiComponent],
imports: [
],
exports: [ApiComponent]
})
export class ApiModule { }

View File

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { ApiService } from './api.service';
describe('ApiService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: ApiService = TestBed.get(ApiService);
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ApiService {
constructor() { }
}

View File

@ -0,0 +1,7 @@
/*
* Public API Surface of api
*/
export * from './lib/api.service';
export * from './lib/api.component';
export * from './lib/api.module';

Some files were not shown because too many files have changed in this diff Show More