-
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.
refactor: migrate scripts to use wireit for improved build process (#2)
* feat: migrate scripts to use wireit for improved build process * refactor: add write permission for publish-npm workflow * chore: enable wireit logger --------- Co-authored-by: S. Amir Mohammad Najafi <[email protected]>
- Loading branch information
Showing
8 changed files
with
495 additions
and
47 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
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
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 |
---|---|---|
|
@@ -38,3 +38,5 @@ dist | |
.env | ||
|
||
.tmp | ||
|
||
.wireit |
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 |
---|---|---|
|
@@ -78,6 +78,7 @@ | |
"toman", | ||
"tsbuildinfo", | ||
"vazirmatn", | ||
"wireit", | ||
"اپلیکیشن", | ||
"بندیل", | ||
"سافاری", | ||
|
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 |
---|---|---|
|
@@ -16,26 +16,15 @@ | |
"packages/*" | ||
], | ||
"scripts": { | ||
"b": "yarn run build", | ||
"build": "lerna run build", | ||
"c": "yarn run clean", | ||
"cb": "yarn run clean && yarn run build", | ||
"clean": "git add -v . && git clean -d -x -f --exclude=node_modules --exclude='*.env' --exclude=_data --exclude='.pnp*' --exclude=.yarn", | ||
"f": "yarn run format", | ||
"format": "yarn run format:prettier && yarn run format:eslint", | ||
"format:eslint": "yarn run lint:es --fix", | ||
"format:prettier": "prettier . --ignore-path .prettierignore --write", | ||
"l": "yarn run lint", | ||
"lint": "yarn run lint:es & yarn run lint:ts", | ||
"lint:es": "eslint . --config .eslintrc.json --ext .ts --ext .js --ext .cjs --ext .mjs --ignore-path .prettierignore", | ||
"lint:ts": "lerna run build:ts", | ||
"publish": "lerna publish from-package", | ||
"pull": "git pull", | ||
"release": "lerna version", | ||
"rl": "yarn run pull && yarn run clean && yarn run build && yarn run test && yarn run release", | ||
"t": "yarn run test", | ||
"test": "lerna run test", | ||
"upd": "yarn set version latest; yarn up '*'; yarn up '*' -R; yarn dlx @yarnpkg/sdks vscode; yarn dedupe" | ||
"build": "wireit", | ||
"clean": "wireit", | ||
"format": "wireit", | ||
"lint": "wireit", | ||
"lint:es": "wireit", | ||
"publish": "wireit", | ||
"release": "wireit", | ||
"test": "wireit", | ||
"upd": "yarn set version latest && yarn up '*' && yarn up '*' -R && yarn dlx @yarnpkg/sdks vscode && yarn dedupe" | ||
}, | ||
"devDependencies": { | ||
"@lerna-lite/changed": "^3.10.1", | ||
|
@@ -60,7 +49,8 @@ | |
"prettier": "^3.4.2", | ||
"prettier-plugin-packagejson": "^2.5.6", | ||
"prettier-plugin-tailwindcss": "^0.6.9", | ||
"typescript": "^5.6.3" | ||
"typescript": "^5.6.3", | ||
"wireit": "^0.14.9" | ||
}, | ||
"dependenciesMeta": { | ||
"[email protected]": { | ||
|
@@ -71,5 +61,60 @@ | |
"engines": { | ||
"node": ">=18.16.0", | ||
"yarn": ">=4.0.0" | ||
}, | ||
"wireit": { | ||
"build": { | ||
"command": "lerna run build" | ||
}, | ||
"clean": { | ||
"command": "git add -v . && git clean -d -x -f --exclude=node_modules --exclude='*.env' --exclude=_data --exclude='.pnp*' --exclude=.yarn" | ||
}, | ||
"format": { | ||
"dependencies": [ | ||
"format:eslint" | ||
] | ||
}, | ||
"format:eslint": { | ||
"command": "yarn run lint:es -- --fix", | ||
"dependencies": [ | ||
"format:prettier" | ||
] | ||
}, | ||
"format:prettier": { | ||
"command": "prettier . --ignore-path .prettierignore --write" | ||
}, | ||
"lint": { | ||
"dependencies": [ | ||
"lint:es", | ||
"lint:ts" | ||
] | ||
}, | ||
"lint:es": { | ||
"command": "eslint . --config .eslintrc.json --ext .ts --ext .js --ext .cjs --ext .mjs --ignore-path .prettierignore --cache-location .eslintcache --cache --color" | ||
}, | ||
"lint:ts": { | ||
"command": "tsc --build" | ||
}, | ||
"publish": { | ||
"command": "lerna publish from-package" | ||
}, | ||
"release": { | ||
"command": "gh workflow list --json id,name,path | jq -r '.[] | select(.path == \".github/workflows/release.yaml\") | .id' | xargs -r gh workflow run", | ||
"dependencies": [ | ||
"push" | ||
] | ||
}, | ||
"pull": { | ||
"command": "git pull -v" | ||
}, | ||
"push": { | ||
"command": "git push -v", | ||
"dependencies": [ | ||
"pull" | ||
] | ||
}, | ||
"test": { | ||
"command": "lerna run test" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.