Visit https://universityheader.ucf.edu for usage instructions and guidelines. Instructions below are for working with the header's source code.
- Clone this repository and place it in a web-accessible location.
- If this is a first-time install, copy
config.templ.conf
, update config values as necessary for your environment, and save asconfig.conf
. cd
to thesrc/
subdirectory, and run./compile.sh
- Load
index.html
(in repo's root directory) in your browser; make sure all assets are loaded in correctly. - Repeat Step 3 after all subsequent deployments.
- node v16+
- gulp-cli
-
Follow all installation steps outlined above.
-
If you'd like to enable BrowserSync for local development, or make other changes to this project's default gulp configuration, copy
gulp-config.template.json
, make any desired changes, and save asgulp-config.json
.To enable BrowserSync, set
sync
totrue
and adjust yoursyncTarget
value as necessary for your local host setup.The full list of modifiable config values can be viewed in
gulpfile.js
(seeconfig
variable). -
Make changes as desired to files in
src/scss/
or tosrc/js/bar.js
. Image assets should be added/adjusted as needed directly inbar/img/
.Do not make changes to
src/js/university-header.js
,src/js/university-header-full.js
, or files inbar/css/
directly. -
Run
gulp default
to process assets. This task will also runsrc/compile.sh
for convenience. -
Run
gulp watch
to continuously watch changes to scss and js files. If you enabled BrowserSync ingulp-config.json
, it will also reload your browser when scss or js files change.gulp watch
will also runsrc/compile.sh
for convenience. -
Review your changes against
index.html
.
- Set environment variables found in the
config.templ.conf
file. For a GitHub workflow, these can be added as repository variables, and then added to theenv
variable of the workflow. - The
prebuild
andbuild
scripts need to be run to build the project. These are dependent and can be run in series,npm run prebuild && npm run build
. - The output of the build will write to the
bar/
directory. This is the directory is what can be deployed.
Want to submit a bug report or feature request? Check out our contributing guidelines for more information. We'd love to hear from you!