Skip to content

Commit

Permalink
fix clean quote bugs, markdown translating and add tests (#74)
Browse files Browse the repository at this point in the history
* fix clean quote bugs, markdown translating + tests + vite config for dev and production
  • Loading branch information
stdword authored Feb 25, 2023
1 parent 72ee3ec commit ca9bf8f
Show file tree
Hide file tree
Showing 9 changed files with 912 additions and 543 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: pnpm install

- name: Build dist
run: pnpm build
run: pnpm prod

- name: Install zip
uses: montudor/action-zip@v1
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/banners.ts"></script>
<script type="module" src="/src/app.ts"></script>
</body>
</html>
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"author": "yoyurec <yoyurec@gmail.com>",
"main": "dist/index.html",
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "vite",
"build": "tsc && vite build",
"preinstall": "npx only-allow pnpm"
"test": "node --loader tsx --no-warnings --test ./tests/*.test.ts",
"build": "tsc && vite build --mode=dev",
"prod": "tsc && npm run test && vite build"
},
"config": {
"commitizen": {
Expand All @@ -28,7 +30,11 @@
"conventional-changelog-conventionalcommits": "^5.0.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.34.0",
"global-jsdom": "^8.7.0",
"ignore-styles": "^5.0.1",
"jsdom": "^21.1.0",
"semantic-release": "^20.1.0",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vite": "4.1.1",
"vite-plugin-logseq": "^1.1.2"
Expand Down
Loading

0 comments on commit ca9bf8f

Please sign in to comment.