-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
17 additions
and
39 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 |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
## Development workflow | ||
|
||
The project uses as `npm` as the package manager. | ||
The project uses `yarn` as the package manager. | ||
|
||
```shell | ||
git clone [email protected]:autometrics-dev/autometrics-ts.git | ||
cd autometrics-ts | ||
npm install | ||
yarn | ||
``` | ||
|
||
### Overview | ||
|
@@ -41,36 +41,6 @@ yarn dev:lib | |
yarn dev:plugin | ||
``` | ||
|
||
#### Use examples | ||
|
||
Use the examples in `examples/` to test your changes. You will need to reinstall | ||
autometrics packages to use the local development ones to see the changes | ||
reflected. | ||
|
||
Example with the `express` app: | ||
|
||
1. Remove the official npm released autometrics packages | ||
|
||
```shell | ||
npm uninstall @autometrics/autometrics @autometrics/typescript-plugin | ||
``` | ||
|
||
2. Install local versions of autometrics | ||
|
||
```shell | ||
# from examples/express | ||
npm install ../../packages/autometrics/ | ||
npm install -D ../../packages/typescript-plugin/ | ||
``` | ||
|
||
Now every time you will save and rebuild any of the packages they will update in | ||
your example repo automatically (you won't need to re-run `npm install`) | ||
|
||
Open the `express` app with your editor, e.g.: VSCode - `code examples/express/` | ||
|
||
This is now your "lab" environment for testing out how the library or the plugin | ||
work and feel. | ||
|
||
#### Debugging TypeScript plugin | ||
|
||
0. Run `Launch VSCode` and `Attach VSCode` in debugger | ||
|
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
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