0.1.6 ā¢ Published 7 years ago
nuxt-egg v0.1.6
Egg-Nuxt
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 setdefault
,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
0.1.6
7 years ago
0.1.5-rc.2
7 years ago
0.1.5-rc.1
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago