npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-make

v1.2.0

Published

A tool to quickly make templates for components and services in your vue application. Similar to Laravel's artisan.

Downloads

1

Readme

vue-make

A tool to quickly make templates for components and services in your vue application. Similar to Laravel's artisan.

View on NPM

Installation

npm install vue-make -g

Usage

Always use in the root directory of your project

Making a Component:

vue-make component MyComponent

Making a View:

vue-make view MyView

Making a Store Module:

vue-make storeModule modulename

Making a Service:

vue-make service MyService

Default Configuration

By default, vue-make uses the structure of vue applications created with vue-cli:

  • components: src/components
  • views: src/views
  • store modules: /src/store/modules
  • services (if used): src/services

However you can configure your own paths using one of two approaches:

  • Using the command line tool:

    vue-make config

    Brings up a prompt similar to npm init which will ask you to enter the desired configuration values.

  • Manually creating the config file:

    Make a file called vue-make.json in your root directory and follow the structure below:

    {
      "paths": {
        "components": "src/components",
        "views": "src/views",
        "services": "src/services",
        "storeModules": "src/store/modules"
      },
      "styleType": "scss"
    }

Templates

These are the templates used to make components, views and services.

Components, Views

MyComponent.vue

<template>

</template>

<script>
    export default {
        name: 'my-component',
        props: {

        },
        data: function() {
            return {

            }
        },
        methods: {

        }
    }
</script>

<style lang="scss">

</style>

Store Modules

module.js

const state = {
    var: ''
}

const getters = {
    function() {

    }
}

const actions = {
    function() {

    }
}

const mutations = {
    function() {
        
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}

Services

MyService.js

/**
* Description
*/
export default class MyService {
    functionName() {

    }
}

Contributing

If you feel like this tool is useful and feel like contributing, feel free to make a pull request.

You can also open an issue if you have any suggestions/bugs.