All Projects → shershen08 → Vue Styleguide Generator

shershen08 / Vue Styleguide Generator

React inspired style guide generator for Vue.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Styleguide Generator

Vuejs Component Style Guide
Vue.js Component Style Guide
Stars: ✭ 2,796 (+2173.17%)
Mutual labels:  styleguide, style-guide, vuejs2
Vue Styleguidist
Created from react styleguidist for Vue Components with a living style guide
Stars: ✭ 2,133 (+1634.15%)
Mutual labels:  parser, styleguide, style-guide
Styleguide
Style guides for Google-originated open-source projects
Stars: ✭ 29,382 (+23787.8%)
Mutual labels:  styleguide, style-guide
Front End Style Guide
驴妈妈H5开发规范
Stars: ✭ 16 (-86.99%)
Mutual labels:  styleguide, style-guide
React Styleguide
ReactJS style guide for component-based projects.
Stars: ✭ 14 (-88.62%)
Mutual labels:  styleguide, style-guide
A11y Style Guide
Accessibility (A11Y) Style Guide
Stars: ✭ 493 (+300.81%)
Mutual labels:  styleguide, style-guide
Git Style Guide
A Git Style Guide
Stars: ✭ 4,851 (+3843.9%)
Mutual labels:  styleguide, style-guide
Livingstyleguide
Easily create front-end style guides with Markdown and Sass/SCSS.
Stars: ✭ 874 (+610.57%)
Mutual labels:  styleguide, style-guide
Css Style Guide Audit
Audit the CSS on a page to see what elements are using styles from the style guide and which styles are overriding them
Stars: ✭ 353 (+186.99%)
Mutual labels:  styleguide, style-guide
Swift
Airbnb's Swift Style Guide.
Stars: ✭ 1,165 (+847.15%)
Mutual labels:  styleguide, style-guide
Flake8
The official GitHub mirror of https://gitlab.com/pycqa/flake8
Stars: ✭ 1,112 (+804.07%)
Mutual labels:  styleguide, style-guide
Typescript Guidelines
The TypeScript Guidebook
Stars: ✭ 104 (-15.45%)
Mutual labels:  styleguide, style-guide
Pycodestyle
Simple Python style checker in one Python file
Stars: ✭ 4,465 (+3530.08%)
Mutual labels:  styleguide, style-guide
Elixir style guide
This is community style guide for the Elixir programming language. Please feel free to make pull requests and suggestions, and be a part of Elixir's vibrant community.
Stars: ✭ 3,870 (+3046.34%)
Mutual labels:  styleguide, style-guide
Javascript Airbnb
Перевод «JavaScript Style Guide» от Airbnb
Stars: ✭ 579 (+370.73%)
Mutual labels:  styleguide, style-guide
Clojure Style Guide
A community coding style guide for the Clojure programming language
Stars: ✭ 3,740 (+2940.65%)
Mutual labels:  styleguide, style-guide
Styleguide Git Commit Message
/sBin/StyleGuide/Git/CommitMessage
Stars: ✭ 934 (+659.35%)
Mutual labels:  styleguide, style-guide
Sscss
Light Sass lib for managing your font-size, margin, padding, and position values across breakpoints.
Stars: ✭ 119 (-3.25%)
Mutual labels:  styleguide, style-guide
Elements Of Python Style
Goes beyond PEP8 to discuss what makes Python code feel great. A Strunk & White for Python.
Stars: ✭ 3,308 (+2589.43%)
Mutual labels:  styleguide, style-guide
Ios Handbook
Guidelines and best practices for excellent iOS apps
Stars: ✭ 337 (+173.98%)
Mutual labels:  styleguide, style-guide

🙀 [20/09/2017] Project discontinued 🙀

For purpose of having a demo of your Vuejs components please take a look at following projects that do really great job and are really handy for you dev workflow with Vuejs: storybook for vuejs and vue-styleguidist.

Vue js components styleguide generator 📚

dependencies status

Initially started after reading this vue.js feature request. Now only basic proof of concept is available which can load folder with .vue files, parse it and extract basic props of it.

Target is to have some tool with at least some of the React version capabilities.

Idea is to have what vue-play does but in automated way - with one task run, plus READMEs, etc.

Generate single html file containing all components listed with details and search out from your .vue project files.

Questions & bugs

  • General questions please ping me on twitter @legkoletat.
  • Bugs and inconsistencies please create an issue . Please concider to adding more information on what is the codebase you're running the generator against, what errors (with code, if applicable) you got. To keep issues list clean and relevant issues with no feedback/details/activity will be closed within 3 days.

1. Examples

Running on large components collections

Output UI demo

resulting output

2. Setup

  1. npm install vue-styleguide-generator --save-dev

  2. add to you package.json in script section - for example like this "build-components": "node ./node_modules/vue-styleguide-generator/" and then run npm run build-components from the root folder of the project.

🏃 You can also manually (or using Gulp/Grunt) run node ./node_modules/vue-styleguide-generator/

3. Usage

✅ Works only for Vue 2.x projects.

CLI options

Name Type Description Default
--src String Source dir, will be recursively scanned src
--dest String Destination output dir, file index.html will be placed there components-preview
--exclude RegExp File mask to exclude certain type of files /^./
--locale String Output locale language en
--verbose String Output all details while processing false
--all String Do not ignore any components false
--o String Open browser preview after generating false

E.g.: node ./node_modules/vue-styleguide-generator/ --src components --dest preview will read components from PROJECT_ROOT/components folder and provide a html page into PROJECT_ROOT/preview folder

To see all parser error run with DEBUG: DEBUG=app node ./node_modules/vue-styleguide-generator/

How the components are iterated

If you want to see more information about the component - add a .md file in the same directory. While retrieving the files the following assumptions are made:

  • if there are files with the same name in one folder (e.g. /scr/partials/TabBar.vue and /scr/partials/TabBar.md) it's assumed to be one component;
  • if there are only two files in the folder and one is .vue and another is .md (e.g. /scr/TabBar/codez.vue and /scr/partials/readers.md) it's assumed to be one component;
  • If there are >1 .vue files in the folder and .md file that does not have the same name as one of the .vue files - this .md file is ignored
  • Components with no props, no computed and no methods defined are considered to be a simple wrappers and not outputed

Found a bug or have a proposal - please create an issue or tweet me @legkoletat!

Todos

  • improve parsing technique and/or configuration to deal with variety of components organisation approaches
  • syntax highlighting
  • align parsing and display with vue-js-component-style-guide
  • core: move the demo-page to use Vue so that components can be generated from its declaration
  • ui: output extra component parameters (computable, data)
  • various use cases testing, added vuikit and Keen-UI links

Contributions are welcome 👍!

Especially on following:

Bugs and problems

  • window object may not be patched fully so some component's code execution may fail
  • 'vue-template-compiler' must be the same as the version of 'vue' you're using in your codebase. Now set to 2.1.10. may have to manually put to other version that's used in your project.'

Changelog

0.9.11

Now as from 0.9.11 also your .js files referenced from .vue files are supported.

0.9.15

Added -o option to open the browser. Refactoring the template. Added pt-br translation by israelss.

0.9.18

UI improvements (UX of the search block, 'Copy' component code).

License

MIT

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].