Skip to content

Commit

Permalink
🐎 ci: 修改名称
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Oct 30, 2023
1 parent 5da5618 commit 99ac68f
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build
run: |
node ./scripts/publish.mjs
cd ./packages/async-cli
cd ./packages/create-theme
npm run build
npm publish
env:
Expand Down
15 changes: 0 additions & 15 deletions packages/async-cli/README.md

This file was deleted.

15 changes: 15 additions & 0 deletions packages/create-theme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# vitepress theme async

```bash
# npm
npm create async-create-theme@latest my-first-blog

# yarn
yarn create async-create-theme my-first-blog

# pnpm
pnpm create async-create-theme my-first-blog

# bun
bunx async-create-theme my-first-blog --bun
```
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "async-cli",
"name": "async-create-theme",
"version": "0.0.0",
"repository": "[email protected]:MaLuns/vitepress-theme-async.git",
"author": "白云苍狗 <[email protected]>",
"license": "MIT",
"keywords": [
"vitepress-theme",
"blog-theme",
"async-cli"
"create-theme"
],
"bin": {
"async-cli": "./dist/index.js"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ function createThemeProject(destination: string) {
console.log('🎉 🎉 created successfully!');
console.log();

console.log('📚 📚 docs: https://vitepress-theme-async.imalun.com');
console.log();

console.log(`project in ${destination}`);

console.log();
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { writeFileSync } from "fs";
import { resolve } from "path";
import { fileURLToPath } from "url";
import themepkg from "../packages/vitepress-theme-async/package.json" assert { type: "json" };
import clipkg from "../packages/async-cli/package.json" assert { type: "json" };
import clipkg from "../packages/create-theme/package.json" assert { type: "json" };


if (process.env.RELEASE_VERSION) {
Expand All @@ -11,5 +11,5 @@ if (process.env.RELEASE_VERSION) {
themepkg.version = version.replace("v", "");
clipkg.version = version.replace("cli-v", "");
writeFileSync(resolve(fileURLToPath(import.meta.url), "../../packages/vitepress-theme-async/package.json"), JSON.stringify(themepkg, null, 4), "utf-8");
writeFileSync(resolve(fileURLToPath(import.meta.url), "../../packages/async-cli/package.json"), JSON.stringify(clipkg, null, 4), "utf-8");
writeFileSync(resolve(fileURLToPath(import.meta.url), "../../packages/create-theme/package.json"), JSON.stringify(clipkg, null, 4), "utf-8");
}

0 comments on commit 99ac68f

Please sign in to comment.