2022-10-14 08:26:06 +03:00
|
|
|
# Pathfinder
|
2022-10-17 20:31:40 +03:00
|
|
|
|
2022-10-19 13:10:20 +03:00
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- Git
|
|
|
|
- Node: any 12.x version starting with v12.0.0 or greater
|
|
|
|
- Pnpm: See [how to installation](https://pnpm.io/installation)
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
```
|
|
|
|
pnpm dev
|
|
|
|
```
|
|
|
|
|
|
|
|
Open https://localhost:3000 in browser.
|
|
|
|
|
|
|
|
|
2022-10-17 20:31:40 +03:00
|
|
|
## Build
|
|
|
|
|
2022-10-19 13:10:20 +03:00
|
|
|
```
|
|
|
|
pnpm build
|
|
|
|
```
|
|
|
|
|
2022-10-17 20:31:40 +03:00
|
|
|
### Replace Modules
|
2022-10-19 13:10:20 +03:00
|
|
|
|
|
|
|
You can create `module-resolve.js` in project root dir to replace some package to better implements.
|
|
|
|
|
|
|
|
There is a template file in `scripts/module-resolve/module-resolve.tmpl.js`.
|
|
|
|
|
|
|
|
Example:
|
2022-10-17 20:31:40 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
function resolve(pkg) {
|
2022-10-19 13:10:20 +03:00
|
|
|
if (pkg.dependencies && pkg.dependencies['@toeverything/pathfinder-logger']) {
|
|
|
|
pkg.dependencies['@toeverything/pathfinder-logger'] = '^0.0.1';
|
2022-10-17 20:31:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
return pkg;
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
resolve,
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
|
|
|
***After modify/create this file, please delete the `node_modules`, then run `pnpm install` again***
|