All Projects → DrSensor → vue-authoring-template

DrSensor / vue-authoring-template

Licence: MIT license
Vue project template for authoring component and their use case

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
shell
77523 projects

Projects that are alternatives of or similar to vue-authoring-template

vue-cli-template-library
Template for developing open-source vue.js libraries with Rollup + Jest + Babel + Storybook + TravisCI + SemanticRelease
Stars: ✭ 61 (+335.71%)
Mutual labels:  vue-components, storybook
cuida
A design system built by Sysvale, using storybook and Vue components
Stars: ✭ 16 (+14.29%)
Mutual labels:  vue-components, storybook
vue-cirrus
Vue components for the Cirrus CSS framework.
Stars: ✭ 43 (+207.14%)
Mutual labels:  vue-components
storybook-webpack-federation-plugin
Exposes all the components in your Storybook as Webpack 5 federated components.
Stars: ✭ 54 (+285.71%)
Mutual labels:  storybook
vue-hooks-form
Building forms with vue composition API.
Stars: ✭ 131 (+835.71%)
Mutual labels:  vue-components
chanyeong
👨‍💻 chanyeong's portfolio and blog webpage
Stars: ✭ 39 (+178.57%)
Mutual labels:  storybook
Oasis
🍃 UI framework based on [email protected]. (English document is coming soon)
Stars: ✭ 29 (+107.14%)
Mutual labels:  vue-components
Different-UI
✨ A Vue.js 3 UI Library — a Toy
Stars: ✭ 62 (+342.86%)
Mutual labels:  vue-components
storybook-addon-blabbr
Component reviewer for React Storybook
Stars: ✭ 13 (-7.14%)
Mutual labels:  storybook
vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (+807.14%)
Mutual labels:  vue-components
vue-mui
Mobile UI elements for Vue 2.0
Stars: ✭ 16 (+14.29%)
Mutual labels:  vue-components
vue-on-rails
Easy way to mount/destroy Vue.js components with Ruby on Rails and Turbolinks 5
Stars: ✭ 17 (+21.43%)
Mutual labels:  vue-components
vue-cli-plugin-quasar
Quasar Framework Vue CLI plugin
Stars: ✭ 66 (+371.43%)
Mutual labels:  vue-components
vectre
Most complete implementation of Spectre.css on Vue.js
Stars: ✭ 63 (+350%)
Mutual labels:  vue-components
v-owl-carousel
🦉 VueJS wrapper for Owl Carousel
Stars: ✭ 46 (+228.57%)
Mutual labels:  vue-components
laravel-vue-component
A Blade directive to ease up Vue workflow for Laravel projects
Stars: ✭ 19 (+35.71%)
Mutual labels:  vue-components
okeedesign-mobile-vue
High Performance, Flexiable Configuration, Various Components
Stars: ✭ 139 (+892.86%)
Mutual labels:  vue-components
storybook-talk
Storybook, the playground you need for your UI components! 🎨
Stars: ✭ 11 (-21.43%)
Mutual labels:  storybook
vue3-docs
vue中文社区,vue3 中文文档
Stars: ✭ 180 (+1185.71%)
Mutual labels:  vue-components
storybook-graphql-kit
Write GraphQL queries and pass response data to your components
Stars: ✭ 19 (+35.71%)
Mutual labels:  storybook

vue-authoring-template CircleCI

Click one of this badge for more info

circleci support surge support vue 2.x storyboard 3.x donate


This template is to help authoring Vue component with it's use case in story-scenario (storybook) format.

vue init DrSensor/vue-authoring-template

In case you need to convince your Lead Dev to give you permission open-sourcing your work :

"Authoring component and publish it to npm for later use can help reduce complexity by delegating the work of finding bug and adding feature of big/long-running project to the community"

Motivation

  1. There is a time when developer involved in a project then build component to solve specific problem 😎
  2. One day this developer happen to do the same thing again in different project with slight alteration 😏
  3. Then doing it again, and again, and again 😫
  4. Now this developer have build many component with the same topic 😂
  5. So, why not publish it as a single component with that one topic in mind to npm? 😲
  6. However, the component must be showcased in mvce style to make it easy to understand and maintainable 😖
  7. As the time passed, he/she is to lazy to do that because no template/config/cli/whatever for authoring the component in that way 💩

Features

  • Write your storybook story-scenario (a.k.a use case) in .vue single-file-component format, not .js or .jsx
  • Option to generate circleci config to:
    • publish vue component to npm and unpkg (need to git push --tags)
    • deploy storybook page to surge.sh
    • evaluate pull-requests and temporarily deploy storybook page to <name><#PR_number>.surge.sh (auto teardown when PR is merged)
  • Choose pre-installed and configured storybook addon:
  • Order the story and scenario alphabetically or manually re-order using Array|Object in src/stories/config.js
  • Auto generate README.md

Usage

vue init DrSensor/vue-authoring-template

After that, you can:

  • start in development mode
npm run dev # or
yarn dev
npm run deploy # or
yarn deploy
# see https://docs.npmjs.com/getting-started/semantic-versioning#semver-for-publishers
npm version [patch|minor|major]
npm publish
  • build vue component
# the output will be in dist/
npm run build:component # or
yarn build:component
  • build the storybook page
# the output will be in .storybook/dist/
npm run build:storybook # or
yarn build:storybook

Project Structure

.
├── package.json
├── .bilirc                 // choose and configure the component you want to package in here
├── .editorconfig
├── .gitignore
│
├── .circleci
│   └── config.yml
│
├── .storybook              // storybook related config
│   ├── addons.js
│   ├── config.js
│   └── webpack.config.js
│
└── src
    ├── components              // place 1 or more components to author here
    │   └── HelloWorld.vue
    │
    ├── mixins                  // if needed, reduce complexity by separating any long code as mixins
    │   ├── mix1.js
    │   └── mix2.js
    │
    └── stories                 // use-case/usage of the component written in story-scenario analogy
        ├── Story1
        │   └── Scenario1.vue
        ├── Story2
        ├── Story3
        ├── config.js           // config to re-order the story and the scenario
        └── index.js            // chain and add the addon here

Looking for suggestion!

  • How to customize style of the storybook
  • Authoring Vuex module? Is it necessary?
  • any others?

Support

See CONTRIBUTING.md for contributing directly via:

License

MIT License


Modify/clone/fork/do-anything to this template and generated README and any others content as you wish.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].