Select to view content in your preferred language

Missing: A copy script has been created to make this process easier

615
1
08-22-2021 06:09 PM
David_Wilton
Emerging Contributor

In the readme for react it says a copy script has been created to make this process easier. But there is no reference to where this script is or where to get it from. The readme says to use create react app which obviously does not include this script.

I'm pretty sure the script should be something like this in the package.json scripts section

    "copy""ncp node_modules/@esri/calcite-components/dist/calcite/ ./public/assets"

 

https://developers.arcgis.com/calcite-design-system/framework-examples/react/

0 Kudos
1 Reply
BenElan
Esri Contributor

Hi @David_Wilton,

I apologize for the belated reply. In the documentation you provided above, under the "Installation" section, there is a link to a repo with sample apps. The copy script is in that repo here:

https://github.com/Esri/calcite-components-examples/blob/master/react/package.json#L23-L24

The copy script runs automatically after installing the node modules.

Ben

0 Kudos