extension-create 2.0.0-alpha.0 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# extension-create
|
|
2
2
|
|
|
3
3
|
> The **create** part of [Extension.js](https://github.com/cezaraugusto/extension). Available as a standalone package.
|
|
4
4
|
|
|
@@ -7,19 +7,21 @@ This package stores all logic needed by Extension.js to create new projects.
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
yarn add
|
|
10
|
+
yarn add extension-create
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```js
|
|
16
|
-
import
|
|
16
|
+
import {extensionCreate} from 'extension-create'
|
|
17
17
|
|
|
18
18
|
async function createNewExtension () {
|
|
19
|
-
await
|
|
19
|
+
await extensionCreate(
|
|
20
20
|
projectName: /* string (required) */,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
{
|
|
22
|
+
/* string - Template name or URL. Defaults to 'init' */
|
|
23
|
+
template
|
|
24
|
+
}
|
|
23
25
|
)
|
|
24
26
|
}
|
|
25
27
|
|