@svrx/create-plugin
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.0.11](https://github.com/svrxjs/svrx-create-plugin/compare/v0.0.10...v0.0.11) (2019-10-09) | ||
### [0.0.10](https://github.com/svrxjs/svrx-create-plugin/compare/v0.0.9...v0.0.10) (2019-09-27) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@svrx/create-plugin", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Initialize a svrx plugin by running one command.", | ||
@@ -5,0 +5,0 @@ "bin": "./bin/index.js", |
@@ -17,10 +17,6 @@ # @svrx/create-plugin | ||
npm init @svrx/plugin | ||
# Publish npm package with scope | ||
# npm init @svrx/plugin --scope=<scope-name> | ||
``` | ||
Publish as scoped npm package: | ||
```bash | ||
npm init @svrx/plugin --scope=<scope-name> | ||
``` | ||
- yarn | ||
@@ -30,10 +26,6 @@ | ||
yarn create @svrx/plugin | ||
# Publish npm package with scope | ||
# yarn create @svrx/plugin --scope=<scope-name> | ||
``` | ||
Publish as scoped npm package: | ||
```bash | ||
yarn create @svrx/plugin --scope=<scope-name> | ||
``` | ||
#### Test with plugin | ||
@@ -40,0 +32,0 @@ |
/* globals svrx */ | ||
// Ref: https://docs.svrx.io/en/contribute/plugin.html#client | ||
// Ref: https://docs.svrx.io/en/plugin/contribution.html#client | ||
const { io, events, config } = svrx; | ||
// TODO |
module.exports = { | ||
// Ref: https://docs.svrx.io/en/contribute/plugin.html#schema | ||
// Ref: https://docs.svrx.io/en/plugin/contribution.html#schema | ||
configSchema: {},<% if (pluginType !== 'server') { %> | ||
@@ -13,3 +13,3 @@ | ||
hooks: { | ||
// Ref: https://docs.svrx.io/en/contribute/plugin.html#server | ||
// Ref: https://docs.svrx.io/en/plugin/contribution.html#server | ||
async onCreate({ middleware, injector, events, router, config, logger, io }) { | ||
@@ -16,0 +16,0 @@ // TODO |
18048
44