Prepare for netlify

This commit is contained in:
curben 2018-09-30 15:47:57 +09:30
parent 34c9b29f81
commit a4490b765d
4 changed files with 1724 additions and 15 deletions

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
node

17
netlify.toml Normal file
View File

@ -0,0 +1,17 @@
[build]
command = "snyk auth $SNYK_TOKEN && snyk protect && snyk test"
[context.production]
publish = "public/"
command = "hexo generate"
[[headers]]
for = "/*"
[headers.value]
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
for = "/*\.(html|css|js)"
[headers.value]
Content-Encoding: gzip, br

1718
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@
"hexo-renderer-marked": "latest",
"hexo-renderer-stylus": "latest",
"hexo-server": "latest",
"hexo-yam": "latest"
"hexo-yam": "latest",
"snyk": "latest"
}
}