Skip to content

Commit

Permalink
Refactor project structure (#47)
Browse files Browse the repository at this point in the history
* refactor: modify keywords on pkg json

* refactor: remove exec build

* refactor: migrate ts-jest to swc jest

* refactor: drop support node 16 for ci

* chore: remove funding yml
  • Loading branch information
devjiwonchoi authored Jan 24, 2024
1 parent e515711 commit cead056
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 651 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/node_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18, 20]

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.9.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand All @@ -33,5 +31,5 @@ jobs:
env:
NODE_ENV: test
run: |
pnpm build:src
pnpm build
pnpm test
37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"name": "po2mo",
"version": "1.4.0",
"description": "po to mo, it's simple.",
"description": "PO to MO, it's simple.",
"license": "MIT",
"main": "./dist/index.js",
"bin": "./dist/bin/cli.js",
"types": "./dist/index.d.ts",
"scripts": {
"build:exec": "pkg . --out-path exec --targets node18-linux-x64,node18-macos-x64,node18-win-x64 --overwrite",
"build:src": "bunchee",
"build": "pnpm run build:src && pnpm run build:exec",
"clean": "rm -rf dist",
"build": "bunchee",
"test": "jest"
},
"dependencies": {
Expand All @@ -18,36 +16,37 @@
"picocolors": "^1.0.0"
},
"devDependencies": {
"@swc/core": "^1.3.105",
"@swc/jest": "^0.2.31",
"@types/gettext-parser": "^4.0.4",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.5",
"bunchee": "^4.4.1",
"jest": "^29.7.0",
"pkg": "^5.8.1",
"ts-jest": "^29.1.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
},
"files": [
"dist"
],
"jest": {
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
},
"testEnvironment": "node",
"preset": "ts-jest"
"testTimeout": 10000,
"verbose": true
},
"author": "Jiwon Choi",
"repository": "[email protected]:devjiwonchoi/po2mo.git",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/devjiwonchoi"
},
"license": "MIT",
"repository": "https://github.com/devjiwonchoi/po2mo.git",
"keywords": [
"gettext",
"po2mo",
"po",
"mo",
"po2mo",
"gettext-parser",
"converter"
]
"gettext",
"i18n",
"l10n",
"translate"
],
"packageManager": "[email protected]"
}
Loading

0 comments on commit cead056

Please sign in to comment.