-
Notifications
You must be signed in to change notification settings - Fork 1
Test CSS Build Output
W. Bomar edited this page Oct 28, 2021
·
10 revisions
- Build Core and relevant project CSS on
main
(using its submodule commit). - Build Core and relevant project CSS on relevant branch to test (using its submodule commit).
- Confirm that built files have expected difference (if any is expected).
- Checkout
main
:git checkout main
- Update
tacciste_custom
:-
git submodule update
If nothing happens, that is okay—it just means it is already up to date.
-
- Set
CUSTOM_ASSET_DIR=the-project
in.env
. - Build CSS:
npm run build
. - Confirm there is no error output.
- Copy built CSS to temporary directory for comparison:*
cp -r taccsite_cms/static/site_cms/css/build taccsite_cms/static/site_cms/css/build.test
cp -r taccsite_custom/the-project/static/the-project/css/build taccsite_custom/the-project/static/the-project/css/build.test
- Add/stage the new
build.test
directories (so you can compare them when they change):git add taccsite_cms/static/site_cms/css/build.test
cd taccsite_custom
git add the-project/static/the-project/css/build.test
cd ../
- Checkout
quick/simplify-css-processing
.git checkout quick/simplify-css-processing
- Update
tacciste_custom
:-
git submodule update
§
-
- Build CSS:
npm run build
. - Confirm there is no error output.
- Overwrite previously copied built CSS with copy of newly built CSS:*†
rsync -a --delete taccsite_cms/static/site_cms/css/build/ taccsite_cms/static/site_cms/css/build.test/
rsync -a --delete taccsite_custom/the-project/static/the-project/css/build/ taccsite_custom/the-project/static/the-project/css/build.test/
- Review diff of
build.test/
's files in working directory to staging/index.git diff
- Ensure only expected differences‡§ appear.
* This is done so you can later compare the changes between built files on two branches using
git diff
(n.b. you copy thebuild
directory so it can be tracked with Git because thebuild
directory is ignored by Git).† Use
rsync
to avoid OSXcp
issues.‡ Refer to the PR or issue which linked you to this guide.
§ If the diff of
taccsite_custom
shows-dirty
, that is expected—you made changes inside intentionally by creating thebuild.test
directory.
TACC ACI WMA Core-CMS Project Documentation