@invoicer/cli 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -1
- package/.env.example +0 -15
- package/config.json +0 -19
- package/data/last.json +0 -11
- package/index.html +0 -2584
- package/logo.svg +0 -17
- package/src/cli.ts +0 -44
- package/src/commands/clients.ts +0 -221
- package/src/commands/generate.ts +0 -379
- package/src/commands/timesheet.ts +0 -47
- package/src/core/json-store.ts +0 -33
- package/src/core/paths.ts +0 -42
- package/src/core/validators.ts +0 -168
- package/src/domain/types.ts +0 -129
- package/src/services/email.ts +0 -40
- package/src/services/invoice-number.ts +0 -46
- package/src/services/pdf-render.ts +0 -95
- package/src/services/timesheet.ts +0 -173
- package/src/utils/sanitize.ts +0 -8
- package/test/cli-wiring.test.ts +0 -25
- package/test/invoice-number.test.ts +0 -45
- package/test/timesheet.test.ts +0 -104
- package/tsconfig.json +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invoicer/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Professional invoice generator with timesheet integration and CLI support",
|
|
5
5
|
"homepage": "https://invoicer.inbrief.sh/",
|
|
6
6
|
"repository": {
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"bin": {
|
|
16
16
|
"invoicer": "./scripts/invoice.mjs"
|
|
17
17
|
},
|
|
18
|
+
"files": [
|
|
19
|
+
"scripts/",
|
|
20
|
+
"dist/",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
18
23
|
"scripts": {
|
|
19
24
|
"build": "tsc -p tsconfig.json",
|
|
20
25
|
"invoice": "npm run build && node scripts/invoice.mjs",
|
package/.env.example
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# SMTP Configuration for Email Sending
|
|
2
|
-
# Copy this file to .env and fill in your details
|
|
3
|
-
|
|
4
|
-
SMTP_HOST=smtp.gmail.com
|
|
5
|
-
SMTP_PORT=465
|
|
6
|
-
SMTP_USER=your@email.com
|
|
7
|
-
SMTP_PASS=your_app_password
|
|
8
|
-
INVOICE_FROM="Your Name <your@email.com>"
|
|
9
|
-
|
|
10
|
-
# Gmail App Password Setup:
|
|
11
|
-
# 1. Go to https://myaccount.google.com/security
|
|
12
|
-
# 2. Enable 2-Factor Authentication
|
|
13
|
-
# 3. Go to App Passwords: https://myaccount.google.com/apppasswords
|
|
14
|
-
# 4. Create app password for "Mail" on "Other (Custom name)"
|
|
15
|
-
# 5. Copy the 16-character password and use it as SMTP_PASS
|
package/config.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"client": [
|
|
3
|
-
{
|
|
4
|
-
"address": "",
|
|
5
|
-
"currency": "USD",
|
|
6
|
-
"defaultRate": 40,
|
|
7
|
-
"email": "miladezzat.f+dasix@gmail.com",
|
|
8
|
-
"name": "Dasix Inc.",
|
|
9
|
-
"payPeriodType": "Net 7"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"defaultDescription": "",
|
|
13
|
-
"from": {
|
|
14
|
-
"address": "Test",
|
|
15
|
-
"email": "miladezzat.f@gmail.com",
|
|
16
|
-
"name": "Milad"
|
|
17
|
-
},
|
|
18
|
-
"invoicePrefix": "INV"
|
|
19
|
-
}
|