Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@calidae/vue-generate-component
Advanced tools
Readme
Developed upon the work of vue-generate-component.
CLI util for easy generate Vue component structure.
npm install -g @calidae/vue-generate-component
If you want to try it out without polluting your global npm, you can use npx:
npx @calidae/vue-generate-component [ARGUMENTS]
vgc Footer
Will generate a folder called Footer
in your current directory vue component file:
Footer.vue
<template>
<div class="footer">
Footer component
</div>
</template>
<script>
export default {
name: 'Footer',
data () {
return {}
}
}
</script>
<style scoped></style>
If you want to create a index.js to simplify the import statements simply add the --index
flag or use the alias -i
vgc Footer --index
vgc Footer -i
index.js
import Footer from './Footer'
export default Footer
If you want to create a **.spec.js test file as a boilerplate where start wrtiting your own tests simply add the --test
flag or use the alias -t
vgc Footer --test
vgc Footer -t
Footer.spec.js
import Footer from './index.js'
import { mount } from '@vue/test-utils'
describe('Footer.vue', () => {
it('renders main node', () => {
const wrapper = mount(Footer)
expect(wrapper.classes()).toContain('Footer')
})
})
This project tries to solve tedious copy&paste operations from our daily workflow. Please notice that the generated files will require some external libraries such as Vue, @vue/test-utils or Sass loader configuration. Make sure these libraries are available in your project.
FAQs
Vue js component generator
The npm package @calidae/vue-generate-component receives a total of 5 weekly downloads. As such, @calidae/vue-generate-component popularity was classified as not popular.
We found that @calidae/vue-generate-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.