Plugin boilerplate with svelte, create plugin/component for use in pure JavaScript, Vue.js and React


Keywords
boilerplate, scaffold, svelte, universal, javascript universal plugin, vue, react, pure, js, vanilla
License
MIT
Install
npm install unip@0.0.1-alpha-9

Documentation

UNIP

Universal plugin scaffold

npm version

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

What is IIFE?

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.