Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@intelligentgrowthsolutions/eco
Advanced tools
This is a design system/component library for using across IGS web projects. It's built using Stencil and documented using Storybook.
Using eco in your project is fairly easy. It's an npm package and once you integrate with your framework of choice it should be as simple as using <eco-button></eco-button>
where you want.
npm install
# To run Stencil - compiling, creating and testing
npm start
# To run Storybook
npm run storybook
Note: You may/will probably want to run both of those at once.
Storybook doesn't support hot reloading with web-components so you do need to refresh the page after changes to *.stories.js
files.
You need to run the following to copy the css and assets to the storybook directory so that it's available locally.
npm run storybook-build
npm run copy-dist-files
Get Stencil running:
npm start
To build the component for production, run:
npm run build
To run the unit tests for the components, run:
npm test
Refer to the storybook docs and/or copy and adjust one of the existing ones.
Assuming a folder structure of:
/code
/fms
/eco
Using npm link we can use the local version of eco rather than the published module. To link eco to the fms angular front end:
cd fms/src/Web/angular
npm link ../../../../eco
You will need to update fms/src/Web/angular/src/main.ts
from
import {defineCustomElements} from '@intelligentgrowthsolutions/eco';
to
import {defineCustomElements} from '../../../../../eco';`
You'll also need to run npm run build
in the eco
root directory. Running npm start
will not rebuild the dist folder for Angular to grab.
Don't push the updated version of package.json - it should always point to the published version of eco.
Once everything is fine and dandy you'll probably want to update the version of eco so that it can actually be used. Following the npm guide is the way to go here.
npm version patch
npm publish
You'll only be able to publish if you're part of the npm org.
FAQs
Eco Design System for Intelligent Growth Solutions
The npm package @intelligentgrowthsolutions/eco receives a total of 13,706 weekly downloads. As such, @intelligentgrowthsolutions/eco popularity was classified as popular.
We found that @intelligentgrowthsolutions/eco demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.