mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [copy-webpack-plugin](https://redirect.github.com/webpack-contrib/copy-webpack-plugin) | [`^12.0.2` -> `^13.0.0`](https://renovatebot.com/diffs/npm/copy-webpack-plugin/12.0.2/13.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>webpack-contrib/copy-webpack-plugin (copy-webpack-plugin)</summary> ### [`v13.0.0`](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/blob/HEAD/CHANGELOG.md#1300-2025-02-27) [Compare Source](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/compare/v12.0.2...v13.0.0) ##### ⚠ BREAKING CHANGES - switch from `globby` and `fast-glob` to `tinyglobby` ([#​795](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/issues/795)) ([19fd937](19fd937705)) For more information please visit [`tinyglobby`](https://redirect.github.com/SuperchupuDev/tinyglobby). The breaking change only affects the developer who used these options - [`gitignore`](https://redirect.github.com/sindresorhus/globby#gitignore) and [`ignoreFiles`](https://redirect.github.com/sindresorhus/globby#gitignore) in the `globOptions` option. Please migrate to the [`ignore`](https://redirect.github.com/SuperchupuDev/tinyglobby#options) option. ##### Bug Fixes - concurrency option is limited to files now ([#​796](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/issues/796)) ([d42469c](d42469cfdc)) - the order of patterns provided by the developer is respected ##### [12.0.2](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/compare/v12.0.1...v12.0.2) (2024-01-17) ##### Bug Fixes - improve perf ([#​764](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/issues/764)) ([a7379a9](a7379a9907)) ##### [12.0.1](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/compare/v12.0.0...v12.0.1) (2024-01-11) ##### Bug Fixes - improve perf ([#​760](https://redirect.github.com/webpack-contrib/copy-webpack-plugin/issues/760)) ([55036ab](55036ab503)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
AFFiNE Monorepo Cli
Start
yarn affine -h
Run build command defined in package.json
yarn affine i18n build
# or
yarn build -p i18n
Run dev command defined in package.json
yarn affine web dev
# or
yarn dev -p i18n
Clean
yarn affine clean --dist --rust
# clean node_modules
yarn affine clean --node-modules
Init
Generate files that make the monorepo work properly, the per project codegen will not be included anymore
yarn affine init
Tricks
Define scripts to run a .ts files without --loader ts-node/esm/transpile-only
affine run will automatically inject ts-node's transpile service(swc used) for your scripts
{
"name": "@affine/demo",
"scripts": {
"dev": "node ./dev.ts"
}
}
affine @affine/demo dev
or
{
"name": "@affine/demo",
"scripts": {
"dev": "r ./src/index.ts"
},
"devDependencies": {
"@affine-tools/cli": "workspace:*"
}
}
Short your key presses
# af is also available for running the scripts
yarn af web build
by custom shell script
personally, I use 'af'
create file af in the root of AFFiNE project with the following content
#!/usr/bin/env sh
./tools/scripts/bin/runner.js affine.ts $@
or on windows:
node "./tools/cli/bin/runner.js" affine.ts %*
and give it executable permission
chmod a+x ./af
# now you can run scripts with simply
./af web build
if you want to go further, but for vscode(or other forks) only, add the following to your .vscode/settings.json
{
"terminal.integrated.env.osx": {
"PATH": "${env:PATH}:${cwd}"
},
"terminal.integrated.env.linux": {
"PATH": "${env:PATH}:${cwd}"
},
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};${cwd}"
}
}
restart all the integrated terminals and now you get:
af web build