8000 GitHub - skoolbus39/dcf: Digital Campus Framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

skoolbus39/dcf

 
 

Repository files navigation

dcf

Digital Campus Framework

Structure

DCF contains core scripts and styles which are used as 'plumbing' and a foundation to build a theme. The core scripts and styles create a more consistent user experience and ease of development across themes, while each individual theme allows for customizations and brand identity.

  • The /core directory contains the core scripts and files for DCF.
  • The /theme directory contains sub-directories for each theme. Individual themes are not bundled with this project, and should instead be placed in the /theme directory during development to build it.

required theme directories and files

  • The /theme/name/css directory is where generated css will be placed.
  • The /theme/name/js directory is where generated js will be placed.

Installing the project

Run npm install to install the required node modules.

You are good to go!

Building a theme

Run the following command to build the development files:

npm run dev -- --env.theme your_theme_name

for example: npm run dev -- --env.theme example will build the example theme that lives in /theme/example.

Run the following command to build the production files:

npm run dev -- --env.theme your_theme_name

Adding JS Files to your Theme

Webpack has entry points for head and body js. After writing your JS (or during), add a require statement for it in the appropriate /theme/theme_name/js/loaders/ file.

About

Digital Campus Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 84.7%
  • HTML 12.5%
  • JavaScript 2.8%
0