@arcgis/create 4.34.0-next.9 → 4.34.0-next.91
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 +4 -4
- package/bin/index.js +5 -1
- package/dist/init.js +4223 -4475
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A CLI tool for quickly creating an ArcGIS web application using web components.
|
|
|
5
5
|
- [Usage](#usage)
|
|
6
6
|
- [Commands](#commands)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Usage
|
|
9
9
|
|
|
10
10
|
The package is created to be compatible with the [npm init command](https://docs.npmjs.com/cli/v8/commands/npm-init). This will allow users to run `npm init @arcgis`, and immediately be prompted to initialize a new ArcGIS web application.
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ The package is created to be compatible with the [npm init command](https://docs
|
|
|
18
18
|
- `npx @arcgis/create`
|
|
19
19
|
- `npx @arcgis/create -- -n my-app -t react`
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
## Commands
|
|
22
22
|
|
|
23
23
|
- [`create-arcgis init`](#init)
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
### `init`
|
|
26
26
|
|
|
27
27
|
Initialize a new project from a sample from the code samples repository
|
|
28
28
|
|
|
29
|
-
```
|
|
29
|
+
```text
|
|
30
30
|
Usage: init [options] [command]
|
|
31
31
|
|
|
32
32
|
Options:
|
package/bin/index.js
CHANGED
|
@@ -12,7 +12,11 @@ if (majorNodeVersion < 18) {
|
|
|
12
12
|
* the third argument is the first argument to the script, which we hardcode to "init" if the user is running `create-arcgis`
|
|
13
13
|
* this makes it so that `npm init @arcgis` will work with no arguments from the user
|
|
14
14
|
*/
|
|
15
|
-
if (
|
|
15
|
+
if (
|
|
16
|
+
process.argv.some((arg) => arg.includes("create")) &&
|
|
17
|
+
!process.argv.includes("--help") &&
|
|
18
|
+
!process.argv.includes("-h")
|
|
19
|
+
) {
|
|
16
20
|
process.argv.splice(2, 0, "init");
|
|
17
21
|
}
|
|
18
22
|
|