-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
82 lines (82 loc) · 3.06 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
79
80
81
82
{
"name": "photobot",
"version": "1.0.3",
"main": "./src/bot.js",
"license": "MIT",
"scripts-info": {
"build:index": "Configure Google Cloud Datastore composite indexes",
"start:dev:bot": "Launch the bot daemon in dev mode",
"start:dev:api": "Launch the backend API in dev mode",
"build": "Builds the transpiled npm package under dist/npm",
"start:bot": "Run the builded code under dist/npm/src/api.js\n\t(make sure you have a build first with yarn run build:npm)",
"start:api": "Run the builded code under dist/npm/src/bot.js\n\t(make sure you have a build first with yarn run build:npm)",
"start": "Starts both the bot and api servers in production mode",
"monitor": "Launch daemons monitors",
"ppp": "Increases the version patch number, push to github and publish to npm",
"mpp": "Increases the version minor number, push to github and publish to npm"
},
"scripts": {
"info": "npm-scripts-info",
"build:index": "gcloud preview datastore create-indexes index.yaml",
"start": "yarn start:api & yarn start:bot",
"start:api": "pm2 start --name api --log ./logs/api.log dist/npm/src/api.js",
"start:bot": "pm2 start --name bot --log ./logs/bot.log dist/npm/src/bot.js",
"monitor": "pm2 monit",
"stop": "pm2 delete all",
"start:dev:bot": "babel-node ./src/bot.js",
"start:dev:api": "babel-node ./src/api.js",
"build": "yarn build:npm",
"build:npm": "babel --ignore node_modules,dist,tasks --out-dir ./dist/npm .",
"prebuild:npm": "babel-node ./tasks/npmPreBuild.js",
"publish:npm": "npm publish ./dist/npm",
"prepublish:npm": "npm run build:npm && babel-node ./tasks/npmPrePublish.js",
"ppp": "npm version patch && git push && git push --tags && npm run publish:npm",
"mpp": "npm version minor && git push && git push --tags && npm run publish:npm"
},
"babel": {
"plugins": [
"transform-es2015-modules-commonjs",
"transform-object-rest-spread"
]
},
"eslintConfig": {
"extends": "calamar"
},
"devDependencies": {
"babel-cli": "^6.16.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.16.0",
"babel-plugin-transform-object-rest-spread": "^6.16.0",
"eslint": "^3.8.0",
"eslint-config-calamar": "^2.1.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^2.0.1",
"npm-scripts-info": "^0.3.6",
"pm2": "^2.0.18",
"shelljs": "^0.7.4"
},
"description": "A Telegram bot that receives photo attachments from users and store them on a different server.",
"repository": {
"type": "git",
"url": "git+https://github.com/fczuardi/photobot.git"
},
"keywords": [
"photo",
"telegram",
"latinoware",
"telasocial"
],
"author": "Fabricio C Zuardi",
"bugs": {
"url": "https://github.com/fczuardi/photobot/issues"
},
"homepage": "https://github.com/fczuardi/photobot#readme",
"dependencies": {
"body-parser": "^1.15.2",
"download": "^5.0.2",
"express": "^4.14.0",
"fast-crc32c": "^1.0.4",
"file-exists": "^2.0.0",
"google-cloud": "^0.41.2",
"telegraf": "^3.2.2"
}
}