-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular-store): Use
ng-packagr
as build tool (#62)
* Use ng-packagr * Simplify * Fix tsconfig * Fix knip
- Loading branch information
1 parent
caa60c7
commit 8fa8ec3
Showing
10 changed files
with
689 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "./node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "src/index.ts" | ||
}, | ||
"allowedNonPeerDependencies": ["@tanstack/store"], | ||
"dest": "dist", | ||
"deleteDestPath": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json", | ||
"compilerOptions": { | ||
"moduleResolution": "bundler", | ||
"allowJs": true, | ||
"moduleDetection": "force", | ||
"module": "ESNext" | ||
}, | ||
"angularCompilerOptions": { | ||
"enableI18nLegacyMessageIdFormat": false, | ||
"strictInjectionParameters": true, | ||
"strictInputAccessModifiers": true | ||
}, | ||
"include": ["src/**/*.ts", ".eslintrc.cjs"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
import { defineConfig, mergeConfig } from 'vitest/config' | ||
import { tanstackBuildConfig } from '@tanstack/config/build' | ||
import { defineConfig } from 'vitest/config' | ||
|
||
const config = defineConfig({ | ||
export default defineConfig({ | ||
test: { | ||
name: 'angular-store', | ||
dir: './src', | ||
dir: './tests', | ||
watch: false, | ||
environment: 'jsdom', | ||
setupFiles: ['src/tests/test-setup.ts'], | ||
setupFiles: ['tests/test-setup.ts'], | ||
globals: true, | ||
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] }, | ||
typecheck: { enabled: true }, | ||
globals: true, | ||
}, | ||
}) | ||
|
||
export default mergeConfig( | ||
config, | ||
tanstackBuildConfig({ | ||
entry: './src/index.ts', | ||
srcDir: './src', | ||
exclude: ['./src/tests'], | ||
}), | ||
) |
Oops, something went wrong.