generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 38
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 #273 from aidanm3341/publish-npm
update readme and create developer guide
- Loading branch information
Showing
2 changed files
with
94 additions
and
36 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,28 @@ | ||
# Developing the CALM CLI | ||
|
||
## Building & linking the CLI | ||
|
||
Clone the project and run the following commands: | ||
|
||
```shell | ||
npm install | ||
npm run build | ||
npx link | ||
``` | ||
|
||
When you've made a change to the CLI and want to test it out, you can rerun the build and link steps. | ||
This will make the CLI available on your local `node_modules` path. | ||
|
||
`npx link` uses the `link` package to symlink the `calm` executable in `node_modules/.bin` to your locally-built CLI. | ||
|
||
Note: you can also use `npm link` but this installs to your global package registry. | ||
This will make the executable available as just `calm`, but will pollute your global NPM profile and may require `sudo` depending on your OS. | ||
|
||
## Additional Commands | ||
|
||
Some other commands that you might find useful during development include: | ||
|
||
- `npm run lint` to point out any lint errors in the code | ||
- `npm run test` to run the tests against the code base | ||
|
||
You can find the full list by examining the `package.json` |
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