Skip to content

Commit f1cd370

Browse files
committed
chore: prepare publish npm
1 parent ec96026 commit f1cd370

5 files changed

Lines changed: 1046 additions & 28 deletions

File tree

.npmignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Development files
2+
.idea
3+
.DS_Store
4+
*.log
5+
6+
# Dependencies
7+
node_modules/
8+
9+
# Input/output directories (containing example/test data)
10+
input/
11+
results/
12+
13+
# Development scripts
14+
bin/dev.js
15+
bin/dev.cmd
16+
17+
# Git
18+
.git/
19+
.gitignore
20+
21+
# Other
22+
*.md~
23+
*.swp
24+
*.swo
25+
26+
# Testing
27+
test/
28+
tests/
29+
__tests__/
30+
coverage/
31+
32+
# CI/CD
33+
.github/
34+
.travis.yml
35+
.circleci/
36+
37+
# Editor
38+
.vscode/
39+
.editorconfig

.release-it.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
3+
"git": {
4+
"commitMessage": "chore: release v${version}"
5+
},
6+
"github": {
7+
"release": true
8+
}
9+
}

README.md

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# emoo 🐄
66

7-
_CLI tool for IMAP email migration and cPanel bulk operations_
7+
_CLI tool for IMAP email migration and cPanel email bulk operations_
88

99
## Installation
1010

@@ -17,7 +17,7 @@ cd emoo
1717
pnpm install
1818

1919
# Install globally for easier access
20-
pnpm install -g .
20+
pnpm install -g emoo
2121
```
2222

2323
## Usage
@@ -43,7 +43,7 @@ This feature allows bulk email operations in cPanel including password reset and
4343
emoo cpanel reset
4444
```
4545

46-
#### Password Reset - Command Line Mode
46+
#### Bulk Email Password Reset by Domain
4747

4848
```bash
4949
# With all parameters
@@ -147,32 +147,17 @@ mail.old.com,user2@old.com,pass2,mail.new.com,user2@new.com,pass2,143,143,0,0,PL
147147

148148
## Features
149149

150-
### Migration from Bash Scripts
150+
### cPanel Tools Features
151151

152-
This tool is a rewrite from bash scripts:
153-
154-
- `cpanel-email-bulk``emoo cpanel reset`
155-
- `sync``emoo sync`
156-
157-
### cPanel Features
158-
159-
- ✅ Auto-detect authentication method (cpanel/basic/uapi-token)
160-
- ✅ Interactive domain selection
161-
- ✅ Bulk password reset
162-
- ✅ Bulk email creation
163-
- ✅ Random password generation
164-
- ✅ CSV export with timestamp
165-
- ✅ Progress indicators and colored output
152+
- Auto-detect authentication method (cpanel/basic/uapi-token)
153+
- Bulk email accounts password reset (including random password generation)
154+
- Bulk email creation
155+
- All result in CSV format
166156

167157
### IMAP Sync Features
168158

169-
- ✅ CSV-based configuration
170-
- ✅ Sequential and parallel processing
171-
- ✅ Docker support for imapsync
172-
- ✅ Dry-run mode
173-
- ✅ Detailed logging
174-
- ✅ SSL/TLS support
175-
- ✅ Custom authentication mechanisms
159+
- CSV-based configuration
160+
- Docker support for imapsync
176161

177162
## Dependencies
178163

package.json

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"build": "echo 'No build needed for JS'",
1212
"start": "./bin/run.js",
1313
"dev": "./bin/dev.js",
14-
"test": "echo \"Error: no test specified\" && exit 1"
14+
"test": "node bin/run.js --help",
15+
"prepublishOnly": "npm run test",
16+
"release": "release-it"
1517
},
1618
"keywords": [
1719
"imap",
@@ -21,8 +23,33 @@
2123
"bulk",
2224
"cli"
2325
],
24-
"author": "",
26+
"author": {
27+
"name": "Farhan Brillan Widyakirana",
28+
"email": "fbrillanw@gmail.com",
29+
"url": "https://github.com/k1rana"
30+
},
2531
"license": "ISC",
32+
"repository": {
33+
"type": "git",
34+
"url": "https://github.com/k1rana/emoo.git"
35+
},
36+
"bugs": {
37+
"url": "https://github.com/k1rana/emoo/issues"
38+
},
39+
"homepage": "https://github.com/k1rana/emoo#readme",
40+
"files": [
41+
"bin/",
42+
"src/",
43+
"README.md",
44+
"LICENSE",
45+
"package.json"
46+
],
47+
"engines": {
48+
"node": ">=18.0.0"
49+
},
50+
"publishConfig": {
51+
"access": "public"
52+
},
2653
"packageManager": "pnpm@10.8.0",
2754
"dependencies": {
2855
"@oclif/core": "^4.5.2",
@@ -47,6 +74,7 @@
4774
},
4875
"devDependencies": {
4976
"@types/node": "^18",
77+
"release-it": "^19.0.4",
5078
"ts-node": "^10.9.2"
5179
}
52-
}
80+
}

0 commit comments

Comments
 (0)