ne

nuxt-egg

egg framework for nuxt

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

2

Size (min+gzip)

476.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Egg-Nuxt

Egg + Nuxt.js = 🔥

NPM version build status Test coverage David deps npm download lincense image

Requirement

  • node >= 6.0.0

Installation

$ vue init nuxt-egg/starter my_project

Usage

package.json

{
  "scripts": {
    "dev": "egg-bin dev",
    "build": "nuxt build",
    "start": "NODE_ENV=production egg-bin dev"
  },
  "egg": {
    "framework": "nuxt-egg"
  }
}

Direct Structure

点击查看 egg-framework 目录结构

nuxt-egg-project
├── .nuxt
├── resources
|   ├── pages
│   ├── assets
│   |   └── css
│   |   └── img
│   ├── static
│   ├── layouts
│   ├── middleware
│   ├── plugins
│   ├── components
├── package.json
├── app.js (可选)
├── agent.js (可选)
├── app
|   ├── router.js
│   ├── controller
│   |   └── home.js
│   ├── service (可选)
│   |   └── user.js
│   ├── middleware (可选)
│   |   └── response_time.js
│   ├── schedule (可选)
│   |   └── my_task.js
│   ├── public (可选)
│   |   └── reset.css
│   ├── view (可选)
│   |   └── home.tpl
│   └── extend (可选)
│       ├── helper.js (可选)
│       ├── request.js (可选)
│       ├── response.js (可选)
│       ├── context.js (可选)
│       ├── application.js (可选)
│       └── agent.js (可选)
├── config
|   ├── plugin.js
|   ├── config.default.js
│   ├── config.prod.js
|   ├── config.test.js (可选)
|   ├── config.local.js (可选)
|   └── config.unittest.js (可选)
└── test
    ├── middleware
    |   └── response_time.test.js
    └── controller
        └── home.test.js

Nuxt.js Changes

  • The Nuxt config file is now in config.[dev].js, dev allow set default, unittest, local, prod
  • The Nuxt project directory is resources (default)

config.default.js

const path = require('path);
exports.nuxt = {
  srcDir: path.join(__dirname, '../resources'),
  rootDir: path.dirname(__dirname),
}

Live Demo

Documentation

Licenses

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100