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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rawstyle",
3
- "version": "0.1.0",
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
- ## &ensp; [` 📦 create-rawstyle0.1.0 `](https://github.com/rawstylecss/rawstyle/commits/create-rawstyle0.1.0)
5
-
6
- ### &emsp; 🎁 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
- ##### &emsp;&emsp; [_Full Changelog_](https://github.com/rawstylecss/rawstyle/commits/create-rawstyle0.1.0) &ensp;•&ensp; _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
@@ -1,7 +0,0 @@
1
- import { cancel, isCancel } from '@clack/prompts'
2
-
3
- export const handleCancel: <T>(value: T | symbol) => asserts value is T = value => {
4
- if (!isCancel(value)) return
5
- cancel('Operation cancelled')
6
- process.exit(0)
7
- }
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "paths": { "@/*": [ "./src/*" ] }
5
- }
6
- }