diff --git a/angular.json b/angular.json index f15d060..e3d1134 100644 --- a/angular.json +++ b/angular.json @@ -60,7 +60,8 @@ "projects/playground/src/assets" ], "styles": [ - "projects/playground/src/styles.css" + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", + "projects/playground/src/styles.scss" ], "scripts": [], "aot": true @@ -110,7 +111,8 @@ "tsConfig": "projects/playground/tsconfig.spec.json", "karmaConfig": "projects/playground/karma.conf.js", "styles": [ - "projects/playground/src/styles.css" + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", + "projects/playground/src/styles.scss" ], "sourceMap": true, "scripts": [], @@ -133,10 +135,50 @@ } } } + }, + "material": { + "root": "projects/material", + "sourceRoot": "projects/material/src", + "projectType": "library", + "prefix": "lib", + "architect": { + "build": { + "builder": "@angular-devkit/build-ng-packagr:build", + "options": { + "tsConfig": "projects/material/tsconfig.lib.json", + "project": "projects/material/ng-package.json" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "projects/material/src/test.ts", + "tsConfig": "projects/material/tsconfig.spec.json", + "karmaConfig": "projects/material/karma.conf.js" + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "projects/material/tsconfig.lib.json", + "projects/material/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ] + } + } + } } }, "defaultProject": "playground", "cli": { "packageManager": "yarn" + }, + "schematics": { + "@schematics/angular:component": { + "styleext": "scss" + } } } \ No newline at end of file diff --git a/package.json b/package.json index 012346a..0b6bc57 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "url": "https://github.com/klemenoslaj/ng-action-outlet.git" }, "scripts": { + "build": "ng build core && ng build material", "build:core": "ng build core", + "build:material": "ng build material", "docs:coverage": "compodoc -p ./tsconfig.docs.json --disableLifeCycleHooks --disableInternal --coverageMinimumPerFile 100", "docs:build.prod": "yarn docs:coverage && compodoc -p ./tsconfig.docs.json --disableLifeCycleHooks --disableInternal --disablePrivate --disableProtected --name NgActionOutlet --output docs", "docs:build.serve": "compodoc -p ./tsconfig.docs.json --disableLifeCycleHooks --disableInternal -s -w", @@ -16,22 +18,25 @@ "private": true, "dependencies": { "@angular/animations": "^7.0.0", + "@angular/cdk": "~7.3.3", "@angular/common": "^7.0.0", "@angular/compiler": "^7.0.0", "@angular/core": "^7.0.0", "@angular/forms": "^7.0.0", "@angular/http": "^7.0.0", + "@angular/material": "~7.3.3", "@angular/platform-browser": "^7.0.0", "@angular/platform-browser-dynamic": "^7.0.0", "@angular/router": "^7.0.0", "core-js": "^2.5.4", + "hammerjs": "^2.0.8", "rxjs": "^6.4.0", "travis-deploy-once": "^5.0.9", "zone.js": "~0.8.26" }, "devDependencies": { - "@angular-devkit/build-angular": "^0.13.3", - "@angular-devkit/build-ng-packagr": "^0.13.3", + "@angular-devkit/build-angular": "~0.13.0", + "@angular-devkit/build-ng-packagr": "~0.13.0", "@angular/cli": "^7.0.2", "@angular/compiler-cli": "^7.0.0", "@angular/language-service": "^7.0.0", diff --git a/projects/core/src/lib/action-abstract/action-abstract.model.ts b/projects/core/src/lib/action-abstract/action-abstract.model.ts index d83b973..225bdcc 100644 --- a/projects/core/src/lib/action-abstract/action-abstract.model.ts +++ b/projects/core/src/lib/action-abstract/action-abstract.model.ts @@ -9,10 +9,6 @@ export interface ActionAbstractComponentImpl