diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a9c9857 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 38df9a4..aff1282 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ models/* downloads/* data/* +docs/* + .idea .vscode \ No newline at end of file diff --git a/slidev/package.json b/slidev/package.json new file mode 100644 index 0000000..f1bd10f --- /dev/null +++ b/slidev/package.json @@ -0,0 +1,85 @@ +{ + "type": "module", + "version": "0.46.3", + "private": true, + "packageManager": "pnpm@8.14.2", + "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/markdown-it-plugins@2.1.4": "patches/@hedgedoc__markdown-it-plugins@2.1.4.patch" + } + }, + "simple-git-hooks": { + "pre-commit": "npx lint-staged" + }, + "lint-staged": { + "{packages,.vitepress,scripts}/**/*.{js,ts,vue,json}": [ + "eslint --fix --cache" + ] + } +}