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. cdto 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
synctotrueand adjust yoursyncTargetvalue as necessary for your local host setup.The full list of modifiable config values can be viewed in
gulpfile.js(seeconfigvariable). -
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 defaultto process assets. This task will also runsrc/compile.shfor convenience. -
Run
gulp watchto 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 watchwill also runsrc/compile.shfor convenience. -
Review your changes against
index.html.
- Set environment variables found in the
config.templ.conffile. For a GitHub workflow, these can be added as repository variables, and then added to theenvvariable of the workflow. - The
prebuildandbuildscripts 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!