rsnext/examples/with-firebase-hosting/package.json

37 lines
1.3 KiB
JSON

{
"name": "with-firebase-hosting",
"version": "4.0.1",
"description": "Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects.",
"engines": {
"node": "8"
},
"scripts": {
"dev": "next \"src/app/\"",
"preserve": "npm run build-public && npm run build-funcs && npm run build-app && npm run copy-deps && npm run install-deps",
"serve": "cross-env NODE_ENV=production firebase serve",
"predeploy": "npm run build-public && npm run build-funcs && npm run build-app && npm run copy-deps",
"deploy": "firebase deploy",
"clean": "rimraf \"dist/functions/**\" && rimraf \"dist/public\"",
"build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C",
"build-funcs": "babel \"src/functions\" --out-dir \"dist/functions\"",
"build-app": "next build \"src/app/\"",
"copy-deps": "cpx \"*{package.json,package-lock.json,yarn.lock}\" \"dist/functions\" -C",
"install-deps": "cd \"dist/functions\" && npm i"
},
"dependencies": {
"firebase-admin": "^8.2.0",
"firebase-functions": "^2.1.0",
"grpc": "^1.22.2",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"devDependencies": {
"@babel/cli": "^7.2.0",
"cpx": "^1.5.0",
"cross-env": "^5.2.0",
"firebase-functions-test": "^0.1.6",
"firebase-tools": "^6.1.0",
"rimraf": "^2.6.0"
}
}