2017-07-26 05:52:49 +00:00
|
|
|
{
|
|
|
|
"name": "with-firebase-hosting",
|
2018-06-12 15:37:13 +00:00
|
|
|
"version": "4.0.1",
|
|
|
|
"description":
|
|
|
|
"Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects.",
|
2017-07-26 05:52:49 +00:00
|
|
|
"scripts": {
|
2018-06-12 15:37:13 +00:00
|
|
|
"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",
|
2018-05-21 08:28:09 +00:00
|
|
|
"serve": "NODE_ENV=production firebase serve",
|
2018-06-12 15:37:13 +00:00
|
|
|
"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/\"",
|
|
|
|
"copy-deps":
|
|
|
|
"cpx \"*{package.json,package-lock.json,yarn.lock}\" \"dist/functions\" -C",
|
|
|
|
"install-deps": "cd \"dist/functions\" && npm i"
|
2018-02-28 10:54:48 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-06-12 15:37:13 +00:00
|
|
|
"firebase-admin": "^5.12.1",
|
|
|
|
"firebase-functions": "^1.0.2",
|
|
|
|
"next": "^6.0.3",
|
|
|
|
"react": "^16.3.2",
|
|
|
|
"react-dom": "^16.3.2"
|
2018-02-28 10:54:48 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-08-13 17:34:08 +00:00
|
|
|
"@babel/cli": "^7.0.0-rc.1",
|
2018-05-21 08:28:09 +00:00
|
|
|
"cpx": "1.5.0",
|
|
|
|
"firebase-tools": "3.18.4",
|
|
|
|
"prettier": "1.12.1",
|
|
|
|
"rimraf": "2.6.2"
|
2017-07-26 05:52:49 +00:00
|
|
|
}
|
2018-06-12 15:37:13 +00:00
|
|
|
}
|