├── .editorconfig ├── .gitignore ├── README.md ├── components └── Tutorial.vue ├── nuxt.config.js ├── package.json ├── pages └── index.vue ├── renovate.json ├── sandbox.config.json ├── static └── favicon.ico └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Node template 3 | # Logs 4 | logs 5 | *.log 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | 10 | # Runtime data 11 | pids 12 | *.pid 13 | *.seed 14 | *.pid.lock 15 | 16 | # Directory for instrumented libs generated by jscoverage/JSCover 17 | lib-cov 18 | 19 | # Coverage directory used by tools like istanbul 20 | coverage 21 | 22 | # nyc test coverage 23 | .nyc_output 24 | 25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 26 | .grunt 27 | 28 | # Bower dependency directory (https://bower.io/) 29 | bower_components 30 | 31 | # node-waf configuration 32 | .lock-wscript 33 | 34 | # Compiled binary addons (https://nodejs.org/api/addons.html) 35 | build/Release 36 | 37 | # Dependency directories 38 | node_modules/ 39 | jspm_packages/ 40 | 41 | # TypeScript v1 declaration files 42 | typings/ 43 | 44 | # Optional npm cache directory 45 | .npm 46 | 47 | # Optional eslint cache 48 | .eslintcache 49 | 50 | # Optional REPL history 51 | .node_repl_history 52 | 53 | # Output of 'npm pack' 54 | *.tgz 55 | 56 | # Yarn Integrity file 57 | .yarn-integrity 58 | 59 | # dotenv environment variables file 60 | .env 61 | 62 | # parcel-bundler cache (https://parceljs.org/) 63 | .cache 64 | 65 | # next.js build output 66 | .next 67 | 68 | # nuxt.js build output 69 | .nuxt 70 | 71 | # Nuxt generate 72 | dist 73 | 74 | # vuepress build output 75 | .vuepress/dist 76 | 77 | # Serverless directories 78 | .serverless 79 | 80 | # IDE 81 | .idea 82 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # codesandbox-nuxt 2 | 3 | > Nuxt starter for CodeSandBox (used for https://template.nuxtjs.org) 4 | 5 | ## Build Setup 6 | 7 | ```bash 8 | # install dependencies 9 | $ yarn install 10 | 11 | # serve with hot reload at localhost:3000 12 | $ yarn run dev 13 | 14 | # build for production and launch server 15 | $ yarn run build 16 | $ yarn start 17 | 18 | # generate static project 19 | $ yarn run generate 20 | ``` 21 | 22 | For detailed explanation on how things work, checkout [Nuxt.js docs](https://nuxtjs.org). 23 | 24 | ## Special Directories 25 | 26 | You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality. 27 | 28 | ### `assets` 29 | 30 | The assets directory contains your uncompiled assets such as Stylus or Sass files, images, or fonts. 31 | 32 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/assets). 33 | 34 | ### `components` 35 | 36 | The components directory contains your Vue.js components. Components make up the different parts of your page and can be reused and imported into your pages, layouts and even other components. 37 | 38 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/components). 39 | 40 | ### `layouts` 41 | 42 | Layouts are a great help when you want to change the look and feel of your Nuxt app, whether you want to include a sidebar or have distinct layouts for mobile and desktop. 43 | 44 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts). 45 | 46 | ### `pages` 47 | 48 | This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically. 49 | 50 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/get-started/routing). 51 | 52 | ### `plugins` 53 | 54 | The plugins directory contains JavaScript plugins that you want to run before instantiating the root Vue.js Application. This is the place to add Vue plugins and to inject functions or constants. Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to plugins in `nuxt.config.js`. 55 | 56 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/plugins). 57 | 58 | ### `static` 59 | 60 | This directory contains your static files. Each file inside this directory is mapped to `/`. 61 | 62 | Example: `/static/robots.txt` is mapped as `/robots.txt`. 63 | 64 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/static). 65 | 66 | ### `store` 67 | 68 | This directory contains your Vuex store files. Creating a file in this directory automatically activates Vuex. 69 | 70 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/store). 71 | -------------------------------------------------------------------------------- /components/Tutorial.vue: -------------------------------------------------------------------------------- 1 | 2 | 82 | -------------------------------------------------------------------------------- /nuxt.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | /* 3 | ** Headers of the page 4 | ** Doc: https://vue-meta.nuxtjs.org/api/#metainfo-properties 5 | */ 6 | head: { 7 | title: "Nuxt.js starter for CSB", 8 | meta: [ 9 | { charset: "utf-8" }, 10 | { name: "viewport", content: "width=device-width, initial-scale=1" }, 11 | { 12 | hid: "description", 13 | name: "description", 14 | content: "Official Nuxt.js starter for CodeSandBox" 15 | } 16 | ], 17 | link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }] 18 | }, 19 | 20 | // Auto import components: https://go.nuxtjs.dev/config-components 21 | components: true, 22 | 23 | /* 24 | ** Nuxt.js modules 25 | ** Doc: https://modules.nuxtjs.org 26 | */ 27 | modules: [], 28 | 29 | /* 30 | ** Global CSS 31 | ** Doc: https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-css 32 | */ 33 | css: [], 34 | 35 | /* 36 | ** Plugins to load before mounting the App 37 | ** Doc: https://nuxtjs.org/docs/2.x/directory-structure/plugins 38 | */ 39 | plugins: [] 40 | }; 41 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codesandbox-nuxt", 3 | "version": "1.0.0", 4 | "description": "Nuxt starter for CodeSandBox", 5 | "author": "Nuxt.js Team", 6 | "private": true, 7 | "scripts": { 8 | "dev": "MINIMAL=1 nuxt", 9 | "build": "nuxt build", 10 | "start": "nuxt start", 11 | "generate": "nuxt generate", 12 | "post-update": "yarn upgrade --latest" 13 | }, 14 | "dependencies": { 15 | "nuxt": "^2.15.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /pages/index.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base", 4 | ":preserveSemverRanges" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /sandbox.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "infiniteLoopProtection": true, 3 | "hardReloadOnChange": false, 4 | "view": "browser", 5 | "container": { 6 | "node": "14" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nuxt/codesandbox-nuxt/a84485f1b9c9a047e1fa4b24d6a478c1caa66322/static/favicon.ico --------------------------------------------------------------------------------