create-sammi-next 0.0.1 → 0.0.2
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 +51 -0
- package/dist/index.js +2 -2
- package/package.json +8 -1
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# create-sammi-next
|
|
2
|
+
|
|
3
|
+
## Scaffolding Your First SAMMI Next Project
|
|
4
|
+
|
|
5
|
+
With NPM:
|
|
6
|
+
`npm create sammi-next@latest`
|
|
7
|
+
|
|
8
|
+
With Yarn:
|
|
9
|
+
`yan create vite`
|
|
10
|
+
|
|
11
|
+
With PNPM:
|
|
12
|
+
`pnpm create sammi-next`
|
|
13
|
+
|
|
14
|
+
With Bun:
|
|
15
|
+
`bun create sammi-next`
|
|
16
|
+
|
|
17
|
+
With Deno:
|
|
18
|
+
`deno init --npm sammi-next`
|
|
19
|
+
|
|
20
|
+
Then follow the prompts!
|
|
21
|
+
|
|
22
|
+
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold the TypeScript sample extension template, run:
|
|
23
|
+
```bash
|
|
24
|
+
npm create sammi-next@latest my-sammi-extension -- --template sample-ts
|
|
25
|
+
|
|
26
|
+
yarn create sammi-next my-sammi-extension -- --template sample-ts
|
|
27
|
+
|
|
28
|
+
pnpm create sammi-next my-sammi-extension -- --template sample-ts
|
|
29
|
+
|
|
30
|
+
bun create sammi-next my-sammi-extension -- --template sample-ts
|
|
31
|
+
|
|
32
|
+
deno init --npm sammi-next my-sammi-extension -- --template sample-ts
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Currently supported template presets include:
|
|
36
|
+
- `vanilla-ts`
|
|
37
|
+
- `vanilla-js`
|
|
38
|
+
- `sample-ts`
|
|
39
|
+
- `sample-js`
|
|
40
|
+
- `minimal-ts`
|
|
41
|
+
- `minimal-js`
|
|
42
|
+
|
|
43
|
+
You can use `.` for the project name to scaffold in the current directory.
|
|
44
|
+
|
|
45
|
+
## TODO
|
|
46
|
+
- `react-ts`
|
|
47
|
+
- `react-js`
|
|
48
|
+
- `react-swc-ts`
|
|
49
|
+
- `react-swc-js`
|
|
50
|
+
- `svelte-ts`
|
|
51
|
+
- `svelte-js`
|
package/dist/index.js
CHANGED
|
@@ -832,7 +832,7 @@ ${J}${i.trimStart()}`), r$1 = 3 + stripVTControlCharacters(i.trimStart()).length
|
|
|
832
832
|
warning: (t) => x.warn(t),
|
|
833
833
|
error: (t) => x.message(t, { symbol: import_picocolors.default.red(K) })
|
|
834
834
|
};
|
|
835
|
-
var version = "0.0.
|
|
835
|
+
var version = "0.0.2";
|
|
836
836
|
const { blue, gray, green, magenta, yellow } = import_picocolors.default;
|
|
837
837
|
const argv = (0, import_lib.default)(process.argv.slice(2), {
|
|
838
838
|
boolean: [
|
|
@@ -1027,7 +1027,7 @@ async function init() {
|
|
|
1027
1027
|
fs.writeFileSync(targetPath, content);
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
|
-
if (file
|
|
1030
|
+
if (file.endsWith(".html") || file === "README.md" || file.startsWith("sammi.config.")) {
|
|
1031
1031
|
const templatePath = path.join(templateDir, file);
|
|
1032
1032
|
const updatedContent = fs.readFileSync(templatePath, "utf-8").replace(/{{EXTENSION_ID}}/g, extensionID).replace(/{{EXTENSION_NAME}}/g, extensionName).replace(/{{CREATE_VERSION}}/g, version);
|
|
1033
1033
|
fs.writeFileSync(targetPath, updatedContent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sammi-next",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -34,6 +34,13 @@
|
|
|
34
34
|
"url": "https://github.com/Benjas333/SAMMI-Next/issues"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/Benjas333/SAMMI-Next/tree/master/packages/create_sammi-next#readme",
|
|
37
|
+
"keywords": [
|
|
38
|
+
"cli",
|
|
39
|
+
"sammi",
|
|
40
|
+
"sammi-next",
|
|
41
|
+
"create-sammi-next",
|
|
42
|
+
"sammi-next-cli"
|
|
43
|
+
],
|
|
37
44
|
"devDependencies": {
|
|
38
45
|
"@clack/prompts": "^0.11.0",
|
|
39
46
|
"@types/node": "^25.0.9",
|