@analogjs/vite-plugin-angular 1.7.0-beta.8 → 1.7.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +65 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,29 @@ A Vite plugin for building Angular applications
4
4
 
5
5
  ## Install
6
6
 
7
- yarn add @analogjs/vite-plugin-angular
7
+ With npm:
8
+
9
+ ```sh
10
+ npm install @analogjs/vite-plugin-angular --save-dev
11
+ ```
12
+
13
+ With pnpm:
14
+
15
+ ```sh
16
+ pnpm install @analogjs/vite-plugin-angular --save-dev
17
+ ```
18
+
19
+ With yarn:
20
+
21
+ ```sh
22
+ yarn install @analogjs/vite-plugin-angular --dev
23
+ ```
24
+
25
+ With bun:
26
+
27
+ ```sh
28
+ bun install @analogjs/vite-plugin-angular --dev
29
+ ```
8
30
 
9
31
  ## Setup
10
32
 
@@ -23,3 +45,45 @@ export default defineConfig({
23
45
  plugins: [angular()],
24
46
  });
25
47
  ```
48
+
49
+ ## Setting up the TypeScript config
50
+
51
+ The integration needs a `tsconfig.app.json` at the root of the project for compilation.
52
+
53
+ Create a `tsconfig.app.json` in the root of the project.
54
+
55
+ ```json
56
+ {
57
+ "extends": "./tsconfig.json",
58
+ "compileOnSave": false,
59
+ "compilerOptions": {
60
+ "baseUrl": "./",
61
+ "outDir": "./dist/out-tsc",
62
+ "forceConsistentCasingInFileNames": true,
63
+ "strict": true,
64
+ "noImplicitOverride": true,
65
+ "noPropertyAccessFromIndexSignature": true,
66
+ "noImplicitReturns": true,
67
+ "noFallthroughCasesInSwitch": true,
68
+ "sourceMap": true,
69
+ "declaration": false,
70
+ "downlevelIteration": true,
71
+ "experimentalDecorators": true,
72
+ "moduleResolution": "node",
73
+ "importHelpers": true,
74
+ "noEmit": false,
75
+ "target": "es2020",
76
+ "module": "es2020",
77
+ "lib": ["es2020", "dom"],
78
+ "skipLibCheck": true
79
+ },
80
+ "angularCompilerOptions": {
81
+ "enableI18nLegacyMessageIdFormat": false,
82
+ "strictInjectionParameters": true,
83
+ "strictInputAccessModifiers": true,
84
+ "strictTemplates": true
85
+ },
86
+ "files": [],
87
+ "include": ["src/**/*.ts"]
88
+ }
89
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@analogjs/vite-plugin-angular",
3
- "version": "1.7.0-beta.8",
3
+ "version": "1.7.0-beta.9",
4
4
  "description": "Vite Plugin for Angular",
5
5
  "type": "module",
6
6
  "keywords": [