Universal plugin scaffold
UNIP
Create universal plugin with single code base for pure JavaScript, Svelte, Vue.js and React
What's Unip?
Unip help you start new plugin project that going to work in different JavaScript framework, currently we support Vue.js, React, pure JavaScript (IIFE) and also Svelte.
Features
- Use svelte power to create plugin that going to work every where
- Example for every thing you need to create your plugin
- Pre defined Vue.js React adapter
- vuepress static site generated for documentation
- CI/CD with Travis
Install
npm install -g unip
yarn global add unip
Usage
unip create svelte my-awesome-plugin
cd my-awesome-plugin
npm run dev
Start svelte dev server
npm run dev
Start Pure JavaScript dev server
npm run iife
Install vue demo application packages
npm run install-vue-demo
Start vue dev server
npm run vue
Install react demo application packages
npm run install-react-demo
Start react dev server
npm run react
Kill node process on demo ports
npm run clear
Contribute
git clone git@github.com:babakhani/unip.git
cd unip
npm link
unip --help
license
Freely distributable under the terms of the MIT license.