Skip to content

Commit

Permalink
chore: project restructure (#20)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: v1.0.0 release
  • Loading branch information
sahinvardar authored Nov 23, 2023
1 parent 96b6e67 commit eaea9ba
Show file tree
Hide file tree
Showing 27 changed files with 2,511 additions and 293 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish to NPM
on:
release:
types: [created]
name: build-test
on: push
jobs:
publish:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -15,6 +13,3 @@ jobs:
- run: pnpm install
- run: pnpm build
- run: pnpm test
- run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release
on:
push:
branches: [release]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
- run: pnpm install
- run: pnpm build
- run: pnpm test
- run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"singleQuote": true,
"printWidth": 120,
"arrowParens": "avoid",
"plugins": ["prettier-plugin-organize-imports"],
"trailingComma": "none"
}
55 changes: 34 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,64 @@
{
"name": "@vardario/svelte-i18next",
"version": "0.1.19",
"description": "",
"version": "0.0.0-development",
"description": "CLI and library to handle i18next translations in SvelteKit",
"license": "MIT",
"author": "Sahin Vardar",
"repository": {
"type": "git",
"url": "[email protected]:vardario/svelte-i18next.git"
},
"type": "module",
"main": "lib/index.js",
"bin": {
"svelte-i18next": "./bin/cli.js"
},
"files": [
"/lib",
"!/**/*.map",
"!/**/*.test.*"
"lib"
],
"scripts": {
"build": "tsc --build",
"format": "prettier --plugin-search-dir . --write . && prettier-package-json --write",
"preinstall": "npx only-allow pnpm",
"repo-clean": "git clean -xdf -e .env",
"test": "vitest run",
"watch": "tsc --watch"
},
"dependencies": {
"commander": "^10.0.1"
},
"peerDependencies": {
"@sveltejs/kit": "1.x",
"@vardario/svelte-ast-printer": "1.x",
"acorn": "8.x",
"astring": "1.x",
"csv-parse": "5.x",
"csv-stringify": "6.x",
"svelte": "4.x"
},
"devDependencies": {
"@sveltejs/kit": "^1.20.4",
"@types/estree": "^1.0.1",
"@types/lodash": "^4.14.195",
"@vardario/svelte-ast-printer": "^0.1.7",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vardario/svelte-ast-printer": "^1.0.0",
"acorn": "^8.8.2",
"astring": "^1.8.6",
"commander": "^10.0.1",
"csv-parse": "^5.4.0",
"csv-stringify": "^6.4.0",
"lodash": "^4.17.21",
"svelte": "3.59.1",
"typescript": "^5.0.4"
},
"devDependencies": {
"@types/estree": "^1.0.1",
"@types/node": "^20.2.5",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"lint-staged": "^15.1.0",
"lodash": "^4.17.21",
"prettier": "^3.1.0",
"prettier-package-json": "^2.8.0",
"prettier-plugin-organize-imports": "^3.2.2",
"semantic-release": "^22.0.8",
"svelte": "4.2.7",
"typescript": "^5.0.4",
"vitest": "^0.31.1"
},
Expand All @@ -50,9 +67,5 @@
"*": "prettier --write --ignore-unknown",
"package.json": "prettier-package-json --write"
},
"repository": {
"type": "git",
"url": "[email protected]:vardario/svelte-i18next.git"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]"
}
Loading

0 comments on commit eaea9ba

Please sign in to comment.