Skip to content

Commit

Permalink
chore: restructure demo
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 8, 2021
1 parent 7f7e9d6 commit 7af7b68
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 16 deletions.
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ node_modules
# intellij stuff
.idea/
*.pdf
demo/index.html
demo/starter.md
demo/public
demo/*-export
demo/build.md
*-export
demo/starter/slides.md
assets/demo
packages/slidev/README.md
composable-vue-cn
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions demo/package.json → demo/composable-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"private": true,
"scripts": {
"dev": "nodemon -w '../packages/slidev/dist/*.js' --exec 'slidev --open=false --log=info'",
"starter": "ln -sF ../packages/create-app/template/slides.md starter.md && nodemon -w '../packages/slidev/dist/*.js' --exec 'slidev ./starter.md --open=false --log=info'",
"dev": "nodemon -w '../../packages/slidev/dist/*.js' --exec 'slidev --log=info'",
"build": "slidev build",
"export": "slidev export"
},
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions demo/starter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See [../../packages/create-app/template/slides.md](../../packages/create-app/template/slides.md)
File renamed without changes.
15 changes: 15 additions & 0 deletions demo/starter/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"private": true,
"scripts": {
"dev": "ln -sF ../../packages/create-app/template/slides.md slides.md && nodemon -w '../../packages/slidev/dist/*.js' --exec 'slidev ./slides.md --open=false --log=info'",
"build": "slidev build",
"export": "slidev export"
},
"devDependencies": {
"@slidev/cli": "workspace:*",
"@slidev/theme-default": "workspace:*",
"@slidev/theme-seriph": "workspace:*",
"@slidev/types": "workspace:*",
"nodemon": "^2.0.7"
}
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
"build": "pnpm -r --filter ./packages run build",
"docs": "vitepress dev docs",
"docs:build": "esno ./scripts/docs.ts",
"demo:dev": "pnpm -C demo run dev",
"demo:build": "pnpm -C demo run build",
"demo:starter": "pnpm -C demo run starter",
"demo:dev": "pnpm -C demo/starter run dev",
"demo:compoable-vue": "pnpm -C demo/compoable-vue run dev",
"lint": "eslint '**/*.{js,ts,vue,json}'",
"lint:fix": "nr lint --fix",
"test": "jest",
Expand Down
36 changes: 31 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- packages/*
- demo
- demo/*

0 comments on commit 7af7b68

Please sign in to comment.