Skip to content

Commit 6f5af88

Browse files
committed
Vite support and migration to TypeScript/React
1 parent 096b055 commit 6f5af88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2585
-900
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/workflows/CI.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
######################################################################
2+
# Copyright (c) 2022 Silvio Clecio (silvioprog) <silvioprog@gmail.com>
3+
#
4+
# SPDX-License-Identifier: MIT
5+
######################################################################
6+
7+
name: CI/CD
8+
9+
on: [push, pull_request]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [16.x]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Build
28+
run: |
29+
yarn
30+
yarn build
31+
32+
- name: Publish
33+
uses: softprops/action-gh-release@v1
34+
if: startsWith(github.ref, 'refs/tags/')
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
files: ./dist/*.zip

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"default": true
3+
}

README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,42 @@ Install this extension from **[Web Store][web-store-url]**.
1717

1818
Libraries used in this project:
1919

20-
- [Bootstrap v5][bootstrap-url]
20+
- [Bootstrap][bootstrap-url]
2121
- [jsPDF][jspdf-url]
22-
- [Vanilla JS Datepicker][vanillajs-datepicker-url]
22+
- [React Datepicker][react-datepicker-url]
23+
24+
## Build
25+
26+
To build the extension for production:
27+
28+
```bash
29+
yarn
30+
yarn build
31+
```
32+
33+
and for development:
34+
35+
```bash
36+
yarn
37+
yarn dev
38+
```
2339

2440
## Wish list
2541

26-
- [ ] Export/import options
27-
- [ ] Migration to TypeScript
28-
- [ ] Webpack, Rollup or Vite support
42+
- [x] Vite support
43+
- [x] Migration to React
44+
- [x] Service/value customization per invoice
45+
- [x] Export/import options
46+
- [x] CI/CD
47+
- [ ] Tests
48+
- [ ] Multiple services
49+
- [ ] Invoice reminder
50+
- [ ] Invoice expression
2951

3052
[web-store-url]: https://chrome.google.com/webstore/detail/invoice-generator/obdabdocagpfclncklefebhhgggkbbnk 'Invoice generator Web Store'
31-
[screenshot-01-url]: https://user-images.githubusercontent.com/1456829/161170913-4aba03ff-fff7-4644-b218-56b5edea1844.png 'Invoice generator'
32-
[screenshot-02-url]: https://user-images.githubusercontent.com/1456829/160723446-7a380782-6a8b-42ca-aa54-e8f994b40787.png 'Invoice generator options'
33-
[invoice-generator-logo-url]: https://user-images.githubusercontent.com/1456829/160723531-b3ca1905-5f77-443c-9360-d4b4f8b4005d.png 'Invoice generator logo'
34-
[bootstrap-url]: https://github.com/twbs/bootstrap 'Bootstrap v5 repository'
53+
[screenshot-01-url]: https://github.com/risoflora/invoice-generator/raw/master/contrib/screen-shot-1.png 'Invoice generator'
54+
[screenshot-02-url]: https://github.com/risoflora/invoice-generator/raw/master/contrib/screen-shot-2.png 'Invoice generator options'
55+
[invoice-generator-logo-url]: https://github.com/risoflora/invoice-generator/raw/master/contrib/logo.png 'Invoice generator logo'
56+
[bootstrap-url]: https://github.com/twbs/bootstrap 'Bootstrap repository'
3557
[jspdf-url]: https://github.com/parallax/jsPDF 'jsPDF repository'
36-
[vanillajs-datepicker-url]: https://github.com/mymth/vanillajs-datepicker 'Vanilla JS Datepicker repository'
58+
[react-datepicker-url]: https://github.com/Hacker0x01/react-datepicker 'React Datepicker repository'

contrib/logo.png

16.5 KB
Loading

contrib/screen-shot-1.png

203 KB
Loading

contrib/screen-shot-2.png

18.9 KB
Loading

dateInput.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

dateInput.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)