Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
generator-vue-component-dev-kit
Advanced tools
A scaffolding tool allowing developers create vue component with demo page, dev page with hot reloading, testing with coverage check, linting.
A scaffolding tool allowing developers create vue component with demo page, dev page with hot reloading, testing with coverage check.
Make sure "yo" is available on your machine: http://yeoman.io/learning/
install the generator:
npm install -g generator-vue-component-dev-kit
Change working directory to your project code base. And run yarn
to install the dependencies. You may want to mannually modify the dependencies/devDependencies in package.json if you wish.
yo vue-component-dev-kit
src/index.vue
npm run build
By default, your new component will produce an UMD library with vue as external library. The bundled file will be put into dist/index.js. If that is not your case, you can manually update the package.json.
output: {
path: __dirname + '/dist',
filename: 'index.js',
publicPath: '/',
libraryTarget: 'umd',
library: 'YourComponentName',
},
Linting will happen before every build execution as well as demo/dev.
You can also run bash npm run eslint
in your command line to execute linting.
Customize your linting rule in .eslintrc.yaml. I believe I have set up very restrict rules.
npm run demo
Then open "/demo/default/index.html" to inspect the demo. The demo code is index.js under the same directory. It simulates how consumers use your component. It points to the dist/index.js.
npm run dev
You can visit your dev page at localhost:9001. It is hot-reloading powered by webpack-dev-server.
npm test
The test is based on Jest
customize your jest configuration under package.json "jest" field.
Coverage report will be placed in /coverage-report. You can modify coverage threashold in your package.json:
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
If you have jsdoc comments. Run bash npm run jsdoc
will generate the docs under 'jsdoc'.
Custom your jsdoc config at "jsdoc.config.json"
By default it puts "webpack" and "jsdoc" as the prepublishOnly script.
FAQs
A scaffolding tool allowing developers create vue component with demo page, dev page with hot reloading, testing with coverage check, linting.
The npm package generator-vue-component-dev-kit receives a total of 0 weekly downloads. As such, generator-vue-component-dev-kit popularity was classified as not popular.
We found that generator-vue-component-dev-kit 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.