@vuikit/explorer
Vuikit Component Explorer
Last updated 2 years ago by miljan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @vuikit/explorer 
SYNC missed versions from official npm registry.

Vuikit Explorer

A sandbox for isolated Vue component development

Usage

# install POI
yarn add -D poi

# and add the explorer folder
mkdir explorer
cd explorer

# add the main & config files
touch main.js
touch poi.config.js

Populate main.js

// import explorer
import explorer from 'vuikit-explorer'
// import vuikit or custom uikit css
import 'vuikit/dist/css/vuikit.css'

// init explorer
explorer()

// add components to be explored
.add('MyComponent', [
  // add scenarios for each component
  ['Scenario', require('/my-component.vue')]
])

// run the dev server
.run()

Populate poi.config.js. For all options consult POI documentation.

const path = require('path')

module.exports = {
  entry: {
    explorer: ['[hot]', path.resolve(__dirname, './main.js')]
  }
}

Add the run script in the package.

"scripts": {
  "explorer": "poi --config explorer/poi.config.js"
}
# run
yarn explorer

Current Tags

  • 0.0.8                                ...           latest (2 years ago)

3 Versions

  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 4
Last Day 3
Last Week 0
Last Month 3
Dependencies (4)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |