@engineerix/ix-swcl
v0.1.27
Published
Shared web component library for engineerix projects
Maintainers
Readme
Engineerix Shared Web Components Library
This is a shared web components library to support all engineerix web project with common components, styles and utilities.
Its is not production ready yet before version 1.0. First projects for using the component library are Engineerix Website (IXW3), XTCC and XTET.
Don't use that library in any other projects yet. It's under heavy development and the API still may change without any notice.
Usage on target project
Add the library to your project:
npm install ix-swclImport the components you need in your project:
import 'ix-swcl/button.js';Then use the components in your HTML:
<ix-button variant="primary">Click me</ix-button>Local Development
To develop components locally and test them in your project, you can link the library locally using npm link. It creates a symbolic link from your global node_modules to your local library folder so that you can use the latest changes without publishing the library every time.
Link the library locally
cd ix-swcl
npm linkThen in your project (e.g. for the IXW3 project):
cd ix-www
npm link ix-swclIn order to develop simultaneously in your project and the library, you have to start the dev task in the library folder:
cd ix-swcl
npm run dev