diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index d031b23..896cd7a 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -67,4 +67,4 @@ jobs: - name: Deploy uses: JamesIves/github-pages-deploy-action@v4 with: - FOLDER: dist/ngx-mat-timepicker-repo/browser + FOLDER: dist/demo/browser diff --git a/angular.json b/angular.json index 4e18e5e..46a5919 100644 --- a/angular.json +++ b/angular.json @@ -46,35 +46,35 @@ } } }, - "ngx-mat-timepicker-repo": { + "demo": { "projectType": "application", "schematics": { "@schematics/angular:component": { "style": "scss" } }, - "root": "projects/ngx-mat-timepicker-repo", - "sourceRoot": "projects/ngx-mat-timepicker-repo/src", + "root": "projects/demo", + "sourceRoot": "projects/demo/src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/ngx-mat-timepicker-repo", - "index": "projects/ngx-mat-timepicker-repo/src/index.html", - "browser": "projects/ngx-mat-timepicker-repo/src/main.ts", - "server": "projects/ngx-mat-timepicker-repo/src/main.server.ts", + "outputPath": "dist/demo", + "index": "projects/demo/src/index.html", + "browser": "projects/demo/src/main.ts", + "server": "projects/demo/src/main.server.ts", "polyfills": [ "zone.js" ], - "tsConfig": "projects/ngx-mat-timepicker-repo/tsconfig.app.json", + "tsConfig": "projects/demo/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "projects/ngx-mat-timepicker-repo/src/favicon.ico", - "projects/ngx-mat-timepicker-repo/src/assets" + "projects/demo/src/favicon.ico", + "projects/demo/src/assets" ], "styles": [ - "projects/ngx-mat-timepicker-repo/src/styles.scss" + "projects/demo/src/styles.scss" ], "scripts": [], "allowedCommonJsDependencies": [ @@ -99,8 +99,8 @@ "outputHashing": "all", "fileReplacements": [ { - "replace": "projects/ngx-mat-timepicker-repo/src/environments/environment.ts", - "with": "projects/ngx-mat-timepicker-repo/src/environments/environment.prod.ts" + "replace": "projects/demo/src/environments/environment.ts", + "with": "projects/demo/src/environments/environment.prod.ts" } ] }, @@ -118,10 +118,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "development": { - "buildTarget": "ngx-mat-timepicker-repo:build:development" + "buildTarget": "demo:build:development" }, "production": { - "buildTarget": "ngx-mat-timepicker-repo:build:production" + "buildTarget": "demo:build:production" } }, "defaultConfiguration": "development" @@ -129,7 +129,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "buildTarget": "ngx-mat-timepicker-repo:build" + "buildTarget": "demo:build" } }, "test": { @@ -139,15 +139,15 @@ "zone.js", "zone.js/testing" ], - "tsConfig": "projects/ngx-mat-timepicker-repo/tsconfig.spec.json", - "karmaConfig": "projects/ngx-mat-timepicker-repo/karma.conf.js", + "tsConfig": "projects/demo/tsconfig.spec.json", + "karmaConfig": "projects/demo/karma.conf.js", "inlineStyleLanguage": "scss", "assets": [ - "projects/ngx-mat-timepicker-repo/src/favicon.ico", - "projects/ngx-mat-timepicker-repo/src/assets" + "projects/demo/src/favicon.ico", + "projects/demo/src/assets" ], "styles": [ - "projects/ngx-mat-timepicker-repo/src/styles.scss" + "projects/demo/src/styles.scss" ], "scripts": [] } @@ -156,8 +156,8 @@ "builder": "@angular-eslint/builder:lint", "options": { "lintFilePatterns": [ - "projects/ngx-mat-timepicker-repo/**/*.ts", - "projects/ngx-mat-timepicker-repo/**/*.html" + "projects/demo/**/*.ts", + "projects/demo/**/*.html" ] } } diff --git a/package.json b/package.json index bb4badd..3b88df9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "start": "ng serve", "test": "ng test", "build": "ng build ngx-mat-timepicker --configuration=production", - "build:demo": "ng build ngx-mat-timepicker-repo --configuration=production", + "build:demo": "ng build demo --configuration=production", "build:demo:gh-pages": "yarn build:demo --base-href https://alexfriesen.github.io/ngx-mat-timepicker/", "link": "npm link ./dist/ngx-mat-timepicker", "publish": "npm publish ./dist/ngx-mat-timepicker --access=public", diff --git a/projects/ngx-mat-timepicker-repo/.eslintrc.json b/projects/demo/.eslintrc.json similarity index 100% rename from projects/ngx-mat-timepicker-repo/.eslintrc.json rename to projects/demo/.eslintrc.json diff --git a/projects/ngx-mat-timepicker-repo/karma.conf.js b/projects/demo/karma.conf.js similarity index 100% rename from projects/ngx-mat-timepicker-repo/karma.conf.js rename to projects/demo/karma.conf.js diff --git a/projects/ngx-mat-timepicker-repo/src/app/app.component.html b/projects/demo/src/app/app.component.html similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/app.component.html rename to projects/demo/src/app/app.component.html diff --git a/projects/ngx-mat-timepicker-repo/src/app/app.component.scss b/projects/demo/src/app/app.component.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/app.component.scss rename to projects/demo/src/app/app.component.scss diff --git a/projects/ngx-mat-timepicker-repo/src/app/app.component.ts b/projects/demo/src/app/app.component.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/app.component.ts rename to projects/demo/src/app/app.component.ts diff --git a/projects/ngx-mat-timepicker-repo/src/app/app.config.server.ts b/projects/demo/src/app/app.config.server.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/app.config.server.ts rename to projects/demo/src/app/app.config.server.ts diff --git a/projects/ngx-mat-timepicker-repo/src/app/app.config.ts b/projects/demo/src/app/app.config.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/app.config.ts rename to projects/demo/src/app/app.config.ts diff --git a/projects/ngx-mat-timepicker-repo/src/app/app.routes.ts b/projects/demo/src/app/app.routes.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/app.routes.ts rename to projects/demo/src/app/app.routes.ts diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-highlight.scss b/projects/demo/src/app/components/code-viewer/code-highlight.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-highlight.scss rename to projects/demo/src/app/components/code-viewer/code-highlight.scss diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-viewer.component.html b/projects/demo/src/app/components/code-viewer/code-viewer.component.html similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-viewer.component.html rename to projects/demo/src/app/components/code-viewer/code-viewer.component.html diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-viewer.component.scss b/projects/demo/src/app/components/code-viewer/code-viewer.component.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-viewer.component.scss rename to projects/demo/src/app/components/code-viewer/code-viewer.component.scss diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-viewer.component.ts b/projects/demo/src/app/components/code-viewer/code-viewer.component.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/code-viewer/code-viewer.component.ts rename to projects/demo/src/app/components/code-viewer/code-viewer.component.ts diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/demo/demo.component.html b/projects/demo/src/app/components/demo/demo.component.html similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/demo/demo.component.html rename to projects/demo/src/app/components/demo/demo.component.html diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/demo/demo.component.scss b/projects/demo/src/app/components/demo/demo.component.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/demo/demo.component.scss rename to projects/demo/src/app/components/demo/demo.component.scss diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/demo/demo.component.ts b/projects/demo/src/app/components/demo/demo.component.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/demo/demo.component.ts rename to projects/demo/src/app/components/demo/demo.component.ts diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/test/test.component.html b/projects/demo/src/app/components/test/test.component.html similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/test/test.component.html rename to projects/demo/src/app/components/test/test.component.html diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/test/test.component.scss b/projects/demo/src/app/components/test/test.component.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/test/test.component.scss rename to projects/demo/src/app/components/test/test.component.scss diff --git a/projects/ngx-mat-timepicker-repo/src/app/components/test/test.component.ts b/projects/demo/src/app/components/test/test.component.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/app/components/test/test.component.ts rename to projects/demo/src/app/components/test/test.component.ts diff --git a/projects/ngx-mat-timepicker-repo/src/assets/.gitkeep b/projects/demo/src/assets/.gitkeep similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/assets/.gitkeep rename to projects/demo/src/assets/.gitkeep diff --git a/projects/ngx-mat-timepicker-repo/src/assets/angular-white-transparent.svg b/projects/demo/src/assets/angular-white-transparent.svg similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/assets/angular-white-transparent.svg rename to projects/demo/src/assets/angular-white-transparent.svg diff --git a/projects/ngx-mat-timepicker-repo/src/assets/fonts/MaterialIcons-Regular.woff b/projects/demo/src/assets/fonts/MaterialIcons-Regular.woff similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/assets/fonts/MaterialIcons-Regular.woff rename to projects/demo/src/assets/fonts/MaterialIcons-Regular.woff diff --git a/projects/ngx-mat-timepicker-repo/src/assets/fonts/MaterialIcons-Regular.woff2 b/projects/demo/src/assets/fonts/MaterialIcons-Regular.woff2 similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/assets/fonts/MaterialIcons-Regular.woff2 rename to projects/demo/src/assets/fonts/MaterialIcons-Regular.woff2 diff --git a/projects/ngx-mat-timepicker-repo/src/assets/github-circle-white-transparent.svg b/projects/demo/src/assets/github-circle-white-transparent.svg similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/assets/github-circle-white-transparent.svg rename to projects/demo/src/assets/github-circle-white-transparent.svg diff --git a/projects/ngx-mat-timepicker-repo/src/environments/environment.prod.ts b/projects/demo/src/environments/environment.prod.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/environments/environment.prod.ts rename to projects/demo/src/environments/environment.prod.ts diff --git a/projects/ngx-mat-timepicker-repo/src/environments/environment.ts b/projects/demo/src/environments/environment.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/environments/environment.ts rename to projects/demo/src/environments/environment.ts diff --git a/projects/ngx-mat-timepicker-repo/src/favicon.ico b/projects/demo/src/favicon.ico similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/favicon.ico rename to projects/demo/src/favicon.ico diff --git a/projects/ngx-mat-timepicker-repo/src/index.html b/projects/demo/src/index.html similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/index.html rename to projects/demo/src/index.html diff --git a/projects/ngx-mat-timepicker-repo/src/main.server.ts b/projects/demo/src/main.server.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/main.server.ts rename to projects/demo/src/main.server.ts diff --git a/projects/ngx-mat-timepicker-repo/src/main.ts b/projects/demo/src/main.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/main.ts rename to projects/demo/src/main.ts diff --git a/projects/ngx-mat-timepicker-repo/src/scss/core.scss b/projects/demo/src/scss/core.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/scss/core.scss rename to projects/demo/src/scss/core.scss diff --git a/projects/ngx-mat-timepicker-repo/src/scss/responsive.scss b/projects/demo/src/scss/responsive.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/scss/responsive.scss rename to projects/demo/src/scss/responsive.scss diff --git a/projects/ngx-mat-timepicker-repo/src/scss/themes.scss b/projects/demo/src/scss/themes.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/scss/themes.scss rename to projects/demo/src/scss/themes.scss diff --git a/projects/ngx-mat-timepicker-repo/src/styles.scss b/projects/demo/src/styles.scss similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/styles.scss rename to projects/demo/src/styles.scss diff --git a/projects/ngx-mat-timepicker-repo/src/test.ts b/projects/demo/src/test.ts similarity index 100% rename from projects/ngx-mat-timepicker-repo/src/test.ts rename to projects/demo/src/test.ts diff --git a/projects/ngx-mat-timepicker-repo/tsconfig.app.json b/projects/demo/tsconfig.app.json similarity index 100% rename from projects/ngx-mat-timepicker-repo/tsconfig.app.json rename to projects/demo/tsconfig.app.json diff --git a/projects/ngx-mat-timepicker-repo/tsconfig.spec.json b/projects/demo/tsconfig.spec.json similarity index 100% rename from projects/ngx-mat-timepicker-repo/tsconfig.spec.json rename to projects/demo/tsconfig.spec.json