Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving assets in env-init.sh is not longer working #302

Open
nicolethoen opened this issue Jul 1, 2020 · 0 comments
Open

Moving assets in env-init.sh is not longer working #302

nicolethoen opened this issue Jul 1, 2020 · 0 comments

Comments

@nicolethoen
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant