Skip to content

Commit 04b0c30

Browse files
committed
feat: publish on npm
1 parent 5915694 commit 04b0c30

2 files changed

Lines changed: 58 additions & 13 deletions

File tree

.npmignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Development files
2+
.git
3+
.github
4+
.vscode
5+
node_modules
6+
.editorconfig
7+
.eslintrc.js
8+
.prettierrc
9+
.env
10+
.env.*
11+
*.log
12+
13+
# Build artifacts
14+
release
15+
dist
16+
dist-electron
17+
*.tsbuildinfo
18+
19+
# Source files that aren't needed in the package
20+
src/tests
21+
**/*.test.ts
22+
**/*.test.tsx
23+
**/*.spec.ts
24+
**/*.spec.tsx
25+
26+
# Documentation
27+
docs
28+
*.md
29+
!README.md
30+
!LICENSE
31+
32+
# Assets not needed for npm
33+
assets/screenshots

package.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
"run-prod": "cross-env NODE_ENV=production electron ./dist-electron/main.js",
1313
"package": "npm run build && electron-builder build",
1414
"package-mac": "npm run build && electron-builder build --mac",
15-
"package-win": "npm run build && electron-builder build --win"
15+
"package-win": "npm run build && electron-builder build --win",
16+
"prepublishOnly": "npm run build"
1617
},
1718
"build": {
18-
"appId": "com.chunginlee.interviewcoder",
19+
"appId": "com.dandyfaishalfahmi.invisiblecoder",
1920
"productName": "InvisibleCoder",
2021
"files": [
2122
"dist/**/*",
@@ -48,7 +49,7 @@
4849
]
4950
}
5051
],
51-
"artifactName": "Interview-Coder-${arch}.${ext}",
52+
"artifactName": "InvisibleCoder-${arch}.${ext}",
5253
"icon": "assets/icons/mac/icon.icns",
5354
"hardenedRuntime": true,
5455
"gatekeeperAssess": false,
@@ -57,9 +58,9 @@
5758
"identity": "Developer ID Application",
5859
"notarize": true,
5960
"protocols": {
60-
"name": "interview-coder-protocol",
61+
"name": "invisiblecoder-protocol",
6162
"schemes": [
62-
"interview-coder"
63+
"invisiblecoder"
6364
]
6465
}
6566
},
@@ -70,9 +71,9 @@
7071
"icon": "assets/icons/win/icon.ico",
7172
"artifactName": "${productName}-Windows-${version}.${ext}",
7273
"protocols": {
73-
"name": "interview-coder-protocol",
74+
"name": "invisiblecoder-protocol",
7475
"schemes": [
75-
"interview-coder"
76+
"invisiblecoder"
7677
]
7778
}
7879
},
@@ -83,17 +84,17 @@
8384
"icon": "assets/icons/png/icon-256x256.png",
8485
"artifactName": "${productName}-Linux-${version}.${ext}",
8586
"protocols": {
86-
"name": "interview-coder-protocol",
87+
"name": "invisiblecoder-protocol",
8788
"schemes": [
88-
"interview-coder"
89+
"invisiblecoder"
8990
]
9091
}
9192
},
9293
"publish": [
9394
{
9495
"provider": "github",
9596
"owner": "ibttf",
96-
"repo": "interview-coder",
97+
"repo": "invisiblecoder",
9798
"private": false,
9899
"releaseType": "release"
99100
}
@@ -116,11 +117,22 @@
116117
"coding",
117118
"interview prep",
118119
"technical interview",
119-
"tool"
120+
"tool",
121+
"electron",
122+
"ai-assisted",
123+
"programming"
120124
],
121-
"author": "InvisibleCoder Contributors",
125+
"author": "Dandy Faishal Fahmi",
122126
"license": "AGPL-3.0-or-later",
123127
"description": "An invisible desktop application to help you pass your technical interviews.",
128+
"repository": {
129+
"type": "git",
130+
"url": "git+https://github.com/kdandy/invisibleCoder.git"
131+
},
132+
"homepage": "https://github.com/kdandy/invisibleCoder#readme",
133+
"bugs": {
134+
"url": "https://github.com/kdandy/invisibleCoder/issues"
135+
},
124136
"dependencies": {
125137
"@anthropic-ai/sdk": "^0.39.0",
126138
"@electron/notarize": "^2.3.0",
@@ -203,4 +215,4 @@
203215
"last 1 safari version"
204216
]
205217
}
206-
}
218+
}

0 commit comments

Comments
 (0)