Domy - a package manager for webcomponents
source link: https://www.tuicool.com/articles/hit/qq2u6zv
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
a package manager for web components.
Alpha Release
It's a zero configuration package manager for web components based on Stencil compiler.
Installation
Install Domy
package using NPM
registry:
npm install -g domy-cli
Utilization
Sign up by using your username
, password
and email
:
domy signup
Log in to the system from another computer or using another account:
domy login
To build the project run your local Stencil compiler or use one that comes with Domy
:
domy compile
Publish all compiled components by submitting the whole directory:
domy publish --version 0.1.0
Execute the command in the root (base) directory of your project
The version is optional. Non-versioned components will be sent to the master branch
It is possible to publish a specific component by passing its class name
domy publish MyComponent --version 0.1.0
To get the component in another project, run the install
command in the root directory:
domy install MyComponent --version 0.1.0
Installed components will be tracked in package.json webcomponents
compartment
To install all components listed in package.json webcomponents
compartment:
domy install
Components are installed in the node_modules/@domy directory and are imported as usual.
// master is a non-versioned release import "@domy/MyComponent/master" // or // 0.1.0 is a versioned release import "@domy/MyComponent/0.1.0"
Remove a component from the registry (unpublish it):
domy remove MyComponent --purge
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK