-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 984a7a2
Showing
60 changed files
with
5,089 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": true, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
PNPM_VERSION: 9.6.0 | ||
NODE_VERSION: 20 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4.0.0 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run CI | ||
run: pnpm run ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm run ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
save-prefix="" | ||
engine-strict=true | ||
package-manager-strict-version=true | ||
auto-install-peers=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "never", | ||
"quickfix.biome": "explicit", | ||
"source.organizeImports.biome": "explicit", | ||
}, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# @tripouille/i18n-sync | ||
|
||
## 1.1.1 | ||
|
||
### Patch Changes | ||
|
||
- cfc523c: run tsc-alias on build | ||
|
||
## 1.1.0 | ||
|
||
### Minor Changes | ||
|
||
- f920177: export I18nCliConfig | ||
|
||
## 1.0.1 | ||
|
||
### Patch Changes | ||
|
||
- 13b055a: Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Jean-Michel G. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**i18n-cli** | ||
|
||
A CLI tool to synchronize and manage translations across multiple target files from a single source file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
}, | ||
"files": { | ||
"include": ["*.ts"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab", | ||
"lineWidth": 100 | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"performance": { | ||
"noBarrelFile": { | ||
"level": "error" | ||
} | ||
}, | ||
"correctness": { | ||
"noUndeclaredDependencies": { | ||
"level": "error" | ||
} | ||
}, | ||
"complexity": { | ||
"noExcessiveCognitiveComplexity": { | ||
"level": "warn", | ||
"options": { | ||
"maxAllowedComplexity": 20 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "@tripouille/i18n-cli", | ||
"version": "1.0.0", | ||
"description": "A CLI tool to synchronize and manage translations across multiple target files from a single source file", | ||
"keywords": [ | ||
"cli", | ||
"i18n", | ||
"translation", | ||
"localization" | ||
], | ||
"homepage": "https://github.com/Tripouille/i18n-cli", | ||
"bugs": { | ||
"url": "https://github.com/Tripouille/i18n-cli/issues" | ||
}, | ||
"author": "Jean-Michel G. <npm.body870@passinbox.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Tripouille/i18n-cli.git" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc && tsc-alias", | ||
"check": "biome check", | ||
"check:write": "biome check --write", | ||
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm", | ||
"test": "vitest", | ||
"test:run": "vitest run", | ||
"test:run-coverage": "vitest run --coverage", | ||
"test:tslint": "tsc -p ./tests/tsconfig.json", | ||
"ci": "npm run build && npm run check && npm run check-exports && npm run test:tslint && npm run test:run", | ||
"prepublishOnly": "npm run ci", | ||
"local-release": "changeset version && changeset publish", | ||
"prepare": "husky" | ||
}, | ||
"dependencies": { | ||
"chalk": "5.3.0", | ||
"commander": "12.1.0", | ||
"json-stable-stringify": "1.1.1", | ||
"valibot": "1.0.0-beta.8" | ||
}, | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "0.16.4", | ||
"@biomejs/biome": "1.9.4", | ||
"@changesets/cli": "2.27.9", | ||
"@tsconfig/strictest": "2.0.5", | ||
"@types/json-stable-stringify": "1.1.0", | ||
"@types/node": "20.17.6", | ||
"@vitest/coverage-v8": "2.1.4", | ||
"husky": "9.1.7", | ||
"tsc-alias": "1.8.10", | ||
"typescript": "5.6.3", | ||
"vitest": "2.1.4" | ||
}, | ||
"engines": { | ||
"node": ">=20", | ||
"pnpm": ">=9" | ||
}, | ||
"packageManager": "pnpm@9.6.0" | ||
} |
Oops, something went wrong.