Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
/ comp Public archive

🎼 static html generator for our react components

License

Notifications You must be signed in to change notification settings

sussexstudent/comp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comp has moved to our website monorepo, see sussexstudent/website/packages/comp


comp

*Currently tightly coupled to our stuff. Docs to be added.

comp helps build our site. comp renders react pages using data from our content api as a command line application. comp also exports a express middleware to develop sites locally, allowing production content to be proxied from a remote server.

comp.generator()

Interactively generates pages and templates in setup. Performs a diff from the last generation, and only displays changed pages.

comp.server()

Use as an express middleware.

import { proxy as compProxy } from '@ussu/comp';

server.use(compProxy());

Serves content from the remote, acting like proxy. Base template is rendered locally.

About

🎼 static html generator for our react components

Resources

License

Stars

Watchers

Forks

Packages

No packages published