package.json 5.71 KB
Newer Older
Hugo NOUTS's avatar
Hugo NOUTS committed
1
{
Yoan VALLET's avatar
Yoan VALLET committed
2
  "name": "ecolyo",
Guilhem CARRON's avatar
Guilhem CARRON committed
3
  "version": "1.7.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
4
5
6
  "scripts": {
    "tx": "tx pull --all || true",
    "lint": "yarn lint:js && yarn lint:styles",
Guilhem CARRON's avatar
Guilhem CARRON committed
7
    "lint:js": "cs lint {src,test}/**/*.{js,jsx,ts,tsx}",
Hugo NOUTS's avatar
Hugo NOUTS committed
8
9
10
    "lint:styles": "stylint src/styles --config ./.stylintrc",
    "prebuild": "yarn lint",
    "build:cs": "build:browser",
11
12
    "build-dev:browser": "cs build --browser --config app.config.alpha.js",
    "build-dev:mobile": "cs build --mobile --config app.config.alpha.js",
13
    "build:browser": "cs build --browser ",
Hugo NOUTS's avatar
Hugo NOUTS committed
14
15
    "build:mobile": "cs build --mobile",
    "watch": "yarn watch:browser",
16
    "watch:browser": "cs start --browser",
Hugo NOUTS's avatar
Hugo NOUTS committed
17
    "watch:mobile": "cs watch --mobile",
18
    "start:cs": "cs start --hot --browser --no-stack ",
19
    "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build}",
20
    "deploy-dev": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-dev}",
Yoan VALLET's avatar
Yoan VALLET committed
21
    "deploy-test": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-test} --repo=${DEPLOY_REPOSITORY:-https://forge.grandlyon.com/web-et-numerique/llle_project/ecolyo.git}",
Hugo NOUTS's avatar
Hugo NOUTS committed
22
23
24
25
26
27
    "test": "cs test --verbose --coverage",
    "cozyPublish": "git fetch origin ${DEPLOY_BRANCH:-build}:${DEPLOY_BRANCH:-build} && cs publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})",
    "build:css": "node-sass -c ./src/styles -o src/styles",
    "watch:css": "yarn run build:css && node-sass -c -w ./src/styles -o src/styles",
    "start": "npm-run-all -p start:cs",
    "build": "yarn run build:css && yarn run build:browser",
28
    "build-dev": "yarn run build:css && yarn run build-dev:browser",
Hugo NOUTS's avatar
Hugo NOUTS committed
29
    "release": "standard-version --no-verify",
30
31
    "winstack": "start powershell -command docker run --rm -it -p 8080:8080 -p 5984:5984 -p 8025:8025 -v $PWD/build:/data/cozy-app/ecolyo -v $PWD/data:/usr/local/couchdb/data -v $PWD/docker/disableCSP.yaml:/etc/cozy/cozy.yaml registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env",
    "linuxstack": "docker run --rm -it -p 8080:8080 -p 5984:5984 -p 8025:8025 -v $(pwd)/build:/data/cozy-app/ecolyo -v ~/cozy/data/db:/usr/local/couchdb/data -v ~/cozy/data/storage:/data/cozy-storage -v $(pwd)/docker/disableCSP.yaml:/etc/cozy/cozy.yaml registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env",
Yoan VALLET's avatar
Yoan VALLET committed
32
    "load-data": "cd test && importData.bat",
Hugo's avatar
Hugo committed
33
    "start-stack": "cs start --hot --browser --stack"
Hugo NOUTS's avatar
Hugo NOUTS committed
34
35
36
  },
  "repository": {
    "type": "git",
Yoan VALLET's avatar
Yoan VALLET committed
37
    "url": "git+https://forge.grandlyon.com/web-et-numerique/llle_project/ecolyo.git"
Hugo NOUTS's avatar
Hugo NOUTS committed
38
39
40
41
42
  },
  "author": "",
  "contributors": [],
  "license": "AGPL-3.0",
  "bugs": {
Yoan VALLET's avatar
Yoan VALLET committed
43
    "url": "https://forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/issues"
Hugo NOUTS's avatar
Hugo NOUTS committed
44
  },
Yoan VALLET's avatar
Yoan VALLET committed
45
  "homepage": "https://forge.grandlyon.com/web-et-numerique/llle_project/ecolyo#readme",
