Skip to content

Commit

Permalink
feat(deploy): now publishing with ngx-deploy-npm
Browse files Browse the repository at this point in the history
publish to NPM with `ng deploy ngx-utils`
  • Loading branch information
xmlking committed Sep 7, 2019
1 parent a23e35d commit 34018cc
Show file tree
Hide file tree
Showing 72 changed files with 1,316 additions and 3,055 deletions.
151 changes: 122 additions & 29 deletions angular.json
Expand Up @@ -174,6 +174,12 @@
"setupFile": "libs/app-confirm/src/test-setup.ts",
"tsConfig": "libs/app-confirm/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -276,6 +282,12 @@
"setupFile": "libs/breadcrumbs/src/test-setup.ts",
"tsConfig": "libs/breadcrumbs/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -306,6 +318,12 @@
"setupFile": "libs/chat-box/src/test-setup.ts",
"tsConfig": "libs/chat-box/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -336,6 +354,12 @@
"setupFile": "libs/clap/src/test-setup.ts",
"tsConfig": "libs/clap/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -366,6 +390,12 @@
"setupFile": "libs/context-menu/src/test-setup.ts",
"tsConfig": "libs/context-menu/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -442,6 +472,12 @@
"setupFile": "libs/draggable/src/test-setup.ts",
"tsConfig": "libs/draggable/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -541,6 +577,12 @@
"setupFile": "libs/image-comparison/src/test-setup.ts",
"tsConfig": "libs/image-comparison/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -571,6 +613,12 @@
"setupFile": "libs/json-diff/src/test-setup.ts",
"tsConfig": "libs/json-diff/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -601,6 +649,12 @@
"setupFile": "libs/led/src/test-setup.ts",
"tsConfig": "libs/led/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -631,6 +685,12 @@
"setupFile": "libs/loading-overlay/src/test-setup.ts",
"tsConfig": "libs/loading-overlay/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -676,6 +736,12 @@
"setupFile": "libs/navigator/src/test-setup.ts",
"tsConfig": "libs/navigator/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand All @@ -690,6 +756,9 @@
"options": {
"project": "libs/ngx-utils/ng-package.json",
"tsConfig": "libs/ngx-utils/tsconfig.lib.json"
},
"configurations": {
"production": {}
}
},
"lint": {
Expand All @@ -706,6 +775,12 @@
"setupFile": "libs/ngx-utils/src/test-setup.ts",
"tsConfig": "libs/ngx-utils/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -759,42 +834,18 @@
"setupFile": "libs/notifications/src/test-setup.ts",
"tsConfig": "libs/notifications/tsconfig.spec.json"
}
}
},
"prefix": "ngx",
"projectType": "library",
"root": "libs/notifications",
"sourceRoot": "libs/notifications/src"
},
"oidc": {
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"project": "libs/oidc/ng-package.json",
"tsConfig": "libs/oidc/tsconfig.lib.json"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"exclude": ["**/node_modules/**", "!libs/oidc/**"],
"tsConfig": ["libs/oidc/tsconfig.lib.json", "libs/oidc/tsconfig.spec.json"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"jestConfig": "libs/oidc/jest.config.js",
"setupFile": "libs/oidc/src/test-setup.ts",
"tsConfig": "libs/oidc/tsconfig.spec.json"
"access": "public"
}
}
},
"prefix": "ngx",
"projectType": "library",
"root": "libs/oidc",
"sourceRoot": "libs/oidc/src"
"root": "libs/notifications",
"sourceRoot": "libs/notifications/src"
},
"quickpanel": {
"architect": {
Expand Down Expand Up @@ -842,6 +893,12 @@
"setupFile": "libs/scroll-to-top/src/test-setup.ts",
"tsConfig": "libs/scroll-to-top/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -872,6 +929,12 @@
"setupFile": "libs/scrollbar/src/test-setup.ts",
"tsConfig": "libs/scrollbar/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -948,6 +1011,12 @@
"setupFile": "libs/socketio-plugin/src/test-setup.ts",
"tsConfig": "libs/socketio-plugin/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -978,6 +1047,12 @@
"setupFile": "libs/svg-viewer/src/test-setup.ts",
"tsConfig": "libs/svg-viewer/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -1008,6 +1083,12 @@
"setupFile": "libs/theme-picker/src/test-setup.ts",
"tsConfig": "libs/theme-picker/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"prefix": "ngx",
Expand Down Expand Up @@ -1053,6 +1134,12 @@
"jestConfig": "libs/tree/jest.config.js",
"tsConfig": "libs/tree/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"projectType": "library",
Expand All @@ -1075,6 +1162,12 @@
"jestConfig": "libs/utils/jest.config.js",
"tsConfig": "libs/utils/tsconfig.spec.json"
}
},
"deploy": {
"builder": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"projectType": "library",
Expand Down
20 changes: 10 additions & 10 deletions apps/api/package.json
Expand Up @@ -14,24 +14,24 @@
},
"dependencies": {
"@godaddy/terminus": "^4.2.0",
"@nestjs/common": "^6.6.3",
"@nestjs/core": "^6.6.3",
"@nestjs/common": "^6.6.7",
"@nestjs/core": "^6.6.7",
"@nestjs/cqrs": "^6.0.1",
"@nestjs/passport": "^6.1.0",
"@nestjs/platform-express": "^6.6.3",
"@nestjs/platform-socket.io": "^6.6.3",
"@nestjs/platform-express": "^6.6.7",
"@nestjs/platform-socket.io": "^6.6.7",
"@nestjs/swagger": "^3.1.0",
"@nestjs/terminus": "^6.5.1",
"@nestjs/typeorm": "^6.1.3",
"@nestjs/websockets": "^6.6.3",
"@nestjs/websockets": "^6.6.7",
"@nestjsx/crud": "^4.2.0",
"@xmlking/jwks-rsa": "^1.4.3",
"cache-manager": "^2.10.0",
"class-transformer": "^0.2.3",
"class-validator": "^0.10.0",
"cli-ux": "4.9.3",
"cls-hooked": "^4.2.2",
"helmet": "^3.20.1",
"helmet": "^3.21.0",
"kubernetes-client": "^8.3.4",
"nest-router": "^1.0.0",
"nodemailer": "^6.3.0",
Expand All @@ -40,7 +40,7 @@
"pg": "^7.12.1",
"pug": "^2.0.4",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.5.2",
"rxjs": "^6.5.3",
"sharp": "^0.23.0",
"swagger-ui-express": "^4.0.7",
"typeorm": "^0.2.18",
Expand All @@ -57,9 +57,9 @@
"@types/web-push": "^3.3.0"
},
"optionalDependencies": {
"@nestjs/schematics": "^6.4.3",
"@nestjs/testing": "^6.6.3",
"nodemon": "^1.19.1",
"@nestjs/schematics": "^6.4.4",
"@nestjs/testing": "^6.6.7",
"nodemon": "^1.19.2",
"supertest": "^4.0.0"
}
}
6 changes: 3 additions & 3 deletions apps/api/src/app/app.controller.ts
@@ -1,10 +1,10 @@
import { All, Controller, Get, HttpService, Req } from '@nestjs/common';
import { ApiOperation } from '@nestjs/swagger';
import { ConfigService } from './config';
import { Allow } from './auth';
import * as https from 'https';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import * as https from 'https';
import { Allow } from './auth';
import { ConfigService } from './config';

const url = 'https://httpbin.org/anything';
const httpsAgent = new https.Agent({
Expand Down
2 changes: 2 additions & 0 deletions apps/api/tsconfig.app.json
Expand Up @@ -2,8 +2,10 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"emitDecoratorMetadata": true,
"module": "commonjs",
"target": "es2017",
"incremental": true,
"types": ["node"]
},
"exclude": ["src/**/*.spec.ts"],
Expand Down
4 changes: 2 additions & 2 deletions apps/webapp/src/environments/ienvironment.ts
@@ -1,4 +1,4 @@
import { OidcProviderConfig } from '@ngx-starter-kit/oidc';
// import { OidcProviderConfig } from '@ngx-starter-kit/oidc';

export type LogLevel = 'debug' | 'info' | 'warn' | 'error';

Expand All @@ -10,6 +10,6 @@ export interface IEnvironment {
// Enables use of ng.profiler.timeChangeDetection(); in browser console
enableDebugTools?: boolean;
logLevel?: LogLevel;
auth?: OidcProviderConfig;
// auth?: OidcProviderConfig;
[key: string]: any;
}

0 comments on commit 34018cc

Please sign in to comment.