Skip to content

Commit 363e7bd

Browse files
committed
upgrade release process
1 parent 68c89f0 commit 363e7bd

File tree

3 files changed

+2859
-111
lines changed

3 files changed

+2859
-111
lines changed

.gitignore

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
# vscode
2-
.vscode
3-
4-
# Intellij
5-
*.iml
6-
.idea
7-
8-
# npm
9-
node_modules
10-
11-
# Don't include the compiled main.js file in the repo.
12-
# They should be uploaded to GitHub releases instead.
13-
main.js
14-
15-
# Exclude sourcemaps
16-
*.map
17-
18-
# obsidian
19-
data.json
20-
21-
# Exclude macOS Finder (System Explorer) View States
22-
.DS_Store
1+
# vscode
2+
.vscode
3+
4+
# Intellij
5+
*.iml
6+
.idea
7+
8+
# npm
9+
node_modules
10+
11+
# Don't include the compiled main.js file in the repo.
12+
# They should be uploaded to GitHub releases instead.
13+
main.js
14+
15+
# Exclude sourcemaps
16+
*.map
17+
18+
# obsidian
19+
data.json
20+
21+
# Exclude macOS Finder (System Explorer) View States
22+
.DS_Store
23+
24+
dist

package.json

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,46 @@
33
"version": "1.0.3",
44
"main": "main.js",
55
"scripts": {
6-
"dev": "node esbuild.config.mjs",
7-
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
8-
"version": "node version-bump.mjs && git add manifest.json versions.json"
6+
"build": "obsidian-plugin build src/main.ts",
7+
"dev": "obsidian-plugin dev src/main.ts",
8+
"postversion": "node version-bump.mjs",
9+
"release": "publish-fast",
10+
"lint": "eslint .",
11+
"lint:fix": "eslint . --fix"
912
},
1013
"keywords": [],
1114
"author": "",
1215
"license": "MIT",
1316
"devDependencies": {
17+
"@lukasbach/eslint-config-deps": "^1.0.2",
1418
"@types/node": "^16.11.6",
15-
"@typescript-eslint/eslint-plugin": "5.29.0",
16-
"@typescript-eslint/parser": "5.29.0",
1719
"builtin-modules": "3.3.0",
1820
"esbuild": "0.17.3",
1921
"obsidian": "latest",
2022
"tslib": "2.4.0",
21-
"typescript": "4.7.4"
23+
"typescript": "4.7.4",
24+
"publish-fast": "^0.0.19",
25+
"obsidian-plugin-cli": "^0.9.0",
26+
"eslint": "^8.36.0"
27+
},
28+
"eslintConfig": {
29+
"extends": "@lukasbach/base/react",
30+
"parserOptions": {
31+
"project": "./tsconfig.json"
32+
},
33+
"ignorePatterns": [
34+
"lib",
35+
"*.js"
36+
]
2237
},
2338
"volta": {
2439
"node": "18.15.0",
2540
"yarn": "1.22.19"
41+
},
42+
"publish": {
43+
"preScripts": "lint,build",
44+
"skipPublish": true,
45+
"releaseAssets": "dist/*",
46+
"noVersionPrefix": true
2647
}
2748
}

0 commit comments

Comments
 (0)