Skip to content

Commit

Permalink
refactor: move the flow feature as library
Browse files Browse the repository at this point in the history
  • Loading branch information
sheikalthaf committed Nov 14, 2023
1 parent 11759af commit 7cc6a8a
Show file tree
Hide file tree
Showing 28 changed files with 468 additions and 34 deletions.
33 changes: 33 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,39 @@
}
}
}
},
"flow": {
"projectType": "library",
"root": "projects/flow",
"sourceRoot": "projects/flow/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/flow/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/flow/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/flow/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "projects/flow/tsconfig.spec.json",
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
}
}
}
},
"cli": {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"autoprefixer": "^10.4.15",
"jest": "^29.7.0",
"jest-preset-angular": "^13.1.2",
"ng-packagr": "^17.0.0",
"postcss": "^8.4.28",
"tailwindcss": "^3.3.3",
"typescript": "~5.2.2"
Expand All @@ -38,6 +39,9 @@
"preset": "jest-preset-angular",
"setupFilesAfterEnv": [
"<rootDir>/setup-jest.ts"
]
],
"moduleNameMapper": {
"^flow": "<rootDir>/projects/flow/src/public-api.ts"
}
}
}
Loading

0 comments on commit 7cc6a8a

Please sign in to comment.