├── demo ├── static │ └── favicon.ico ├── content │ └── HelloWorld.comp.md ├── nuxtent.config.js ├── .eslintrc.js ├── .gitignore ├── pages │ ├── _content.vue │ └── index.vue ├── README.md ├── nuxt.config.js ├── package.json ├── layouts │ └── default.vue └── components │ └── Showcase.vue ├── template ├── static │ └── favicon.ico ├── content │ └── HelloWorld.comp.md ├── nuxtent.config.js ├── .eslintrc.js ├── .gitignore ├── README.md ├── pages │ ├── _content.vue │ └── index.vue ├── package.json ├── nuxt.config.js ├── layouts │ └── default.vue └── components │ └── Showcase.vue ├── meta.js ├── README.md └── LICENSE /demo/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nuxt-community/nuxtent-template/HEAD/demo/static/favicon.ico -------------------------------------------------------------------------------- /template/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nuxt-community/nuxtent-template/HEAD/template/static/favicon.ico -------------------------------------------------------------------------------- /demo/content/HelloWorld.comp.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Hello World 3 | --- 4 | 5 | I started in the content directory and somehow made it all the way here! 6 | 7 | @[Showcase] 8 | -------------------------------------------------------------------------------- /template/content/HelloWorld.comp.md: -------------------------------------------------------------------------------- 1 | {{{{raw}}}} 2 | --- 3 | title: Hello World 4 | --- 5 | {{{{/raw}}}} 6 | 7 | I started in the content directory and somehow made it all the way here! 8 | 9 | {{{{raw}}}} 10 | @[Showcase] 11 | {{{{/raw}}}} 12 | -------------------------------------------------------------------------------- /demo/nuxtent.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: { 3 | permalink: ':slug', 4 | page: '/_content', 5 | isPost: false 6 | }, 7 | 8 | api: { 9 | baseURL: process.env.NODE_ENV === 'production' 10 | ? 'https://nuxtent-template.now.sh' 11 | : 'http://localhost:3000' 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /template/nuxtent.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: { 3 | permalink: ':slug', 4 | page: '/_content', 5 | generate: [ // for static build 6 | 'get', 'getAll' 7 | ], 8 | isPost: false 9 | }, 10 | api: { 11 | baseURL: 'http://localhost:3000', 12 | browserBaseURL: 'http://localhost:3000' 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /demo/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | browser: true, 5 | node: true 6 | }, 7 | parserOptions: { 8 | parser: 'babel-eslint' 9 | }, 10 | extends: [ 11 | "plugin:vue/recommended" 12 | 13 | ], 14 | plugins: [ 15 | 'vue' 16 | ], 17 | // add your custom rules here 18 | rules: {}, 19 | globals: {} 20 | } 21 | -------------------------------------------------------------------------------- /template/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | browser: true, 5 | node: true 6 | }, 7 | parserOptions: { 8 | parser: 'babel-eslint' 9 | }, 10 | extends: [ 11 | "plugin:vue/recommended" 12 | 13 | ], 14 | plugins: [ 15 | 'vue' 16 | ], 17 | // add your custom rules here 18 | rules: {}, 19 | globals: {} 20 | } 21 | -------------------------------------------------------------------------------- /demo/.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # logs 5 | npm-debug.log 6 | 7 | # Nuxt build 8 | .nuxt 9 | 10 | # Nuxt generate 11 | dist 12 | 13 | 14 | # Logs 15 | logs 16 | *.log 17 | npm-debug.log* 18 | yarn-debug.log* 19 | yarn-error.log* 20 | 21 | # Optional eslint cache 22 | .eslintcache 23 | 24 | # Yarn Integrity file 25 | .yarn-integrity 26 | 27 | # dotenv environment variables file 28 | .env -------------------------------------------------------------------------------- /template/.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # logs 5 | npm-debug.log 6 | 7 | # Nuxt build 8 | .nuxt 9 | 10 | # Nuxt generate 11 | dist 12 | 13 | 14 | # Logs 15 | logs 16 | *.log 17 | npm-debug.log* 18 | yarn-debug.log* 19 | yarn-error.log* 20 | 21 | # Optional eslint cache 22 | .eslintcache 23 | 24 | # Yarn Integrity file 25 | .yarn-integrity 26 | 27 | # dotenv environment variables file 28 | .env -------------------------------------------------------------------------------- /template/README.md: -------------------------------------------------------------------------------- 1 | # {{ name }} 2 | 3 | > {{ description }} 4 | 5 | ## Build Setup 6 | 7 | ``` bash 8 | # enter directory Nuxt source directory 9 | $ cd site 10 | 11 | # install dependencies 12 | $ npm install # Or yarn install 13 | 14 | # serve with hot reload at localhost:3000 15 | $ npm run dev 16 | 17 | # build for production and launch server 18 | $ npm run build 19 | $ npm start 20 | 21 | # generate static project 22 | $ npm run generate 23 | ``` 24 | 25 | For detailed explanation on how things work, checkout the [nuxt.js](https://github.com/nuxt/nuxt.js) and [nuxt-content](https://github.com/nuxt-community/nuxtent) docs. 26 | -------------------------------------------------------------------------------- /demo/pages/_content.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 15 | 16 | 31 | -------------------------------------------------------------------------------- /demo/README.md: -------------------------------------------------------------------------------- 1 | # nuxtent-template 2 | 3 | > nuxtent template demo 4 | 5 | ## Build Setup 6 | 7 | ``` bash 8 | # enter directory Nuxt source directory 9 | $ cd site 10 | 11 | # install dependencies 12 | $ npm install # Or yarn install 13 | 14 | # serve with hot reload at localhost:3000 15 | $ npm run dev 16 | 17 | # build for production and launch server 18 | $ npm run build 19 | $ npm start 20 | 21 | # generate static project 22 | $ npm run generate 23 | ``` 24 | 25 | For detailed explanation on how things work, checkout the [nuxt.js](https://github.com/nuxt/nuxt.js) and [nuxt-content](https://github.com/nuxt-community/nuxtent-module) docs. 26 | -------------------------------------------------------------------------------- /template/pages/_content.vue: -------------------------------------------------------------------------------- 1 | {{{{raw}}}} 2 | 8 | {{{{/raw}}}} 9 | 10 | 17 | 18 | 33 | -------------------------------------------------------------------------------- /meta.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | helpers: { 3 | raw: function(options) { 4 | return options.fn(this) 5 | } 6 | }, 7 | prompts: { 8 | name: { 9 | 'type': 'string', 10 | 'required': true, 11 | 'message': 'Content Site name' 12 | }, 13 | description: { 14 | 'type': 'string', 15 | 'required': false, 16 | 'message': 'Site description', 17 | 'default': 'Nuxt.js Content Site' 18 | }, 19 | author: { 20 | 'type': 'string', 21 | 'message': 'Author' 22 | }, 23 | }, 24 | completeMessage: '{{#inPlace}}To get started:\n\n npm install # Or yarn\n npm run dev{{else}}To get started:\n\n cd {{destDirName}}\n npm install # Or yarn\n npm run dev{{/inPlace}}' 25 | }; 26 | -------------------------------------------------------------------------------- /template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "{{ name }}", 3 | "version": "1.0.0", 4 | "description": "{{ description }}", 5 | "author": "{{ autor }}", 6 | "private": true, 7 | "dependencies": { 8 | "nuxtent": "latest", 9 | "nuxt": "^1.0.0-rc11", 10 | "@nuxtjs/axios": "latest" 11 | }, 12 | "scripts": { 13 | "dev": "nuxt", 14 | "build": "nuxt build", 15 | "start": "nuxt start", 16 | "generate": "nuxt generate", 17 | "lint": "eslint --fix --ext .js,.vue --ignore-path .gitignore .", 18 | "deploy": "push-dir --dir=dist --branch=gh-pages --cleanup", 19 | "precommit": "npm run lint" 20 | }, 21 | "devDependencies": { 22 | "babel-eslint": "^8.2.2", 23 | "eslint": "^4.19.1", 24 | "eslint-plugin-vue": "^4.4.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /demo/nuxt.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | head: { 3 | title: 'Nuxtent Starter', 4 | meta: [ 5 | { charset: 'utf-8' }, 6 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 7 | { hid: 'description', name: 'description', content: 'Nuxtent project' } 8 | ], 9 | link: [ 10 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } 11 | ] 12 | }, 13 | build: { 14 | extend (config, ctx) { 15 | if (ctx.isClient) { 16 | config.module.rules.push({ 17 | enforce: 'pre', 18 | test: /\.(js|vue)$/, 19 | loader: 'eslint-loader', 20 | exclude: /(node_modules)/ 21 | }) 22 | } 23 | } 24 | }, 25 | modules: [ 26 | ['nuxtent'] 27 | ], 28 | loading: { color: '#3B8070' } 29 | } 30 | -------------------------------------------------------------------------------- /template/nuxt.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | head: { 3 | title: 'Nuxtent Starter', 4 | meta: [ 5 | { charset: 'utf-8' }, 6 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 7 | { hid: 'description', name: 'description', content: 'Nuxtent project' } 8 | ], 9 | link: [ 10 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } 11 | ] 12 | }, 13 | build: { 14 | extend (config, ctx) { 15 | if (ctx.isClient) { 16 | config.module.rules.push({ 17 | enforce: 'pre', 18 | test: /\.(js|vue)$/, 19 | loader: 'eslint-loader', 20 | exclude: /(node_modules)/ 21 | }) 22 | } 23 | } 24 | }, 25 | modules: [ 26 | ['nuxtent'] 27 | ], 28 | loading: { color: '#3B8070' } 29 | } 30 | -------------------------------------------------------------------------------- /demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nuxtent-starter", 3 | "version": "1.0.0", 4 | "description": "nuxtent starter demo", 5 | "author": "", 6 | "private": true, 7 | "dependencies": { 8 | "@nuxtjs/axios": "latest", 9 | "nuxt": "1.4.0", 10 | "nuxtent": "^1.4.1" 11 | }, 12 | "scripts": { 13 | "dev": "nuxt", 14 | "build": "NODE_ENV='production' nuxt build", 15 | "start": "NODE_ENV='production' nuxt start", 16 | "generate": "NODE_ENV='production' IS_STATIC=true nuxt generate", 17 | "lint": "eslint --fix --ext .js,.vue --ignore-path .gitignore .", 18 | "deploy": "push-dir --dir=dist --branch=gh-pages --cleanup", 19 | "precommit": "npm run lint" 20 | }, 21 | "devDependencies": { 22 | "babel-eslint": "^8.2.2", 23 | "eslint": "^4.19.1", 24 | "eslint-plugin-vue": "^4.4.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /demo/pages/index.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 42 | -------------------------------------------------------------------------------- /template/pages/index.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nuxtent Template 2 | 3 | A [nuxtjs](https://github.com/nuxt/nuxt.js) and [nuxtent](https://github.com/nuxt-community/nuxtent) template. 4 | 5 | ## Installation 6 | 7 | This is a site template for [vue-cli](https://github.com/vuejs/vue-cli). 8 | 9 | ``` bash 10 | $ vue init nuxt-community/nuxtent-template my-site 11 | $ cd my-site 12 | # install dependencies 13 | $ npm install # Or yarn install 14 | ``` 15 | 16 | > Make sure to use a version of vue-cli >= 2.1 (`vue -V`). 17 | 18 | ## Usage 19 | 20 | ### Development 21 | 22 | ``` bash 23 | # serve with hot reloading at localhost:3000 24 | $ npm run dev 25 | ``` 26 | 27 | Go to [http://localhost:3000](http://localhost:3000) 28 | 29 | ### Production 30 | 31 | ``` bash 32 | # build for production and launch the server 33 | $ npm run build 34 | $ npm start 35 | ``` 36 | 37 | ### Generate 38 | 39 | ``` bash 40 | # generate a static project 41 | $ npm run generate 42 | ``` 43 | 44 | For detailed explanation on how things work, checkout the [nuxt.js](https://github.com/nuxt/nuxt.js) and [nuxtent](https://github.com/nuxt-community/nuxtent) docs. 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 NUXT 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /demo/layouts/default.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 87 | -------------------------------------------------------------------------------- /template/layouts/default.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 87 | -------------------------------------------------------------------------------- /demo/components/Showcase.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 88 | -------------------------------------------------------------------------------- /template/components/Showcase.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 88 | --------------------------------------------------------------------------------