3.2.0 • Published 7 months ago
junction-assets v3.2.0
Junction Assets
Junction Assets is the home to Insight's shared components and style declarations
Contributing to Junction Assets
- Make necessary changes to
projects/junction-assets/...
- For style based changes, modify
src/assets/scss/...
- For component based changes (i.e. changes to header/footer), modify
src/lib/...
- Push your changes to the
insight/junction-assets
project
Testing Junction Assets
Junction Assets cannot be run as a standalone application. It must be tied to a pre-existing Insight application. When you are done with your changes, you can test them in a pre-existing application as follows:
- Ensure all the changes you've made are complete
- Build the
/dist
folder usingnpm run build
- Copy the
junction-assets
folder inside the generated/dist
folder from step 2 - Replace the
@insight/junction-assets
with thejunction-assets
folder you copied from step 3 into a pre-existing Insight application - Run the Insight application using
ng serve --base-href /URL/
if necessary
Common Errors
My changes are not displaying after I copy junction-assets
into an Insight application
- Make sure you are replacing
@insight/junction-assets
withdist/junction-assets
built fromnpm run build
- Make sure you are modifying
project/junction-assets/...
and notsrc/...
Running npm run build
fails causes a lot of errors
- Ensure that you have all the required packages by running
npm install
before runningnpm run build
- If you require additional packages, install them using
npm install --save
After copying junction-assets
, I get errors where @insight/junction-assets/...
cannot be found
- Make sure that you are replacing
@insight/junction-assets
withdist/junction-assets
- Do not use the base
junction-assets
(i.e. the entire project)
- Do not use the base
3.2.0
7 months ago