Skip to content

Commit

Permalink
chore(nx): removes NX from project
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed Jul 9, 2024
1 parent f11d46f commit b12b379
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 180 deletions.
127 changes: 127 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ng-kit": {
"projectType": "library",
"root": "projects/ng-kit",
"sourceRoot": "projects/ng-kit/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/ng-kit/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ng-kit/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ng-kit/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
"test": {
"builder": "@angular-devkit/build-angular:jest",
"options": {
"tsConfig": "projects/ng-kit/tsconfig.spec.json",
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
}
}
},
"ng-kit-demo": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/ng-kit-demo",
"sourceRoot": "projects/ng-kit-demo/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ng-kit-demo",
"index": "projects/ng-kit-demo/src/index.html",
"browser": "projects/ng-kit-demo/src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "projects/ng-kit-demo/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/ng-kit-demo/src/favicon.ico",
"projects/ng-kit-demo/src/assets"
],
"styles": [
"projects/ng-kit-demo/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "1mb",
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "5kb",
"maximumError": "10kb"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "ng-kit-demo:build:production"
},
"development": {
"buildTarget": "ng-kit-demo:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "ng-kit-demo:build"
}
}
}
}
},
"cli": {
"analytics": "09d8c19e-c136-407c-a909-b3593d1ceda7"
}
}
44 changes: 0 additions & 44 deletions nx.json

This file was deleted.

19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "18.4.5",
"scripts": {
"ng": "ng",
"start": "nx serve --watch --hmr --port=4300",
"build": "nx build ng-kit --configuration=production",
"build:ng-kit-demo": "nx build ng-kit-demo --configuration=production",
"watch": "nx build --watch --configuration development",
"test": "nx test",
"test:store": "nx test --include='**/store/*.spec.ts'",
"bundle:report": "nx build --configuration production --source-map=true && source-map-explorer dist/pres/**/*.js",
"start": "ng serve --watch --hmr --port=4300",
"build": "ng build ng-kit --configuration=production",
"build:ng-kit-demo": "ng build ng-kit-demo --configuration=production",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:store": "ng test --include='**/store/*.spec.ts'",
"bundle:report": "ng build --configuration production --source-map=true && source-map-explorer dist/pres/**/*.js",
"e2e": "CI=true URL=http://localhost:4300 npx playwright test",
"lint": "nx lint ng-kit"
"lint": "ng lint ng-kit"
},
"release": {
"branches": [
Expand Down Expand Up @@ -58,8 +58,6 @@
"@angular-eslint/template-parser": "18.0.0",
"@angular/cli": "^18.0.2",
"@angular/compiler-cli": "^18.0.1",
"@nx/angular": "19.3.2",
"@nx/workspace": "19.3.2",
"@playwright/test": "^1.44.0",
"@schematics/angular": "^18.0.2",
"@semantic-release/git": "^10.0.1",
Expand All @@ -76,7 +74,6 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"ng-packagr": "^18.0.0",
"nx": "19.3.2",
"prettier": "^3.2.5",
"semantic-release": "^24.0.0",
"@semantic-release/exec": "^2.3.0",
Expand Down
76 changes: 0 additions & 76 deletions projects/ng-kit-demo/project.json

This file was deleted.

49 changes: 0 additions & 49 deletions projects/ng-kit/project.json

This file was deleted.

0 comments on commit b12b379

Please sign in to comment.