Support the KitKat by forking and expanding it!
- About the GOV.AU UI-Kit: https://github.com/govau/uikit
- About the Australian Government Deisgn System: https://designsystem.gov.au
- Run
npm install
. This may take a while and if it stalls, delete thenode_modules
directory and start over - Copy
config-local-example.json
toconfig-local.json
and change the browserSync proxy to your local development URL
Default source file directories are under src
.
govkit/
├── images/
├── css/
│ └── style.css
├── js/
│ └── script.js
└── src/
├── images/
├── js/
│ └── script.js
├── scss/
│ ├── style.scss
│ ├── components/*.scss
│ ├── layouts/*.scss
│ └── setup/*.scss
└── uikit/
├── css/
├── js/
├── react/
└── scss/
- SCSS source files
src/scss
- JS source files
src/js
- Image source files
src/images
- The UI Kit source files are here
src/uikit
Those can be changed to your liking by editing config.json
. All source files with .js
and .scss
extensions under their respective directory will be compiled. This may not be desirable if you would like to control the order the SCSS files are included. Edit config.json
accordingly if you would like to specify the include order of the source files.
From the theme directory, run gulp
This does the following:
- compile SCSS and JS source files
- optimise image source files
- compress CSS
- monify JS
You may choose to enable/disable image optimisation by editing gulpfile.js
. If task images
is enabled, the task may take a while to run, please be patient.
From the theme directory, run gulp dev
This does the following:
- source mapping for both SCSS and JS
- watch for SCSS and JS source file changes
- compile SCSS into CSS nested style
- output un-minified JS
- launch browserSync
From the theme directory, run gulp js-lint
Copyright © Icon Agency Canberra. Licensed under ISC.