The Australian Government Design System has been decommissioned Visit our community page for more information
Melts down the GOLD ( Design System ) components into a zip file.
The furnace is an
expressserver that allows users to easily get started with the Australian Government Design System. The furnace dynamically builds zip files based on each selected component and options that are sent to the server.
npm install
npm run buildThen run npm start or npm watch to start the server.
Once the server is started it can now take POST requests at the URL http://localhost:8080/furnace/. The POST requests are in the form of:
{
components: [ 'accordion', 'breadcrumbs' ],
styleOutput: 'css',
jsOutput: 'js',
}
The above POST would return a zip file containing minified css and js for all of the dependencies of accordion and breadcrumbs.
An array of components that relates to the currently live components in the GOV.AU Design System.
css: css minifiedcssModules: css modules for each componentsassModules: sass modules for each component
js: js minifiedjsModules: js modules for each componentreact: react modules for each component
To test that the furnace is working run npm run test. This runs a unit test against the functions making sure the output is correct. It also runs an integration test making sure that a mock zip file is downloaded and has the correct output.
You can also manually test the furnace by sending a POST to the local instance.
- Install the dependencies
npm install - Starting the furnace
npm run watch - Send a POST to the furnace while it is running using
curl:
curl -d "components=accordion&components=breadcrumbs&styleOutput=css&jsOutput=js" http://localhost:8080/furnace >> designsystem.zipTo update the slack channels receiving notifications, run the following:
$ cf uups ups-furnace -p '{SLACK_WEBHOOKS: ... }'
with the appropriate slack webhook URL
Read the cf-docs for more.
- v1.0.0 - Initial version of the furnace