Skip to content

Commit 7fc6af1

Browse files
committed
feat: template setup and render with ejs (#111)
1 parent fec7efd commit 7fc6af1

30 files changed

+1060
-1027
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_GIT_COMMIT=8a8c364fafdf20ee8504f004b9db54d9bc82eac4

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-ssr
55
*.local
66
__pycache__
7+
*.log

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
[build]
55
publish = "./dist"
6-
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
6+
command = "npx pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && npx pnpm run build"

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"scripts": {
55
"dev": "vite",
6-
"build": "vite build",
6+
"build": "node scripts/getCommit.js && vite build",
77
"serve": "vite preview",
88
"black:fmt": "black src/templates -l 80",
99
"black:lint": "black src/templates -l 80 --check",
@@ -13,17 +13,19 @@
1313
"lint": "prettier --check . && pnpm run black:lint && pnpm run isort:lint"
1414
},
1515
"devDependencies": {
16-
"@iconify/iconify": "^2.0.0",
16+
"@iconify/iconify": "^2.0.1",
17+
"@types/ejs": "^3.0.6",
1718
"@types/file-saver": "^2.0.2",
1819
"@types/prismjs": "^1.16.5",
1920
"@vitejs/plugin-vue": "^1.2.2",
2021
"@vue/compiler-sfc": "^3.0.11",
2122
"conventional-changelog-cli": "^2.1.1",
23+
"ejs": "^3.1.6",
2224
"file-saver": "^2.0.5",
2325
"jszip": "^3.6.0",
24-
"prettier": "^2.2.1",
26+
"prettier": "^2.3.0",
2527
"prismjs": "^1.23.0",
26-
"vite": "^2.2.3",
28+
"vite": "^2.3.2",
2729
"vue": "^3.0.11"
2830
},
2931
"prettier": {

0 commit comments

Comments
 (0)