Skip to content

Commit

Permalink
[SDPA-3518] Added nuxt robots to new project (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-yao authored Nov 25, 2019
1 parent f9f551f commit aa77038
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/create-ripple-app/template/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"dependencies": {
"@dpc-sdp/ripple-nuxt-tide": "^<%= version %>",
"@nuxtjs/robots": "^2.0.0",
"dotenv": "^5.0.1",
"nuxt": "2.9.2",
"run-script-os": "^1.0.7"
Expand Down
4 changes: 3 additions & 1 deletion packages/create-ripple-app/template/nuxt/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('dotenv').config()
const robots = require('./robots')

process.env.DEBUG = 'nuxt:*' // display nuxt.js logs

Expand Down Expand Up @@ -42,7 +43,8 @@ export default {
*/
modules: [
// https://www.npmjs.com/package/@dpc-sdp/ripple-nuxt-tide
'@dpc-sdp/ripple-nuxt-tide'
'@dpc-sdp/ripple-nuxt-tide',
['@nuxtjs/robots', robots]
],
css: [
'@/assets/_custom.scss'
Expand Down
6 changes: 6 additions & 0 deletions packages/create-ripple-app/template/nuxt/robots.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This is the robots options for your site.
// Check below link to find out how to set it.
// https://github.com/nuxt-community/robots-module#using-top-level-options
const robots = {}

module.exports = robots

0 comments on commit aa77038

Please sign in to comment.