Wrapping up flo changes
This commit is contained in:
141
angular.json
141
angular.json
@@ -5,20 +5,20 @@
|
||||
"projects": {
|
||||
"spring-flo": {
|
||||
"projectType": "library",
|
||||
"root": "projects/lib",
|
||||
"sourceRoot": "projects/lib",
|
||||
"root": "projects/flo",
|
||||
"sourceRoot": "projects/flo",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"project": "projects/lib/ng-package.json"
|
||||
"project": "projects/flo/ng-package.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "tsconfig.json"
|
||||
"tsConfig": "projects/flo/tsconfig.prod.json"
|
||||
},
|
||||
"development": {
|
||||
"tsConfig": "tsconfig.json"
|
||||
"tsConfig": "projects/flo/tsconfig.dev.json"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
@@ -47,7 +47,9 @@
|
||||
"projects/demo/favicon.ico",
|
||||
"projects/demo/icons"
|
||||
],
|
||||
"styles": ["projects/demo/styles.css"],
|
||||
"styles": [
|
||||
"projects/demo/styles.css"
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
@@ -112,132 +114,9 @@
|
||||
"projects/demo/favicon.ico",
|
||||
"projects/demo/icons"
|
||||
],
|
||||
"styles": ["projects/demo/styles.css"],
|
||||
"scripts": []
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@mycomp/ui-sdk": {
|
||||
"projectType": "library",
|
||||
"root": "projects/mycomp/ui-sdk",
|
||||
"sourceRoot": "projects/mycomp/ui-sdk",
|
||||
"prefix": "lib",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"project": "projects/mycomp/ui-sdk/ng-package.json",
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "projects/mycomp/ui-sdk/tsconfig.lib.prod.json"
|
||||
},
|
||||
"development": {
|
||||
"tsConfig": "projects/mycomp/ui-sdk/tsconfig.lib.json"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "projects/mycomp/ui-sdk/test.ts",
|
||||
"tsConfig": "projects/mycomp/ui-sdk/tsconfig.spec.json",
|
||||
"karmaConfig": "projects/mycomp/ui-sdk/karma.conf.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"showcase": {
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
"@schematics/angular:application": {
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
"root": "projects/showcase",
|
||||
"sourceRoot": "projects/showcase/src",
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist/showcase",
|
||||
"index": "projects/showcase/src/index.html",
|
||||
"main": "projects/showcase/src/main.ts",
|
||||
"polyfills": "projects/showcase/src/polyfills.ts",
|
||||
"tsConfig": "projects/showcase/tsconfig.app.json",
|
||||
"assets": [
|
||||
"projects/showcase/src/favicon.ico",
|
||||
"projects/showcase/src/assets"
|
||||
"styles": [
|
||||
"projects/demo/styles.css"
|
||||
],
|
||||
"styles": ["projects/showcase/src/styles.css"],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "500kb",
|
||||
"maximumError": "1mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "2kb",
|
||||
"maximumError": "4kb"
|
||||
}
|
||||
],
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "projects/showcase/src/environments/environment.ts",
|
||||
"with": "projects/showcase/src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"development": {
|
||||
"buildOptimizer": false,
|
||||
"optimization": false,
|
||||
"vendorChunk": true,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true,
|
||||
"namedChunks": true
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "showcase:build:production"
|
||||
},
|
||||
"development": {
|
||||
"browserTarget": "showcase:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "showcase:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "projects/showcase/src/test.ts",
|
||||
"polyfills": "projects/showcase/src/polyfills.ts",
|
||||
"tsConfig": "projects/showcase/tsconfig.spec.json",
|
||||
"karmaConfig": "projects/showcase/karma.conf.js",
|
||||
"assets": [
|
||||
"projects/showcase/src/favicon.ico",
|
||||
"projects/showcase/src/assets"
|
||||
],
|
||||
"styles": ["projects/showcase/src/styles.css"],
|
||||
"scripts": []
|
||||
}
|
||||
}
|
||||
|
||||
51
package.json
51
package.json
@@ -5,16 +5,17 @@
|
||||
"ng": "ng",
|
||||
"start": "npm-run-all clean --parallel flo:watch demo:start-waiton",
|
||||
"build": "run-s flo:build demo:build",
|
||||
"prepare": "npm run build",
|
||||
"test": "run-p flo:test demo:test",
|
||||
"test-coverage": "run-p flo:test-coverage demo:test-coverage",
|
||||
|
||||
"flo:build": "ng build spring-flo && npm run flo:styles",
|
||||
"flo:styles": "scss-bundle --entryFile projects/lib/styles.scss --outFile dist/spring-flo/flo.css",
|
||||
"flo:styles": "scss-bundle --entryFile projects/flo/styles.scss --outFile dist/flo/flo.css",
|
||||
"flo:watch": "ng build spring-flo --watch --configuration development",
|
||||
"flo:test": "ng test spring-flo",
|
||||
"flo:test-coverage": "ng test spring-flo --no-watch --code-coverage",
|
||||
|
||||
"demo:start-waiton": "wait-on dist/spring-flo/package.json && npm run demo:start",
|
||||
"demo:start-waiton": "wait-on dist/flo/package.json && npm run demo:start",
|
||||
"demo:start": "ng serve demo",
|
||||
"demo:build": "ng build demo",
|
||||
"demo:watch": "ng build demo --watch --configuration development",
|
||||
@@ -31,20 +32,20 @@
|
||||
},
|
||||
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^15.0.1",
|
||||
"@angular/cli": "^15.0.1",
|
||||
"@angular/compiler-cli": "^15.0.1",
|
||||
"@angular-devkit/build-angular": "~15.1.5",
|
||||
"@angular/cli": "~15.1.5",
|
||||
"@angular/compiler-cli": "~15.1.5",
|
||||
|
||||
"@angular/animations": "^15.0.1",
|
||||
"@angular/common": "^15.0.1",
|
||||
"@angular/compiler": "^15.0.1",
|
||||
"@angular/core": "^15.0.1",
|
||||
"@angular/forms": "^15.0.1",
|
||||
"@angular/platform-browser": "^15.0.1",
|
||||
"@angular/platform-browser-dynamic": "^15.0.1",
|
||||
"@angular/router": "^15.0.1",
|
||||
"rxjs": "~7.5.0",
|
||||
"tslib": "^2.3.0",
|
||||
"@angular/animations": "~15.1.5",
|
||||
"@angular/common": "~15.1.5",
|
||||
"@angular/compiler": "~15.1.5",
|
||||
"@angular/core": "~15.1.5",
|
||||
"@angular/forms": "~15.1.5",
|
||||
"@angular/platform-browser": "~15.1.5",
|
||||
"@angular/platform-browser-dynamic": "~15.1.5",
|
||||
"@angular/router": "~15.1.5",
|
||||
"rxjs": "~7.8.0",
|
||||
"tslib": "^2.5.0",
|
||||
"zone.js": "~0.11.4",
|
||||
|
||||
"@types/resize-observer-browser": "^0.1.3",
|
||||
@@ -69,5 +70,25 @@
|
||||
"scss-bundle": "^3.1.2",
|
||||
"typescript": "~4.8.0",
|
||||
"wait-on": "^6.0.1"
|
||||
},
|
||||
|
||||
"module": "dist/flo/fesm2015/spring-flo.mjs",
|
||||
"es2020": "dist/flo/fesm2020/spring-flo.mjs",
|
||||
"esm2020": "dist/flo/esm2020/spring-flo.mjs",
|
||||
"fesm2020": "dist/flo/fesm2020/spring-flo.mjs",
|
||||
"fesm2015": "dist/flo/fesm2015/spring-flo.mjs",
|
||||
"typings": "dist/flo/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": {
|
||||
"default": "./dist/flo/package.json"
|
||||
},
|
||||
".": {
|
||||
"types": "./dist/flo/index.d.ts",
|
||||
"esm2020": "./dist/flo/esm2020/spring-flo.mjs",
|
||||
"es2020": "./dist/flo/fesm2020/spring-flo.mjs",
|
||||
"es2015": "./dist/flo/fesm2015/spring-flo.mjs",
|
||||
"node": "./dist/flo/fesm2015/spring-flo.mjs",
|
||||
"default": "./dist/flo/fesm2020/spring-flo.mjs"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import {Injectable} from '@angular/core';
|
||||
import {dia} from 'jointjs';
|
||||
import {PropertiesDialogComponent} from './properties.dialog.component';
|
||||
import {BsModalService} from 'ngx-bootstrap/modal';
|
||||
import {Flo, Properties} from '../../lib';
|
||||
import {Flo, Properties} from '../../flo';
|
||||
import {Validators} from '@angular/forms';
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"dest": "../../dist/spring-flo",
|
||||
"dest": "../../dist/flo",
|
||||
"deleteDestPath": true,
|
||||
"lib": {
|
||||
"entryFile": "./index.ts"
|
||||
15
projects/flo/tsconfig.dev.json
Normal file
15
projects/flo/tsconfig.dev.json
Normal file
@@ -0,0 +1,15 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/flo",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"inlineSources": true,
|
||||
"types": []
|
||||
},
|
||||
"exclude": [
|
||||
"test.ts",
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
13
projects/flo/tsconfig.prod.json
Normal file
13
projects/flo/tsconfig.prod.json
Normal file
@@ -0,0 +1,13 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "./tsconfig.dev.json",
|
||||
"compilerOptions": {
|
||||
"declarationMap": false,
|
||||
"sourceMap": false,
|
||||
"inlineSourceMap": false,
|
||||
"inlineSources": false
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"compilationMode": "partial"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,8 @@
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"spring-flo": ["projects/lib"],
|
||||
"spring-flo/*": ["projects/lib/*"]
|
||||
|
||||
"spring-flo": ["projects/flo"],
|
||||
"spring-flo/*": ["projects/flo/*"]
|
||||
},
|
||||
"baseUrl": "./",
|
||||
"outDir": "./dist/out-tsc",
|
||||
|
||||
Reference in New Issue
Block a user