Skip to content

Commit

Permalink
Initial project and build setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Rose committed Apr 25, 2021
1 parent 9c9be9b commit 7920a55
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*~
.idea
.project
.settings
*.sublime-workspace/
.DS_Store

*.log

node_modules
_site
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fermium
32 changes: 32 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# If not set, defaults to the root directory.
# base = "project/"

# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "_site"

# Default build command.
command = "npm run build"

[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"

[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "frame-ancestors https://www.facebook.com"

# Multi-value headers are expressed with multi-line strings.
cache-control = '''
max-age=0,
no-cache,
no-store,
must-revalidate'''
284 changes: 284 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "nestflix",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"prestart": "strict-npm-engines",
"prebuild": "strict-npm-engines",
"start": "",
"build": "mkdir -p _site && echo hello > _site/index.html"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lynnandtonic/nestflix.git"
},
"bugs": {
"url": "https://github.com/lynnandtonic/nestflix/issues"
},
"homepage": "https://github.com/lynnandtonic/nestflix#readme",
"engines": {
"node": ">=14",
"npm": ">=6.14"
},
"devDependencies": {
"strict-npm-engines": "0.0.1"
}
}

0 comments on commit 7920a55

Please sign in to comment.