This project was intended to be a UI to generate Ruby code to paste into the Shopify Script Editor application, no extra coding needed.
ruby_scripts
that have not been transferred to the respective .js
files.Clone this project and install all the project dependencies.
yarn install
Run the local webpack
development server.
yarn start
Open http://localhost:8080 in your browser and you should see the application running.
All scripts are cotained in the ruby_scripts
directory and orgained by type of script (or common if they are applicable to all types of scripts)
Tests for scripts are contained within the spec
directory, then (similar to the script itself) another directory based on the type of script
If you make changes to any scripts within the ruby_scripts
directory, you will need to ensure these changes are added to the src/scripts
.js
file as well. The command for this is:
yarn build:scripts
models
directory contains classes to simulate the environment that scripts are executed in.Tests can be run with
yarn test:ruby
src/versions.js
and package.json
prior to deployingcomponents/ChangeLogContent.js
file (you can convert markdown to html).package.json
to run with one easy command:
yarn deploy
This generates a docs
directory containing index.html
and bundle.js
. The index loads all Polaris styles via the Polaris CDN and the application scripts via bundle.js
ChangeLogContent.js
file.