0.0.19 • Published 3 years ago

vue-pod v0.0.19

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

⚠️ Deprecated in favour of vue-cli-plugin-pod

Checkout: https://github.com/prakashchokalingam/vue-cli-plugin-pod


vue-pod 🤟

Pod structure cli for Vue js

Getting Started

If you like to use vue components in pod structure please do install vue-pod (https://www.npmjs.com/package/vue-pod, https://github.com/js-pods/vue-pod/)

npm install vue-pod -g

Usage

component|c <action> <component-path>

To create a component

vue-pod component generate <component-path> ( or ) vue-pod c g <component-path>

To delete a component

vue-pod component delete <component-path> ( or ) vue-pod c d <component-path>

Customization 🎉🤟

You can customize the component files or you add more files to the pod structure

vue-pod copy

It will create .vue-pod.json file in your project folder with the following content.

	{
        "component": {
          "singleFile": false,
          "files": [
            {
              "filename": "${componentName}",
              "basePath": "",
              "extension": "vue",
              "content": "<!-- component : ${componentName} -->",
              "tagname": "template",
              "templateFile": true
            },
            {
              "filename": "style",
              "basePath": "",
              "extension": "scss",
              "content": ".${componentName} { /*  your styles ... */; }",
              "tagname": "style",
              "attributes": [ { "name": "type", "value": "scss" }, { "name": "scoped", "value": "true" } ]
            },
            {
              "filename": "script",
              "extension": "js",
              "content": "export default { /* component: ${componentName} */ }",
              "tagname": "script"
            }
          ]
        }
      }

Available options to customize 😎

  • singleFile

    It expects a boolean. If 'false' creates multiple files with the available files array. If 'true' it will create single file vue component with all available contents to be rendered in a single component.

  • files

    It's an array, which holds all the files data to be generated while creating a component.

  • filename

    filename will be the name of the file while it is generated.You can pass a ES6 string template. Accessible variable is componentName - ${componentName}.

  • basePath

    basepath holds the path value in which the file will be generated.

  • extension

    extension holds the extension value for a file.

  • content

    You can pre-fills some contents to the file. You can pass a ES6 string template. Accessible variable is componentName - ${componentName}.

  • tagname

    It represents the tagname to be use to call this file while rendered in to the template file.

  • templateFile

    It expects a boolean. The Template File will hold all the necessary contents of the files which are all has tagname.

  • attributes

    tagname can have attributes example: <template type="jade">

*As of now vue-pod cli is created to manage only components. Managing router.js,router components,vuex store, plugins and directives are in the pipeline. Contributions are welcome (https://github.com/js-pods/vue-pod) for the better vue experience.

Thanks for using vue-pod 🙏.

0.0.19

3 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

1.0.0

6 years ago