extension-create 2.0.0-alpha.0 → 2.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/README.md +8 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @extension/create
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 @extension-create/create
10
+ yarn add extension-create
11
11
  ```
12
12
 
13
13
  ## Usage
14
14
 
15
15
  ```js
16
- import createExtension from '@extension-create/create'
16
+ import {extensionCreate} from 'extension-create'
17
17
 
18
18
  async function createNewExtension () {
19
- await createExtension(
19
+ await extensionCreate(
20
20
  projectName: /* string (required) */,
21
- workingDir /* string (defaults to process.cwd) */,
22
- template /* string - defaults to 'web' */
21
+ {
22
+ /* string - Template name or URL. Defaults to 'init' */
23
+ template
24
+ }
23
25
  )
24
26
  }
25
27
 
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=18"
10
10
  },
11
11
  "name": "extension-create",
12
- "version": "2.0.0-alpha.0",
12
+ "version": "2.0.0-alpha.1",
13
13
  "description": "The Extension.js create step",
14
14
  "main": "./dist/module.js",
15
15
  "types": "./dist/module.d.ts",