Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
update for 4.18 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
odoe authored Dec 22, 2020
1 parent 26aa623 commit ace7cfe
Show file tree
Hide file tree
Showing 252 changed files with 1,638 additions and 16,091 deletions.
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc

This file was deleted.

15 changes: 0 additions & 15 deletions .flowconfig

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ coverage/*
yarn.lock
package-lock.json
.DS_Store
~redcup
~redcup
assets/
31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,24 @@ Commands:

## Quick Start

> default template application
> default template webpack application
```sh
arcgis create jsapi-app
```

> react template application
> rollup template application
```sh
arcgis create jsapi-react-app -t react
arcgis create jsapi-rollup-app -t rollup
```

> vue template application
> template application using CDN
```sh
arcgis create jsapi-vue-app -t vue
```

> calcite-app-components template application using CDN
```sh
arcgis create jsapi-calcite-app -t calcite --cdn
arcgis create jsapi-cdn --cdn
```

## Sample Apps

* [ArcGIS Basic App](https://jsapi-basic-416.surge.sh/)
* [ArcGIS React App](https://jsapi-react-416.surge.sh/)
* [ArcGIS Vue App](https://jsapi-vue-416.surge.sh/)


## Features
Expand All @@ -80,12 +73,12 @@ $ arcgis create <name> [dest]
Create a new application.

Options:
--version Show version number [boolean]
--version Show version number [boolean]
--name, -n directory and package name for the new app
--dest Directory to create the application in [default: <name>]
--type, -t A project template [choices: "jsapi". "react", "vue", "calcite"] [default: "jsapi"]
--cdn Project template using JSAPI CDN (only valid with default or calcite) [default: false]
-h, --help Show help [boolean]
--type, -t A project template [choices: "jsapi". "rollup"] [default: "jsapi"]
--cdn Project template using JSAPI CDN (outputs a rollup app with CDN) [default: false]
-h, --help Show help [boolean]

```

Expand All @@ -97,10 +90,10 @@ $ arcgis init [type]
Initialize a new application in current directory

Options:
--version Show version number [boolean]
--type, -t A project template [choices: "jsapi". "react", "vue", "calcite"] [default: "jsapi"]
--version Show version number [boolean]
--type, -t A project template [choices: "jsapi". "rollup"] [default: "jsapi"]
--cdn Project template using JSAPI CDN (only valid with default or calcite) [default: false]
-h, --help Show help [boolean]
-h, --help Show help [boolean]
```

Create a new widget
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/child_process.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/cross-spawn-promise.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/del.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/fs-extra.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
11 changes: 10 additions & 1 deletion __mocks__/fs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint spaced-comment:0 */
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand All @@ -26,9 +26,18 @@ const statSync = jest.fn((...args) => {

const readdirSync = jest.fn(() => []);

const rmdir = jest.fn((...args) => []);

export const promises = {
writeFile: jest.fn((...args) => []),
readFile: jest.fn((...args) => {})
};

fs.statSync = statSync;
fs.readdirSync = readdirSync;
fs.existsSync = existsSync;
fs.mkdirSync = mkdirSync;
fs.rmdir = rmdir;
fs.promises = promises;

export default fs;
2 changes: 1 addition & 1 deletion __mocks__/fs.promised.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint spaced-comment:0 */
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/inquirer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/live-server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/ora.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/path.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/pkg-dir.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/recursive-copy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/request-promise-native.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 Esri
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
87 changes: 0 additions & 87 deletions flow-typed/npm/@babel/cli_vx.x.x.js

This file was deleted.

Loading

0 comments on commit ace7cfe

Please sign in to comment.