diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ebe1155..63bc678 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,7 +7,7 @@ on: branches: - master env: - CI: false + CI: true jobs: test: if: false @@ -40,7 +40,7 @@ jobs: overwrite: true build: - needs: test + # needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/angular.json b/angular.json index 6ddb537..f12e614 100644 --- a/angular.json +++ b/angular.json @@ -30,43 +30,13 @@ }, "configurations": { "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "extractLicenses": true, "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - } - ] - }, - "development": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.dev.ts" - } - ], - "optimization": false, - "outputHashing": "none", - "sourceMap": true, - "extractCss": false, - "namedChunks": true, - "extractLicenses": false, - "vendorChunk": true, - "buildOptimizer": false + "buildOptimizer": true } } }, diff --git a/package.json b/package.json index 9a7379c..af5f5df 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build", + "build": "ng build --configuration production", + "build:dev": "ng build --configuration development", "watch": "ng build --watch --configuration development", "test": "ng test", "test:all": "gulp test:all", @@ -52,6 +53,7 @@ "@angular/cli": "~16.1.0", "@angular/compiler-cli": "^16.1.0", "@types/jasmine": "~4.3.0", + "@types/node": "^18.19.124", "@visual-framework/vf-config": "1.0.1-alpha.0", "@visual-framework/vf-core": "2.2.47", "glob": "^7.2.0",