create-minista 1.0.0 → 2.0.0-alpha.12
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 +12 -28
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,46 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
## About
|
|
16
16
|
|
|
17
|
-
minista
|
|
17
|
+
You can start a minista project with a simple command entry.
|
|
18
18
|
|
|
19
19
|
## How To Use
|
|
20
20
|
|
|
21
|
-
**NPM**
|
|
22
|
-
|
|
23
21
|
```bash
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
**Yarn**
|
|
22
|
+
# Interactive
|
|
23
|
+
$ npm init minista@next
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
# Shortcut
|
|
26
|
+
$ npm init minista@next my-minista-project -- --template ts
|
|
31
27
|
```
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
npm init minista my-minista-project -- --template ts
|
|
39
|
-
|
|
40
|
-
# yarn
|
|
41
|
-
yarn create minista my-minista-project --template ts
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
`--template` にはリポジトリの[Templates](https://github.com/qrac/create-minista/tree/main/templates)が使えます。
|
|
45
|
-
|
|
46
|
-
- `basic`: TypeScript・サイトマップ・Zip 圧縮等の納品基本セット
|
|
47
|
-
- `ts`: TypeScript の最小限構成
|
|
48
|
-
- `js`: JavaScript の最小限構成
|
|
49
|
-
|
|
50
|
-
テンプレートとして任意の GitHub リポジトリを使用することもできます。
|
|
29
|
+
| template | detail |
|
|
30
|
+
| -------- | ----------------------------------------- |
|
|
31
|
+
| `basic` | TypeScript, Sitemap, Delivery Zip, etc... |
|
|
32
|
+
| `ts` | TypeScript minimum configuration |
|
|
33
|
+
| `js` | JavaScript minimum configuration |
|
|
51
34
|
|
|
52
35
|
```bash
|
|
36
|
+
# You can also use any GitHub repository
|
|
53
37
|
npm init minista my-minista-project -- --template qrac/minista-blog-with-rest-api
|
|
54
38
|
```
|
|
55
39
|
|
|
56
|
-
## Fork & Respect
|
|
40
|
+
## Fork & Respect
|
|
57
41
|
|
|
58
42
|
- [astro/packages/create-astro at main · withastro/astro](https://github.com/withastro/astro/tree/main/packages/create-astro)
|
|
59
43
|
- [vite/packages/create-vite at main · vitejs/vite](https://github.com/vitejs/vite/tree/main/packages/create-vite)
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ export async function main() {
|
|
|
63
63
|
const projectName = options.projectName
|
|
64
64
|
? options.projectName
|
|
65
65
|
: defaultProjectName;
|
|
66
|
-
const hash = args.commit ? `#${args.commit}` : "";
|
|
66
|
+
const hash = args.commit ? `#${args.commit}` : "#v2";
|
|
67
67
|
const templateTarget = options.template.includes("/")
|
|
68
68
|
? options.template
|
|
69
69
|
: `${officialTemplatesPath}/${options.template}`;
|