Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@intelligentgrowthsolutions/eco

Package Overview
Dependencies
Maintainers
2
Versions
1051
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intelligentgrowthsolutions/eco

Eco Design System for Intelligent Growth Solutions

  • 0.1.9
  • npm
  • Socket score

Version published
Weekly downloads
172
decreased by-25.86%
Maintainers
2
Weekly downloads
 
Created
Source

eco design system

This is a design system/component library for using across IGS web projects. It's built using Stencil and documented using Storybook.

Using eco

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.

Running eco locally

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.

If you're having issues...

You need to run the following to copy the css and assets to the storybook directory so that it's available locally.

npm run build-storybook
npm run copy-dist-files

Making changes to eco

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

Documenting stories in Storybook

Refer to the storybook docs and/or copy and adjust one of the existing ones.

Testing eco components locally before publishing

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.

Updating 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

Package last updated on 11 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc