/
package.json
54 lines (54 loc) · 2.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "next-firebase-functions",
"version": "3.0.0",
"description": "Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects and Docker.",
"scripts": {
"dev": "next -p 5000 src/app",
"preserve": "yarn build-public && yarn build-funcs && yarn copy-deps",
"serve": "cd dist/functions && firebase serve -p 3000 --debug -o 0.0.0.0",
"deploy": "cd dist/functions && firebase deploy",
"clean": "rimraf dist && mkdir -p dist/functions",
"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,serviceAccountKey.json}\" \"dist/functions\" -C",
"install-deps": "cd \"dist/functions\" && yarn install",
"docker:dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up",
"docker:serve": "docker-compose -f docker-compose.yml -f docker-compose.serve.yml up",
"docker:deploy": "docker-compose -f docker-compose.yml -f docker-compose.deploy.yml up",
"docker:down": "docker-compose down -v",
"docker:sh": "docker-compose exec server sh",
"logs": "firebase functions:log",
"shell": "firebase functions:shell"
},
"dependencies": {
"body-parser": "^1.18.3",
"compression": "^1.7.3",
"cors": "^2.8.4",
"express": "^4.16.3",
"firebase-admin": "8.9.0",
"firebase-functions": "^2.0.5",
"helmet": "^3.13.0",
"next": "latest",
"prop-types": "^15.6.2",
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"devDependencies": {
"@babel/cli": "^7.1.0",
"@babel/core": "^7.1.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-async-to-generator": "^7.1.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"babel-plugin-module-resolver": "^3.1.1",
"cpx": "^1.5.0",
"prettier": "^1.14.3",
"rimraf": "^2.6.2"
},
"engines": {
"node": "8"
}
}