![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vue-styleguide-generator
Advanced tools
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.
Update: Now as from 0.9.11 also your .js
files referenced from .vue
files are supported
npm install vue-styleguide-generator --save-dev
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/
✅ Works only for Vue 2.x projects.
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/
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:
/scr/partials/TabBar.vue
and /scr/partials/TabBar.md
) it's assumed to be one component;/scr/TabBar/codez.vue
and /scr/partials/readers.md
) it's assumed to be one component;Found a bug or have a proposal - please create an issue or tweet me @legkoletat!
Especially on following:
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.'
MIT
FAQs
Styleguide generator for your Vue.js components
The npm package vue-styleguide-generator receives a total of 23 weekly downloads. As such, vue-styleguide-generator popularity was classified as not popular.
We found that vue-styleguide-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.