Skip to content

Commit def20d1

Browse files
committed
Add a netlify script
1 parent aada018 commit def20d1

3 files changed

Lines changed: 133 additions & 2 deletions

File tree

docs/robots.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
layout: null
32
---
43

54
# www.robotstxt.org/
65

76
# Allow crawling of all content
87
User-agent: *
9-
Disallow: /*?*
8+
Disallow:{% if jekyll.environment == "netlify" %} /{% endif %}
109
Sitemap: {{ site.url }}/sitemap.xml

package-lock.json

Lines changed: 130 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
3030
"lint": "npm-run-all --continue-on-error --parallel lockfile-lint stylelint xo",
3131
"xo": "xo",
32+
"netlify": "cross-env-shell JEKYLL_ENV=netlify npm-run-all build docs-build",
3233
"test": "npm-run-all lint build docs-build",
3334
"watch": "npm-run-all --parallel watch-*",
3435
"watch-css": "chokidar \"{src,docs/_sass}/**/*.{css,scss}\" --initial --command \"npm run stylelint\"",
@@ -37,6 +38,7 @@
3738
},
3839
"devDependencies": {
3940
"chokidar-cli": "^3.0.0",
41+
"cross-env": "^7.0.3",
4042
"html-minifier": "^4.0.0",
4143
"inline-source-cli": "^2.0.0",
4244
"lockfile-lint": "^4.9.6",

0 commit comments

Comments
 (0)