Skip to content

Commit 2e96f01

Browse files
committed
v1.0.11: add react tanning template
1 parent a6a2aaa commit 2e96f01

File tree

7 files changed

+41
-3
lines changed

7 files changed

+41
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.11 (22 February 2025)
2+
3+
### Patch
4+
5+
- Add a new React Tanning Template Framework
6+
17
## 1.0.10 (19 October 2024)
28

39
### Patch

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ vim .
6060
- Remix: `--fw=remix`
6161
- SolidStart: `--fw=solidstart`
6262
- SvelteKit: `--fw=sveltekit`
63+
- React Tanning Template: `--fw=rts`
6364
- Umi: `--fw=umi`
6465
- Vite: `--fw=vite`
6566
- Waku: `--fw=waku`

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ export async function cli(args) {
122122
case 'sveltekit':
123123
await runner.runSvelteKit(options)
124124
return
125+
case 'rts':
126+
await runner.runRTS(options)
127+
return
125128
case 'umi':
126129
await runner.runUmi(options)
127130
return

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rustyrush/the-create",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"description": "One create to rule them all",
55
"type": "module",
66
"main": "index.js",
@@ -9,7 +9,7 @@
99
"create-jsdoc": "jsdoc -c conf.json",
1010
"link": "npm link",
1111
"unlink": "npm unlink -g @rustyrush/the-create",
12-
"publish": "npm publish --access public"
12+
"publish": "npm publish -- --access public"
1313
},
1414
"repository": {
1515
"type": "git",

runner/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { runOne } from './runOne.js'
77
import { runPhoenix } from './runPhoenix.js'
88
import { runPreact } from './runPreact.js'
99
import { runQwik } from './runQwik.js'
10+
import { runRTS } from './runRTS.js'
1011
import { runReactNative } from './runReactNative.js'
1112
import { runRedwood } from './runRedwood.js'
1213
import { runRemix } from './runRemix.js'
@@ -33,6 +34,7 @@ export {
3334
runSolidStart,
3435
runSuperkit,
3536
runSvelteKit,
37+
runRTS,
3638
runUmi,
3739
runVite,
3840
runWaku,

runner/runRTS.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
'use strict'
2+
3+
import { checkDirectoryName } from '../utils/index.js'
4+
import { execSync } from 'child_process'
5+
6+
async function checkOptions(options) {
7+
options = await checkDirectoryName(options)
8+
return options
9+
}
10+
11+
/**
12+
* Run SolidStart based project
13+
* @param {Options} options
14+
* @returns {Promise<undefined | void>}
15+
*/
16+
export async function runRTS(opts) {
17+
const options = await checkOptions(opts)
18+
19+
let command = `npx degit padunk/react-tanning ${options.directoryName}`
20+
21+
if (options.pm !== 'npm') {
22+
command = `${options.pm} ${command}`
23+
}
24+
25+
execSync(command, { stdio: 'inherit' })
26+
}

type.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
/**
14-
* @typedef {'analog' | 'astro' | 'epic' | 'million' | 'next' | 'nuxt' | 'one' | 'phoenix' | 'preact' | 'qwik' | 'reactnative' | 'redwood' | 'remix' | 'solidstart' | 'superkit' | 'sveltekit' | 'umi' | 'vite' | 'waku' } Framework
14+
* @typedef {'analog' | 'astro' | 'epic' | 'million' | 'next' | 'nuxt' | 'one' | 'phoenix' | 'preact' | 'qwik' | 'reactnative' | 'redwood' | 'remix' | 'solidstart' | 'superkit' | 'sveltekit' | 'rts' | 'umi' | 'vite' | 'waku' } Framework
1515
*/
1616

1717
/**

0 commit comments

Comments
 (0)