Skip to content

Instantly share code, notes, and snippets.

@twenty
Created June 19, 2020 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twenty/0812513fddef58f7aec7ac222bf887ec to your computer and use it in GitHub Desktop.
Save twenty/0812513fddef58f7aec7ac222bf887ec to your computer and use it in GitHub Desktop.
now.json & package.json
{
"version": 2,
"builds": [
{
"src": "build/static/**/*",
"use": "@now/static"
},
{
"src": "robots.txt",
"use": "@now/static"
},
{
"src": "favicon.ico",
"use": "@now/static"
},
{
"src": "build/server.js",
"use": "@now/node"
},
{
"src": "package.json",
"use": "@now/node-server"
}
],
"routes": [
{
"src": "/robots.txt",
"dest": "/robots.txt"
},
{
"src": "/static/(.*)",
"dest": "/build/static/$1"
},
{
"src": "/(.*)",
"dest": "/build/server.js"
}
]
}
{
"name": "example",
"version": "1.0.0",
"private": true,
"description": "Frontity project",
"keywords": [
"frontity"
],
"engines": {
"node": "12.x"
},
"scripts": {
"main": "server.js",
"start": "node build/server.js",
"dev": "frontity dev --dont-open-browser",
"build": "frontity build",
"serve": "frontity serve",
"deploy": "npx frontity build && npx now --prod",
"postInstall": "npm install --no-save --no-optional fabric@^1.6.7"
},
"prettier": {},
"dependencies": {
"@frontity/core": "^1.4.1",
"@frontity/html2react": "^1.1.15",
"@frontity/mars-theme": "./packages/mars-theme",
"@frontity/tiny-router": "^1.0.18",
"@frontity/wp-source": "^1.4.3",
"@frontity/yoast": "^1.1.6",
"animate.css": "^3.7.2",
"bootstrap": "^4.4.1",
"canvas": "^2.6.1",
"formik": "^2.1.2",
"frontity": "^1.4.4",
"jsdom": "^15.2.1",
"react-bootstrap": "^1.0.0-beta.16",
"react-ga": "^2.7.0",
"react-hotjar": "^2.0.4",
"react-images": "^1.1.0-beta.1",
"react-places-autocomplete": "^7.2.1",
"react-select": "^3.0.8",
"react-stripe-elements": "^6.0.1",
"react-transition-group": "^4.4.1",
"react-typed": "^1.2.0",
"react-wow": "^1.0.0",
"xmldom": "^0.2.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment