-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deploy workflow, ignore docs directory, and add slidev package.json
- Loading branch information
1 parent
0c88933
commit 326d879
Showing
3 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Deploy pages | ||
on: push | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Install dependencies | ||
run: | ||
cd slidev | ||
npm install | ||
- name: Build | ||
run: | ||
cd slidev | ||
npm run build | ||
- name: Deploy pages | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
build_dir: slidev/dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
models/* | ||
downloads/* | ||
data/* | ||
docs/* | ||
|
||
|
||
.idea | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"type": "module", | ||
"version": "0.46.3", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
"scripts": { | ||
"build": "pnpm -r --filter=./packages/** run build", | ||
"ci:publish": "zx scripts/publish.mjs", | ||
"cy": "cypress open", | ||
"cy:fixture": "pnpm -C cypress/fixtures/basic run dev", | ||
"demo:build": "zx ./scripts/demo.mjs", | ||
"demo:composable-vue": "pnpm -C demo/composable-vue run dev", | ||
"demo:dev": "pnpm -C demo/starter run dev", | ||
"play": "pnpm demo:dev", | ||
"dev": "pnpm -r --filter=./packages/** --parallel run dev", | ||
"lint": "eslint .", | ||
"lint:fix": "nr lint --fix", | ||
"typecheck": "vue-tsc --noEmit", | ||
"release": "bumpp package.json packages/*/package.json --all -x \"zx scripts/update-versions.mjs\"", | ||
"test": "vitest test" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.6.3", | ||
"@antfu/ni": "^0.21.12", | ||
"@antfu/utils": "^0.7.7", | ||
"@slidev/cli": "workspace:*", | ||
"@slidev/parser": "workspace:*", | ||
"@slidev/types": "workspace:*", | ||
"@types/cli-progress": "^3.11.5", | ||
"@types/codemirror": "^5.60.15", | ||
"@types/connect": "^3.4.38", | ||
"@types/debug": "^4.1.12", | ||
"@types/file-saver": "^2.0.7", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/js-yaml": "^4.0.9", | ||
"@types/katex": "^0.16.7", | ||
"@types/localtunnel": "^2.0.4", | ||
"@types/markdown-it": "^13.0.7", | ||
"@types/node": "^20.11.5", | ||
"@types/prismjs": "^1.26.3", | ||
"@types/prompts": "^2.4.9", | ||
"@types/recordrtc": "^5.6.14", | ||
"@types/resolve": "^1.20.6", | ||
"@types/semver": "^7.5.6", | ||
"@types/yargs": "^17.0.32", | ||
"@vueuse/core": "^10.7.2", | ||
"bumpp": "^9.3.0", | ||
"cross-env": "^7.0.3", | ||
"cypress": "^12.17.4", | ||
"eslint": "^8.56.0", | ||
"esno": "^4.0.0", | ||
"katex": "^0.16.9", | ||
"lint-staged": "^15.2.0", | ||
"markdown-it-shikiji": "^0.10.0", | ||
"mermaid": "^10.7.0", | ||
"playwright-chromium": "^1.41.1", | ||
"pnpm": "^8.14.2", | ||
"rimraf": "^5.0.5", | ||
"shikiji": "^0.10.0", | ||
"simple-git-hooks": "^2.9.0", | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.12", | ||
"vite-plugin-windicss": "^1.9.3", | ||
"vitest": "^1.2.1", | ||
"vue-tsc": "^1.8.27", | ||
"zx": "^7.2.3" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@hedgedoc/[email protected]": "patches/@[email protected]" | ||
} | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "npx lint-staged" | ||
}, | ||
"lint-staged": { | ||
"{packages,.vitepress,scripts}/**/*.{js,ts,vue,json}": [ | ||
"eslint --fix --cache" | ||
] | ||
} | ||
} |