Update: Webpack was deprecated in favor of Stencil compiler (v. 0.5.0)
We released an alpha version of the zero-configuration package manager for React components.
It helps developers to publish and to reuse any component directly from an existing app, no metadata or configuration files required. Basically, Domy will reuse the configuration data of your main app to transpile the component (ex. webpack.config.js).
a package manager for web components
It's a zero configuration package manager for web components based on Stencil compiler.
Domy package using
npm install -g domy-cli
Sign up by using your
Log in to the system from another computer or using another account:
Build the project by running Stencil compiler,
Domy comes with the latest one:
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's possible to publish just one component by passing its class name
domy publish MyComponent --version 0.1.0
Install the component in another project using its class name:
domy install MyComponent --version 0.1.0
Installed components will be tracked in package.json …
The current release supports only React components, no Angular or Web components for the moment. It's coming after alpha test stage.
In order to start your journey into the magical world of the Domy's package manager, install it first:
npm install -g domy-cli
... and create your personal account by executing:
it will ask for your username, password, and email.
Then, navigate up to the root directory of your best React app and publish the desired component to the registry. Domy will detect the configuration of your main app and will apply it to the process of packing the component:
In the above example, we use angle brackets as an example of parameters that are expected. In our case, it is the name of a component and the path to the file where it is stored. The path is relative to the root of the app.
Finally, navigate to the root directory of another project with initiated npm package.json and execute the command install:
It will create new components directory in the root of your project and will drop component right there. Installed component can be required as a simple local file/module.
What else? I supposed that's it for now. Come as you are, try our awesome library aka package manager and don't forget to give us a star on Github. Thanks