@voluta/ts-config 0.1.0 → 0.1.1
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.
- package/package.json +6 -2
- package/readme.md +46 -0
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voluta/ts-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"files": [
|
|
5
|
+
"files": [
|
|
6
|
+
"base.json",
|
|
7
|
+
"node.json",
|
|
8
|
+
"react.json"
|
|
9
|
+
],
|
|
6
10
|
"exports": {
|
|
7
11
|
"./base": "./base.json",
|
|
8
12
|
"./node": "./node.json",
|
package/readme.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @voluta/ts-config
|
|
2
|
+
|
|
3
|
+
Configurações base de TypeScript compartilhadas nos projetos da Voluta.
|
|
4
|
+
|
|
5
|
+
## Instalação
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -D @voluta/ts-config
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Uso
|
|
12
|
+
|
|
13
|
+
**Node:**
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"extends": "@voluta/ts-config/node",
|
|
17
|
+
"compilerOptions": {
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"rootDir": "src"
|
|
20
|
+
},
|
|
21
|
+
"include": ["src"]
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**React:**
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"extends": "@voluta/ts-config/react",
|
|
29
|
+
"include": ["src"]
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Base** (sem lib de ambiente, uso raro direto — normalmente é extendido pelos outros dois):
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"extends": "@voluta/ts-config/base"
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Pacotes
|
|
41
|
+
|
|
42
|
+
| Export | Uso |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `@voluta/ts-config/base` | Regras comuns (strict, target, etc) |
|
|
45
|
+
| `@voluta/ts-config/node` | Base + libs de Node |
|
|
46
|
+
| `@voluta/ts-config/react` | Base + DOM + JSX |
|