create-rawstyle 0.1.0 → 0.1.1
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/package.json +4 -1
- package/CHANGELOG.md +0 -9
- package/create-rawstyle-v0.1.0.zip +0 -0
- package/src/index.ts +0 -26
- package/src/utils.ts +0 -7
- package/tsconfig.json +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rawstyle",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "🪶 Ultra‑light Compile‑time CSS‑in‑JS",
|
|
5
5
|
"author": "kh4f <kh4f.dev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"relion": {
|
|
16
16
|
"tagPrefix": "create-rawstyle@"
|
|
17
17
|
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
18
21
|
"main": "dist/index.js",
|
|
19
22
|
"type": "module",
|
|
20
23
|
"dependencies": {
|
package/CHANGELOG.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
##   [` 📦 create-rawstyle0.1.0 `](https://github.com/rawstylecss/rawstyle/commits/create-rawstyle0.1.0)
|
|
5
|
-
|
|
6
|
-
###   🎁 Features
|
|
7
|
-
- **Interactive project scaffolding**: implemented a CLI for creating Rawstyle projects with platform selection prompt. [🡥](https://github.com/rawstylecss/rawstyle/commit/696aa30)
|
|
8
|
-
|
|
9
|
-
#####    [_Full Changelog_](https://github.com/rawstylecss/rawstyle/commits/create-rawstyle0.1.0)  •  _Jan 24, 2026_
|
|
Binary file
|
package/src/index.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { intro, select, spinner, text } from '@clack/prompts'
|
|
2
|
-
import { downloadTemplate } from 'giget'
|
|
3
|
-
import { handleCancel } from '@/utils'
|
|
4
|
-
|
|
5
|
-
void (async () => {
|
|
6
|
-
console.log()
|
|
7
|
-
intro('Create a Rawstyle project')
|
|
8
|
-
|
|
9
|
-
const platform = await select({ message: 'Pick a platform:', options: [
|
|
10
|
-
{ label: 'Next.js', value: 'next' },
|
|
11
|
-
{ label: 'Vite', value: 'vite' },
|
|
12
|
-
] })
|
|
13
|
-
handleCancel(platform)
|
|
14
|
-
|
|
15
|
-
const projectName = await text({
|
|
16
|
-
message: 'Project name:',
|
|
17
|
-
defaultValue: `rawstyle-${platform}`,
|
|
18
|
-
placeholder: `rawstyle-${platform}`,
|
|
19
|
-
})
|
|
20
|
-
handleCancel(projectName)
|
|
21
|
-
|
|
22
|
-
const s = spinner()
|
|
23
|
-
s.start('Scaffolding project...')
|
|
24
|
-
await downloadTemplate(`gh:kh4f/rawstyle/examples/${platform}`, { dir: projectName })
|
|
25
|
-
s.stop('Done!')
|
|
26
|
-
})()
|
package/src/utils.ts
DELETED