Skip to content

Commit

Permalink
Recommend "npm create @mojojs/plugin"
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 27, 2022
1 parent 56bb720 commit ce5555e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/Rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -814,14 +814,15 @@ app.get('/', async ctx => {
app.start();
```
A skeleton for a full [npm](https://npmjs.org) compatible plugin can also be generated with the `create-plugin`
command. We recommend the use of a `mojo-plugin-*` naming prefix to make the package easier to identify.
A skeleton for a full [npm](https://npmjs.org) compatible plugin can also be generated with the command
`npm create @mojojs/plugin`. We recommend the use of a `mojo-plugin-*` naming prefix to make the package easier to
identify.
```
$ mkdir mojo-plugin-caching-helpers
$ cd mojo-plugin-caching-helpers
$ npm install @mojojs/core
$ npx mojo create-plugin mojo-plugin-caching-helpers
$ npm create @mojojs/plugin -- mojo-plugin-caching-helpers
$ npm install
```
The generated test file `test/basic.js` uses [tap](https://www.npmjs.com/package/tap) by default and contains enough
Expand Down

0 comments on commit ce5555e

Please sign in to comment.