nuxt-module-builder
Nuxt Standard Module Builder
Last updated 2 years ago by pi0 .
MIT · Original npm · Tarball · package.json
$ cnpm install nuxt-module-builder 
SYNC missed versions from official npm registry.

Nuxt Module Builder

npm (scoped with tag) npm Dependencies

????️ Nuxt Standard Module Builder

⚠️ This package is still under development

Features

  • Build modules using same tool-chain of nuxt
  • ES6 Support out of the box
  • Nuxt inspired build system using optional single nuxt.module.config.js file
  • Standard eslint rules

Using module starter template

Just head to nuxt-community/module-template to make your fresh module in few minutes.

Getting started

Edit package.json like this:

{
    "scripts": {
        "build": "nuxt-module"
    },
    "devDependencies": {
        "nuxt-module-builder": "latest"
    }
}

Create src/index.js file:

export default async function (moduleOptions) {
    // ...
}

Optionally add a moduleBuilder section in package.json or create nuxt.module.config.js in the root of module project to customize module builder:

module.exports = {
    meta: {
        name: 'myModule'
    },
    plugins: [
        // rollup plugins
    ]
}

You can now use npm run nuxt-module to generate dist/index.js

For watch mode, you can use nuxt-module --watch

ESLint

TODO

License

MIT License

Copyright (c) 2017 Nuxt.js

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

4 Versions

  • 1.0.0                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 5
Last Day 1
Last Week 4
Last Month 9
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |