You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-8
Original file line number
Diff line number
Diff line change
@@ -48,26 +48,34 @@ The documentation is published at http://esri.github.io/arcgis-rest-js/ (source
48
48
49
49
### Instructions
50
50
51
-
You can install dependencies (and bootstrap lerna) by cloning the repository and running:
51
+
You can install dependencies by cloning the repository and running:
52
52
53
53
```bash
54
54
npm install
55
55
```
56
56
57
57
Afterward, for a list of all available commands run `npm run`.
58
58
59
-
Some useful commands include:
59
+
For all packages
60
60
61
-
-`npm test` runs _all_ the tests and confirms the API is functioning as expected.
62
-
- There is also a `Debug Node Tests` configuration in the `.vscode/launch.json` which will run the Node tests in the VS Code debugger.
63
-
-`npm run docs:serve` will run the documentation site locally at http://localhost:3000/arcgis-rest-js/
64
-
-`npm run build` will created UMD bundles for _all_ the packages
65
-
-`npm run dev -- <esm|node|umd> <glob>` will re-run the specified build type anytime the source code changes. Example: `npm run dev -- umd @esri/*`
61
+
-`npm run build` - builds all distributions of every package with `ultra`, inside each package builds are done in parallel with `npm-run-all`. Output is errors only.
62
+
-`npm run build:esm`, `npm run build:cjs`, `npm run build:bundled` - as as the above but only one of our target distributions.
63
+
-`npm run dev:esm`, `npm run dev:cjs`, `npm run dev:bundled` - runs the appropriate watch command in all packages.
64
+
65
+
For a specific package
66
+
67
+
-`npm run build -w @esri/arcgis-rest-request` - run all builds in a specific workspace
68
+
-`npm run dev -w @esri/arcgis-rest-request` - run all dev commands in a specific workspace
69
+
-`npm run build:esm -w @esri/arcgis-rest-request` - run the esm build in a specific workspace
70
+
-`npm run dev:esm -w @esri/arcgis-rest-request` - run the esm dev command in a specific workspace
71
+
-`npm run build:cjs -w @esri/arcgis-rest-request` - run the common js build in a specific workspace
72
+
-`npm run dev:cjs -w @esri/arcgis-rest-request` - run the common js dev command in a specific workspace
73
+
-`npm run build:bundled -w @esri/arcgis-rest-request` - run the rollup build in a specific workspace
74
+
-`npm run dev:bundled -w @esri/arcgis-rest-request` - run the rollup dev command in a specific workspace
66
75
67
76
### Packages
68
77
69
78
-[`@esri/arcgis-rest-request`](./packages/arcgis-rest-request/) - Underpins other packages and supports making low-level requests.
70
-
-[`@esri/arcgis-rest-auth`](./packages/arcgis-rest-auth) - Provides methods for authenticating named users and applications.
71
79
-[`@esri/arcgis-rest-portal`](./packages/arcgis-rest-portal) - Methods for working with ArcGIS Online/Enterprise content and users.
72
80
-[`@esri/arcgis-rest-feature-layer`](./packages/arcgis-rest-feature-layer) - Functions for querying and editing features inside of hosted feature layers.
73
81
-[`@esri/arcgis-rest-service-admin`](./packages/arcgis-rest-service-admin) - Functions for administering hosted feature services.
Copy file name to clipboardExpand all lines: demos/ago-node-cli/README.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,10 @@ This project uses the `commander` module, which streamlines the creation of node
8
8
9
9
### Installing
10
10
11
-
Like all the other demo apps, run `npm run bootstrap` from the root.
11
+
Like all the other demo apps, run `npm run build` from the root.
12
12
13
13
### Running
14
+
14
15
If you use this demo as a starting point for your own command line package, you would publish it to npm, then on the target systems run `npm install <your-cli-package>`, and it would be available as a command.
15
16
16
17
But, this is demo code, and thus the package is not "installed" via `npm install ...`, before we can call it as `ago <command> <query>` we need to run `npm link` in the `/demos/ago-node-cli` folder. After you do that, the command should work.
@@ -19,9 +20,9 @@ Here is a post with information on creating node command line tools: [A Guide to
19
20
20
21
### Commands
21
22
22
-
| command | description | example |
23
-
| --- | --- | --- |
24
-
|`ago search <query>`| search for items |`ago search water`|
0 commit comments