kigumi 0.8.2 → 0.9.0
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 +9 -8
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -59,21 +59,20 @@ npx kigumi init
|
|
|
59
59
|
|
|
60
60
|
**Own Web Awesome Pro license?**
|
|
61
61
|
|
|
62
|
-
To unlock premium themes and Pro-only components, you need a Web Awesome Pro account. [Get your token](https://webawesome.com/login) and
|
|
62
|
+
To unlock premium themes and Pro-only components, you need a Web Awesome Pro account. [Get your token](https://webawesome.com/login) and configure it:
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
|
|
66
65
|
# Option 1: During `init` command (recommended)
|
|
67
66
|
npx kigumi init --token YOUR_TOKEN
|
|
68
67
|
|
|
69
|
-
# Option 2:
|
|
68
|
+
# Option 2: Set it globally (once per machine)
|
|
70
69
|
npm config set //npm.cloudsmith.io/fortawesome/webawesome-pro/:_authToken YOUR_TOKEN
|
|
71
70
|
|
|
72
|
-
# Option 3: In .env file
|
|
73
|
-
WEBAWESOME_NPM_TOKEN=your_token
|
|
71
|
+
# Option 3: In project .env file
|
|
72
|
+
echo "WEBAWESOME_NPM_TOKEN=your_token" > .env
|
|
74
73
|
|
|
75
|
-
# Option 4:
|
|
76
|
-
|
|
74
|
+
# Option 4: Environment variable (CI/CD)
|
|
75
|
+
export WEBAWESOME_NPM_TOKEN=your_token
|
|
77
76
|
```
|
|
78
77
|
|
|
79
78
|
### `add`
|
|
@@ -200,7 +199,9 @@ If `npm install` fails with 401 errors:
|
|
|
200
199
|
npm config get //npm.cloudsmith.io/fortawesome/webawesome-pro/:_authToken
|
|
201
200
|
```
|
|
202
201
|
|
|
203
|
-
3. Check your token is valid at [https://webawesome.com/login](https://
|
|
202
|
+
3. Check your token is valid at [https://webawesome.com/login](https://webawesome.com/login)
|
|
203
|
+
|
|
204
|
+
**Using pnpm?** pnpm does not use global auth for scoped registries. If 401 persists, add the token to your project `.npmrc` or use `npx kigumi init --token YOUR_TOKEN`.
|
|
204
205
|
|
|
205
206
|
### Component styles not loading
|
|
206
207
|
|
package/dist/index.js
CHANGED
|
@@ -1905,7 +1905,7 @@ ${ENV_TOKEN_KEY}=${token}
|
|
|
1905
1905
|
return;
|
|
1906
1906
|
}
|
|
1907
1907
|
const envContent = `# Web Awesome Pro authentication token
|
|
1908
|
-
# Get your token from https://webawesome.com
|
|
1908
|
+
# Get your token from https://webawesome.com
|
|
1909
1909
|
${ENV_TOKEN_KEY}=${token}
|
|
1910
1910
|
`;
|
|
1911
1911
|
await fs7.writeFile(envPath, envContent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kigumi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "CLI tool to add Web Awesome components to your project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"vitest": "^4.0.16"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
+
"setup:npmrc": "node scripts/setup-npmrc.mjs",
|
|
67
68
|
"dev": "tsx watch src/index.ts",
|
|
68
69
|
"generate:metadata": "tsx scripts/parse-custom-elements.ts",
|
|
69
70
|
"prebuild": "test -f src/utils/component-metadata.ts || pnpm generate:metadata",
|