-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
78 lines (78 loc) · 2.86 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "functions-nextjs",
"version": "1.0.0",
"description": "Next.js SSR React on Cloud Functions for Firebase with Firebase Hosting",
"license": "MIT",
"main": "dist/server/index.js",
"scripts": {
"build": "yarn build:client && yarn build:server",
"build:clean": "rimraf dist/ && yarn build",
"build:client": "next build src/client",
"build:server": "babel src/server --out-dir dist/server --source-maps",
"deploy:production": "cross-env NODE_ENV=production FB_ENV=production yarn loadenv ./scripts/deploy.sh",
"deploy:staging": "cross-env NODE_ENV=production yarn loadenv ./scripts/deploy.sh",
"dev": "cross-env NODE_ENV=development yarn dev:client & yarn dev:server",
"dev:client": "next dev src/client",
"dev:server": "babel src/server --out-dir dist/server --source-maps --watch",
"loadenv": "./scripts/loadenv.js",
"preview:production": "cross-env NODE_ENV=production FB_ENV=production yarn loadenv ./scripts/preview.sh",
"preview:staging": "cross-env NODE_ENV=production yarn loadenv ./scripts/preview.sh",
"setup": "./scripts/setup.js",
"test": "yarn test:unit && yarn test:cypress",
"test:cypress": "yarn loadenv yarn start-server-and-test '[ -z %STATIC_STAGE_PROJECT ] && yarn preview:production > /dev/null || yarn preview:staging > /dev/null' 3000 'cypress run'",
"test:cypress:watch": "start-server-and-test 'yarn dev > /dev/null' 3000 'cypress open'",
"test:unit": "mocha ./**/*.unit.test.ts",
"test:unit:watch": "yarn test:unit --watch",
"update": "git-upstream-template $npm_package_template_repo"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"@zeit/next-typescript": "^1.1.1",
"dotenv-load": "^2.0.0",
"firebase": "^7.11.0",
"firebase-admin": "^8.10.0",
"firebase-functions": "3.3.0",
"next": "^9.2.1",
"next-env": "^1.1.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"styled-components": "^4.4.1",
"usefire": "^1.1.6"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"@firebase/app-types": "^0.5.0",
"@types/chai": "^4.2.11",
"@types/dotenv": "^8.2.0",
"@types/mocha": "^7.0.1",
"@types/next": "^9.0.0",
"@types/react": "^16.9.25",
"@types/styled-components": "^4.4.3",
"babel-plugin-transform-node-env-inline": "^0.4.3",
"chai": "^4.2.0",
"cross-env": "^6.0.3",
"cypress": "^4.2.0",
"dotenv": "^8.2.0",
"firebase-functions-test": "^0.1.7",
"firebase-tools": "7.15.0",
"git-upstream-template": "1.0.6",
"gitconfiglocal": "^2.1.0",
"husky": "^3.1.0",
"inquirer": "^7.1.0",
"mocha": "^7.0.1",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.2",
"sort-package-json": "^1.40.0",
"start-server-and-test": "^1.10.10",
"travis-encrypt": "^2.1.1",
"ts-node": "^8.6.2",
"typescript": "^3.8.3"
},
"engines": {
"node": "8"
},
"template_repo": "git@github.com:rioam2/starter-firebase-nextjs.git"
}