Open nicolethoen opened 4 years ago
Originally, my env-init.sh file included the following lines:
mkdir ~/tutorial/src/components curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/checkboxSelect.js > ~/tutorial/src/components/checkboxSelect.js curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/input.js > ~/tutorial/src/components/input.js curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/kebab.js > ~/tutorial/src/components/kebab.js curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/table.js > ~/tutorial/src/components/table.js
This no longer works. Instead, I was able to get it to work by adding these lines to my index.json file:
"assets": { "client": [ { "file": "checkboxSelect.js", "target": "/root/src/components/", "chmod": "+x" }, { "file": "input.js", "target": "/root/src/components/", "chmod": "+x" }, { "file": "kebab.js", "target": "/root/src/components/", "chmod": "+x" }, { "file": "table.js", "target": "/root/src/components/", "chmod": "+x" } ] }
This may be intended, but in case it's not I'm opening an issue. Mine was not the only module that used env-init.sh to move assets to the right directories.
Originally, my env-init.sh file included the following lines:
This no longer works. Instead, I was able to get it to work by adding these lines to my index.json file:
This may be intended, but in case it's not I'm opening an issue. Mine was not the only module that used env-init.sh to move assets to the right directories.