@best-shot/preset-mini 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -17,3 +17,14 @@ A `best-shot` preset for mini program project.
17
17
  ```bash
18
18
  npm install @best-shot/preset-mini --save-dev
19
19
  ```
20
+
21
+ ## Usage
22
+
23
+ ```mjs
24
+ // example: .best-shot/config.mjs
25
+ export default {
26
+ presets: ['babel', 'style', 'mini'],
27
+ output: { path: 'dist' },
28
+ appConfig: true
29
+ };
30
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@best-shot/preset-mini",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A `best-shot` preset for mini program project",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,12 +29,12 @@
29
29
  "type": "module",
30
30
  "dependencies": {
31
31
  "yaml": "^2.4.5",
32
- "@best-shot/sfc-split-loader": "~0.2.0"
32
+ "@best-shot/sfc-split-loader": "~0.3.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@best-shot/core": "~0.9.17",
36
- "@best-shot/preset-babel": "~0.14.8",
37
- "@best-shot/preset-style": "~0.12.14"
36
+ "@best-shot/preset-style": "~0.12.14",
37
+ "@best-shot/preset-babel": "~0.14.9"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=20.6.0 || ^18.19.0"