2017-07-26 05:52:49 +00:00
|
|
|
{
|
|
|
|
"name": "with-firebase-hosting",
|
2018-06-12 15:37:13 +00:00
|
|
|
"version": "4.0.1",
|
2018-12-11 10:45:58 +00:00
|
|
|
"description": "Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects.",
|
|
|
|
"engines": {
|
|
|
|
"node": "8"
|
|
|
|
},
|
2017-07-26 05:52:49 +00:00
|
|
|
"scripts": {
|
2018-06-12 15:37:13 +00:00
|
|
|
"dev": "next \"src/app/\"",
|
2018-12-11 10:45:58 +00:00
|
|
|
"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",
|
2017-07-26 05:52:49 +00:00
|
|
|
"deploy": "firebase deploy",
|
2018-05-21 08:28:09 +00:00
|
|
|
"clean": "rimraf \"dist/functions/**\" && rimraf \"dist/public\"",
|
2018-02-28 10:54:48 +00:00
|
|
|
"build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C",
|
|
|
|
"build-funcs": "babel \"src/functions\" --out-dir \"dist/functions\"",
|
2018-06-12 15:37:13 +00:00
|
|
|
"build-app": "next build \"src/app/\"",
|
2018-12-11 10:45:58 +00:00
|
|
|
"copy-deps": "cpx \"*{package.json,package-lock.json,yarn.lock}\" \"dist/functions\" -C",
|
2018-06-12 15:37:13 +00:00
|
|
|
"install-deps": "cd \"dist/functions\" && npm i"
|
2018-02-28 10:54:48 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-12-11 10:45:58 +00:00
|
|
|
"firebase-admin": "^6.3.0",
|
|
|
|
"firebase-functions": "^2.1.0",
|
|
|
|
"next": "^7.0.0",
|
|
|
|
"react": "^16.6.0",
|
|
|
|
"react-dom": "^16.6.0"
|
2018-02-28 10:54:48 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-12-11 10:45:58 +00:00
|
|
|
"@babel/cli": "^7.2.0",
|
|
|
|
"cpx": "^1.5.0",
|
|
|
|
"cross-env": "^5.2.0",
|
|
|
|
"firebase-tools": "^6.1.0",
|
|
|
|
"rimraf": "^2.6.0"
|
2017-07-26 05:52:49 +00:00
|
|
|
}
|
2018-06-12 15:37:13 +00:00
|
|
|
}
|