junction-assets
v3.3.0
Published
Junction Assets is the home to Insight's shared components and style declarations
Readme
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-assetsproject
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
/distfolder usingnpm run build - Copy the
junction-assetsfolder inside the generated/distfolder from step 2 - Replace the
@insight/junction-assetswith thejunction-assetsfolder 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-assetswithdist/junction-assetsbuilt 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 installbefore 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-assetswithdist/junction-assets- Do not use the base
junction-assets(i.e. the entire project)
- Do not use the base
