Giter VIP home page Giter VIP logo

vue-component-creator's Introduction

vue-component-creator

This is a script designed for vuejs cli to create SOC (separation of concern) based components. This is a simple tool to automatically create files and folders for 'separation of concern' components.

Installation

  1. Follow the Vue CLI guide and setup your vue boilerplate project.

  2. Next thing you want to do is pull in the repo into your current project by using git's submodule command.

git submodule add -b master https://github.com/fahimc/vue-component-creator.git

NOTE: If you see nothing inside the folder then run the following command:

git submodule update --init --recursive
  1. Next you need to run the init script.
node vue-component-creator/init.js

Creating Components

When you wish to create a component, vue-component-creator has included a new npm run script therefore you can use this to create component which will create all the necessary folders and files.

npm run create-component

Once you have done this you will be prompted for the name of your component. After you enter the name of the component, press 'ENTER' to continue.

What is the name of your component?
my-component-name

NOTE: use kebab case only.

Your component has now been created!

You will need to hook it up yourself but you should be ready to build a component.

Advanced

You can provide the src folder path in the package.json file like so:

"vue-component-creator": {
    "src-path": "src/app"
  }

Help

Read vue-template webpack documentation for more information on how the repo works.

vue-component-creator's People

Contributors

fahimc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.