@arcgis/create 5.1.0-next.4 → 5.1.0-next.40

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 (4) hide show
  1. package/README.md +30 -27
  2. package/bin/index.js +2 -2
  3. package/dist/init.js +9551 -3838
  4. package/package.json +2 -2
package/README.md CHANGED
@@ -1,42 +1,45 @@
1
- # @arcgis/create
1
+ # ArcGIS Maps SDK for JavaScript - Create CLI
2
2
 
3
- A CLI tool for quickly creating an ArcGIS web application using web components.
3
+ The ArcGIS Maps SDK for JavaScript provides this CLI tool to streamline the process of creating a new web mapping application.
4
4
 
5
- - [Usage](#usage)
6
- - [Commands](#commands)
5
+ ## Requirements
7
6
 
8
- ## Usage
7
+ - Node.js v22.21.0 or higher
8
+ - [git](https://git-scm.com/) installed and available in your system path
9
9
 
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.
10
+ ## Usage
11
11
 
12
- 1. run via npm init
12
+ The package is compatible with the [npm init command](https://docs.npmjs.com/cli/v8/commands/npm-init).
13
13
 
14
- - `npm init @arcgis`
14
+ To get started, run `npm init @arcgis`, and you will be immediately prompted to initialize a new ArcGIS web application, or run using [npx](https://docs.npmjs.com/cli/v8/commands/npx):
15
15
 
16
- 2. run via npx
16
+ ```bash
17
+ npx @arcgis/create
18
+ # Initializes a new React application named "my-arcgis-app"
19
+ npx @arcgis/create -n my-arcgis-app -t react
20
+ ```
17
21
 
18
- - `npx @arcgis/create`
19
- - `npx @arcgis/create -- -n my-app -t react`
22
+ ## CLI options
20
23
 
21
- ## Commands
24
+ ```bash
25
+ -n, --name <name> Name of the project
26
+ -t, --template <template> Template to use (react, vite, cdn, vue, angular, etc.)
27
+ ```
22
28
 
23
- - [`create-arcgis init`](#init)
29
+ ## Resources
24
30
 
25
- ### `init`
31
+ - [ArcGIS blog](https://blogs.esri.com/esri/arcgis/tag/javascript/)
32
+ - [System Requirements](https://developers.arcgis.com/javascript/latest/system-requirements/)
33
+ - [Terms of Use](https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use)
34
+ - [Licensing](https://developers.arcgis.com/javascript/latest/licensing/)
35
+ - [Working with `next` versions](https://github.com/Esri/feedback-js-api-next/blob/main/README.md)
26
36
 
27
- Initialize a new project from a sample from the code samples repository
37
+ ## Issues
28
38
 
29
- ```text
30
- Usage: init [options] [command]
39
+ - General questions about using this package or the ArcGIS Maps SDK for JavaScript? See the [Esri developer community](https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript).
40
+ - [Technical support](https://support.esri.com/).
31
41
 
32
- Options:
33
- -V, --version output the version number
34
- -n, --name <name> Name of the project
35
- -t, --template <template> Template to use (react, angular, vanilla, vite, vue, or webpack)
36
- -p, --packages <packages> Additional packages to add (charts, coding)
37
- -h, --help display help for command
42
+ ## License
38
43
 
39
- Commands:
40
- init Initialize a new arcgis project
41
- help [command] display help for command
42
- ```
44
+ This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package, and at https://js.arcgis.com/5.0/LICENSE.txt.
45
+ For third party notices, see https://js.arcgis.com/5.0/third-party-notices.txt.
package/bin/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const majorNodeVersion = Number.parseInt(process.version.toString().replace("v", "").split(".")[0]);
4
- if (majorNodeVersion < 18) {
5
- console.error("You need to use Node.js version 18 or higher to run this program.");
4
+ if (majorNodeVersion < 22) {
5
+ console.error("You need to use Node.js version 22 or higher to run this program.");
6
6
  process.exit(1);
7
7
  }
8
8