Hugo NOUTS's avatar
Hugo NOUTS committed
46
47
  "devDependencies": {
    "@babel/preset-typescript": "^7.7.4",
48
    "@testing-library/react-hooks": "^5.0.0",
49
    "@types/classnames": "^2.2.10",
Hugo NOUTS's avatar
Hugo NOUTS committed
50
    "@types/d3": "^5.7.2",
Yoan VALLET's avatar
Yoan VALLET committed
51
    "@types/enzyme": "^3.10.8",
Yoan VALLET's avatar
Yoan VALLET committed
52
53
    "@types/history": "^4.7.5",
    "@types/jest": "^24.0.25",
Hugo NOUTS's avatar
Hugo NOUTS committed
54
55
    "@types/lodash": "^4.14.149",
    "@types/luxon": "^1.21.0",
Yoan VALLET's avatar
Yoan VALLET committed
56
    "@types/node-fetch": "^2.5.7",
Yoan VALLET's avatar
Yoan VALLET committed
57
    "@types/object-hash": "^1.3.1",
Hugo NOUTS's avatar
Hugo NOUTS committed
58
    "@types/react": "^16.9.15",
Yoan VALLET's avatar
Yoan VALLET committed
59
    "@types/react-dom": "^16.9.8",
Yoan VALLET's avatar
Yoan VALLET committed
60
    "@types/react-lottie": "^1.2.3",
Yoan VALLET's avatar
Yoan VALLET committed
61
    "@types/react-redux": "^7.1.11",
Hugo NOUTS's avatar
Hugo NOUTS committed
62
    "@types/react-router-dom": "^5.1.3",
63
    "@types/redux-mock-store": "^1.0.2",
Hugo NOUTS's avatar
Hugo NOUTS committed
64
65
    "@typescript-eslint/eslint-plugin": "^2.10.0",
    "@typescript-eslint/parser": "^2.10.0",
66
    "babel-polyfill": "^6.26.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
67
    "babel-preset-cozy-app": "1.5.2",
68
    "copy-webpack-plugin": "6.4.1",
Hugo NOUTS's avatar
Hugo NOUTS committed
69
    "cozy-app-publish": "^0.22.3",
Yoan VALLET's avatar
Yoan VALLET committed
70
    "cozy-jobs-cli": "^1.13.6",
71
72
    "enzyme": "3.11.0",
    "enzyme-adapter-react-16": "1.15.6",
Hugo NOUTS's avatar
Hugo NOUTS committed
73
74
75
76
    "eslint": "^6.7.2",
    "eslint-config-prettier": "^6.7.0",
    "eslint-plugin-prettier": "^3.1.1",
    "eslint-plugin-react": "7.14.2",
77
    "eslint-plugin-react-hooks": "^4.2.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
78
    "git-directory-deploy": "1.5.1",
79
    "html-minifier-terser": "^5.1.1",
80
    "husky": "^4.3.8",
81
    "jest-canvas-mock": "^2.3.0",
Yoan VALLET's avatar
Yoan VALLET committed
82
    "jest-junit": "^12.0.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
83
84
    "lint-staged": ">=8",
    "loglevel": "^1.6.6",
85
86
    "mjml": "^4.10.2",
    "mjml-web": "^4.10.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
87
88
89
90
91
    "npm-run-all": "^4.1.5",
    "prettier": "^1.19.1",
    "prettier-eslint": "^9.0.1",
    "react-test-renderer": "16.8.6",
    "redux-mock-store": "1.5.3",
Hugo SUBTIL's avatar
Hugo SUBTIL committed
92
    "standard-version": "^9.3.1",
Hugo NOUTS's avatar
Hugo NOUTS committed
93
    "stylint": "1.5.9",
94
    "typescript": "^3.7.3",
95
    "uglifyjs-webpack-plugin": "^2.2.0",
96
    "webextension-polyfill": "^0.6.0"
Hugo NOUTS's avatar
Hugo NOUTS committed
97
98
99
100
  },
  "dependencies": {
    "@babel/plugin-transform-modules-commonjs": "^7.7.5",
    "@babel/plugin-transform-runtime": "^7.8.3",
Hugo SUBTIL's avatar
Hugo SUBTIL committed
101
    "@cozy/minilog": "^1.0.0",
102
103
    "@material-ui/core": "~4.8.3",
    "@material-ui/styles": "^4.11.3",
Hugo NOUTS's avatar
Hugo NOUTS committed
104
    "axios": "^0.19.0",
105
106
107
108
    "cozy-bar": "7.14.0",
    "cozy-client": "24.9.2",
    "cozy-harvest-lib": "6.8.0",
    "cozy-keys-lib": "^3.11.0",
109
    "cozy-realtime": "3.10.5",
110
111
    "cozy-scripts": "5.13.0",
    "cozy-ui": "51.11.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
112
    "d3": "^5.15.0",
Romain CREY's avatar
Romain CREY committed
113
    "detect-browser": "^5.1.1",
Hugo NOUTS's avatar
Hugo NOUTS committed
114
115
    "eslint-config-cozy-app": "1.1.12",
    "global": "^4.4.0",
116
117
118
    "handlebars": "^4.7.7",
    "handlebars-loader": "^1.7.1",
    "htmlparser2": "^6.1.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
119
120
    "lodash": "^4.17.15",
    "luxon": "^1.21.3",
121
    "mjml-browser": "^4.10.2",
122
    "node-sass": "^4.14.0",
123
    "null-loader": "^4.0.1",
Hugo NOUTS's avatar
Hugo NOUTS committed
124
    "object-hash": "^2.0.3",
125
126
    "react": "16.14.0",
    "react-dom": "16.14.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
127
    "react-lottie": "^1.2.3",
Yoan VALLET's avatar
Yoan VALLET committed
128
    "react-redux": "^7.2.2",
Yoan VALLET's avatar
Yoan VALLET committed
129
    "react-router-dom": "5.2.0",
Hugo NOUTS's avatar
Hugo NOUTS committed
130
    "react-swipeable-views": "0.13.4",
Yoan VALLET's avatar
Yoan VALLET committed
131
    "redux-devtools-extension": "^2.13.8",
Hugo NOUTS's avatar
Hugo NOUTS committed
132
133
134
135
136
137
138
139
140
141
142
143
144
145
    "sass-loader": "^8.0.0"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "{src,test}/**/*.{js,jsx,ts,tsx}": [
      "eslint --fix",
      "git add"
    ]
  }
}