-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from yoloforks/setup-monorepository
- Loading branch information
Showing
43 changed files
with
2,690 additions
and
697 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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,12 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "master", | ||
"updateInternalDependencies": "minor", | ||
"bumpVersionsWithWorkspaceProtocolOnly": true, | ||
"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,54 @@ | ||
name: NPM Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
cache-and-install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
id: pnpm-install | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build packages | ||
run: pnpm build | ||
|
||
- name: Publish packages | ||
shell: bash | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}"" > ~/.npmrc | ||
pnpm -r --filter='./packages/*' publish --access public --provenance |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist | ||
node_modules | ||
.vscode | ||
.turbo | ||
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,2 @@ | ||
provenance=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,12 @@ | ||
node_modules | ||
dist | ||
coverage | ||
.turbo | ||
.github | ||
.vscode | ||
.changeset | ||
*.log* | ||
*.log | ||
*.yaml | ||
*.yml | ||
*.md |
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 @@ | ||
{ | ||
"typescript.preferences.importModuleSpecifierEnding": "js" | ||
} |
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 |
---|---|---|
@@ -1,46 +1,30 @@ | ||
{ | ||
"name": "xml-locales", | ||
"version": "1.0.0", | ||
"name": "xml-locales-workspaces", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "Tool for locales in xml files", | ||
"main": "src/index.js", | ||
"bin": { | ||
"xml-locales": "src/index.js" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"start": "pnpm build && node dist/bin.mjs --help", | ||
"dev": "tsup --watch", | ||
"build": "tsup", | ||
"type-check": "tsc --noEmit", | ||
"dev": "turbo run dev --filter=./packages/*", | ||
"build": "turbo run build --filter=./packages/*", | ||
"test": "pnpm build && vitest run --coverage", | ||
"test:watch": "vitest --ui --watch --coverage", | ||
"format": "prettier --write **/*.{js,ts,tsx,json}", | ||
"test": "vitest", | ||
"test:ui": "vitest --ui", | ||
"test:run": "vitest run" | ||
"changeset": "changeset" | ||
}, | ||
"keywords": [ | ||
"xml-locales", | ||
"xml", | ||
"locales", | ||
"tool", | ||
"cli-tool" | ||
], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@pisyukaev/prettier-config": "^3.2.1", | ||
"@pisyukaev/tsconfig": "^2.0.1", | ||
"@types/node": "^20.4.2", | ||
"nodemon": "^3.0.1", | ||
"prettier": "^2.8.8", | ||
"ts-node": "^10.9.1", | ||
"tsup": "^7.1.0", | ||
"typescript": "^5.1.6", | ||
"vitest": "^0.34.3" | ||
}, | ||
"dependencies": { | ||
"@inquirer/prompts": "^3.0.2", | ||
"@types/yargs": "^17.0.24", | ||
"fast-xml-parser": "^4.2.7", | ||
"xml-formatter": "^3.5.0", | ||
"yargs": "^17.7.2" | ||
"@changesets/cli": "2.26.2", | ||
"@pisyukaev/prettier-config": "3.3.2", | ||
"@pisyukaev/tsconfig": "2.0.1", | ||
"@types/node": "20.9.3", | ||
"@vitest/coverage-v8": "0.34.6", | ||
"@vitest/ui": "0.34.6", | ||
"tsup": "8.0.1", | ||
"turbo": "1.10.16", | ||
"typescript": "5.3.2", | ||
"vite": "5.0.0", | ||
"vitest": "0.34.6" | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"name": "@xml-locales/cli", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"bin": { | ||
"xml-locales": "./dist/index.js" | ||
}, | ||
"keywords": [ | ||
"xml-locales", | ||
"xml", | ||
"locales", | ||
"tool", | ||
"cli-tool" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "vitest run --coverage", | ||
"test:watch": "vitest --ui --watch --coverage" | ||
}, | ||
"dependencies": { | ||
"@inquirer/prompts": "3.3.0", | ||
"@types/yargs": "17.0.32", | ||
"xml-locales": "workspace:0.0.0", | ||
"yargs": "17.7.2" | ||
} | ||
} |
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
5 changes: 2 additions & 3 deletions
5
src/commands/addString.ts → packages/cli/src/commands/addString.ts
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
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
5 changes: 2 additions & 3 deletions
5
src/commands/delString.ts → packages/cli/src/commands/delString.ts
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
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
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,8 @@ | ||
import { defineProject } from 'vitest/config'; | ||
|
||
export default defineProject({ | ||
test: { | ||
name: 'cli', | ||
environment: 'node' | ||
} | ||
}); |
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,33 @@ | ||
{ | ||
"name": "xml-locales", | ||
"description": "Tool for locales in xml files", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"keywords": [ | ||
"xml-locales", | ||
"xml", | ||
"locales" | ||
], | ||
"types": "./dist/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"utils": [ | ||
"./dist/utils/index.d.ts" | ||
] | ||
} | ||
}, | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./utils": "./dist/utils/index.js" | ||
}, | ||
"scripts": { | ||
"dev": "tsup --watch", | ||
"build": "tsup", | ||
"test": "vitest run --coverage", | ||
"test:watch": "vitest --ui --watch --coverage" | ||
}, | ||
"dependencies": { | ||
"fast-xml-parser": "4.3.2", | ||
"xml-formatter": "3.6.0" | ||
} | ||
} |
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 @@ | ||
export * from './modifiers/sort.js'; | ||
export * from './modifiers/add.js'; | ||
export * from './modifiers/change.js'; | ||
export * from './modifiers/delete.js'; |
Oops, something went wrong.