@felixicaza/mrm-presets 0.1.0
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/README.md +59 -0
- package/dist/config.json +5 -0
- package/dist/npmrc/index.js +16 -0
- package/dist/package.json +32 -0
- package/dist/pnpm-workspace/index.js +17 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[](https://npmx.dev/package/@felixicaza/mrm-presets)
|
|
2
|
+
|
|
3
|
+
# 🛠️ @felixicaza/mrm-presets
|
|
4
|
+
|
|
5
|
+
[](https://npmx.dev/package/@felixicaza/mrm-presets)
|
|
6
|
+

|
|
7
|
+
[](https://github.com/felixicaza/configs/blob/main/LICENSE)
|
|
8
|
+
|
|
9
|
+
Una colección de [presets de mrm](https://mrm.js.org/docs/making-presets) para configuraciones automáticas.
|
|
10
|
+
|
|
11
|
+
## ✨ Características
|
|
12
|
+
|
|
13
|
+
- 🔒 Medidas de seguridad ante afectaciones a la cadena de suministro mediante `.npmrc` y `pnpm-workspace.yaml`.
|
|
14
|
+
- ⚙️ Configuración automática de Oxlint.
|
|
15
|
+
|
|
16
|
+
## ⚡ Uso
|
|
17
|
+
|
|
18
|
+
Para usar los presets de configuración, simplemente ejecuta los comandos de [mrm](https://mrm.js.org) correspondientes a cada preset.
|
|
19
|
+
|
|
20
|
+
### 🔒 Security
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
$ npx mrm security --preset @felixicaza/mrm-presets
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### ⚓ Oxlint
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
$ npx mrm oxlint --preset @felixicaza/mrm-presets
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 📚 Proyectos Relacionados
|
|
33
|
+
|
|
34
|
+
- [`@felixicaza/eslint-config`](./packages/eslint-config)
|
|
35
|
+
- [`@felixicaza/oxfmt-config`](./packages/oxfmt-config)
|
|
36
|
+
- [`@felixicaza/oxlint-config`](./packages/oxlint-config)
|
|
37
|
+
- [`@felixicaza/tsdown-config`](./packages/tsdown-config)
|
|
38
|
+
|
|
39
|
+
## 🤝 Contribuir
|
|
40
|
+
|
|
41
|
+
Las contribuciones a este repo no son necesarias, pero son bienvenidas. Igualmente, siéntete libre de tomar cualquier configuración, adaptarla a tus necesidades y usarla en tus proyectos.
|
|
42
|
+
|
|
43
|
+
### ¿Cómo puedo obtener este paquete?
|
|
44
|
+
|
|
45
|
+
Para obtener este paquete de manera sencilla y sin el historial de Git por detrás, puedes usar [`giget`](https://github.com/unjs/giget) con el siguiente comando:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
$ npx giget@latest gh:felixicaza/configs/packages/mrm-presets
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Instalar las dependencias de desarrollo:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
$ npm install tsdown @felixicaza/tsdown-config vitest -D
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## 📄 Licencia
|
|
58
|
+
|
|
59
|
+
Este proyecto está licenciado bajo la Licencia MIT. Consulta el archivo [LICENSE](https://github.com/felixicaza/configs/blob/main/LICENSE) para más detalles.
|
package/dist/config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
let mrm_core = require("mrm-core");
|
|
2
|
+
|
|
3
|
+
//#region src/npmrc.ts
|
|
4
|
+
function task() {
|
|
5
|
+
(0, mrm_core.lines)(".npmrc").add([
|
|
6
|
+
"save-exact = true",
|
|
7
|
+
"ignore-scripts = true",
|
|
8
|
+
"allow-git = none",
|
|
9
|
+
"min-release-age = 2",
|
|
10
|
+
"strict-peer-deps = true"
|
|
11
|
+
]).save();
|
|
12
|
+
}
|
|
13
|
+
task.description = "Adds npmrc security configuration";
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
module.exports = task;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@felixicaza/mrm-presets",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Una colección de presets de mrm para configuraciones automáticas.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mrm",
|
|
7
|
+
"preset",
|
|
8
|
+
"mrm-preset"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/felixicaza/configs/tree/main/packages/mrm-presets#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/felixicaza/configs/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/felixicaza/configs.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Felix Icaza <fx.joliett17@gmail.com>",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "./dist/config.json",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"mrm-core": "7.1.22"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@felixicaza/tsdown-config": "workspace:*"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
let mrm_core = require("mrm-core");
|
|
2
|
+
|
|
3
|
+
//#region src/pnpm-workpace.ts
|
|
4
|
+
function task() {
|
|
5
|
+
(0, mrm_core.yaml)("pnpm-workspace.yaml").merge([
|
|
6
|
+
"blockExoticSubdeps: true",
|
|
7
|
+
"autoInstallPeers: false",
|
|
8
|
+
"minimumReleaseAge: 2880",
|
|
9
|
+
"trustPolicy: no-downgrade",
|
|
10
|
+
"strictPeerDependencies: true",
|
|
11
|
+
"strictDepBuilds: true"
|
|
12
|
+
]).save();
|
|
13
|
+
}
|
|
14
|
+
task.description = "Adds pnpm workspace security configuration";
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
module.exports = task;
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@felixicaza/mrm-presets",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Una colección de presets de mrm para configuraciones automáticas.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mrm",
|
|
7
|
+
"preset",
|
|
8
|
+
"mrm-preset"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/felixicaza/configs/tree/main/packages/mrm-presets#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/felixicaza/configs/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/felixicaza/configs.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Felix Icaza <fx.joliett17@gmail.com>",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "./dist/config.json",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsdown",
|
|
28
|
+
"dev": "tsdown --watch"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"mrm-core": "7.1.22"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@felixicaza/tsdown-config": "workspace:*"
|
|
35
|
+
}
|
|
36
|
+
}
|