A very crude example of swapping out different JSON files and jamming it into data-binding.
Create a local site named: http://local.mint-sandbox.com
.
Then from the root of the project (where the main component.json
file is):
- Run
component install
to pull down all the awesome dependencies. - Run
component build
to bundle these up into a juicy script.
If you need to create a different address for this local site, make sure the paths are updated in the following scripts.
local/router/index.js
local/translate/index.js
Then from the root of this directory run component build
If you wish to update any scripts, just run component build
after to ensure your changes
were added to the build/build.js
file.
This doesnt apply to HTML or CSS.
Thats all this example is. I'm aware the router is a bit dodgy and some of the script is messier than Joaquin Phoenix's beard.