⚠ Only Core CMS and Core Styles are supported and tested.
Sample workspace for simultaneous development of TACC WMA Workspace Portals & Websites.
The key provision is merely workspaces
in pacakage.json
to set up NPM workspaces. This template repository just offers guidance and convenience scripts.
- Core CMS, the base CMS code for TACC WMA CMS Websites
- Core Portal, the base Portal code for TACC WMA CMS Websites
- Core Styles, the shared UI pattern code for TACC WMA CMS Websites
- Core Components, the shared JS components for TACC WMA CMS Websites
- Clone/Move Core CMS and Core Styles into this root directory.
- After cloning, follow each package's README instructions.
- Moving an existing repository works just as well.
- Install package dependencies, from root, via
npm install
.
Each package:
- shares dependencies (which have been hoisted to root)
- can load each other as if the other is an NPM package
- supports development of it independent of sibling packages
These scripts let you run one or more specific package scripts.
- Run, from root, a convenience script e.g.:
npm run core-cms:demo --project=core-cms
npm run core-cms:demo --project=frontera-cms
npm run core-styles:demo
- Run, from root, a script of any package e.g.:
npm run core-cms: npm run build:css
npm run core-cms: npm run build:demo
npm run core-styles: npm run build
npm run core-styles: npm run start
- If
npm install (...)
is run in a package, then core-styles package is unlinked (which can cause build errors). To restore the link, runnpm ci
in root.