forked from Midburn/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (117 loc) · 4.92 KB
/
Copy pathpackage.json
File metadata and controls
118 lines (117 loc) · 4.92 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "spark",
"//version": [
"the version number is available to the scripts in the npm_package_version environment variable",
"this is part of the deployment proess, so it is important to update the version number",
"version name corresponds to the github release name / tag name - https://github.com/Midburn/Spark/releases"
],
"version": "2.3.2",
"private": true,
"scripts": {
"postinstall": "bower install",
"start": "node server.js",
"pretest": "npm run lint",
"test": "npm run testcore",
"testcore": "npm run create_test_db && cross-env SPARK_DB_DBNAME=spark_test mocha \"tests/**/*test.js\" ",
"//devops": "Generic deployment / devops commands, used from .travis.yml, see /docs/development/releases-and-deployment.md",
"//log": "send a generic log notification to slack",
"log": "curl -X POST -g $npm_config_webhook --data-urlencode 'payload={\"channel\": \"'\"#${npm_config_channel:-sparksystem-log}\"'\", \"username\": \"'\"${npm_config_username:-bot}\"'\", \"text\": \"'\"${npm_config_text}\"'\", \"icon_emoji\": \"'\"${npm_config_emoji:-ghost}\"'\"}'",
"//build": "builds the deployment package",
"build": "touch \"${npm_config_file}\" && tar --exclude=.github* --exclude=.idea* --exclude=.git* --exclude=*.sqlite3 --exclude=opsworks.js --exclude=*.tar.gz --exclude=vagrant --exclude=docs --exclude=.travis* --exclude=*.iml --exclude=.env --exclude=*.log -czf \"${npm_config_file}\" . && echo \"created build package: ${npm_config_file}\"",
"//upload": "uploads the deployment package to slack and returns the package private url",
"upload": "curl -F \"file=@${npm_config_file}\" -F \"filename=${npm_config_file}\" -F \"token=${npm_config_token}\" \"${npm_config_url:-https://slack.com/api/files.upload}\" | jq -r .file.url_private > \"${npm_config_file}.slack_url\"",
"//download": "download a deployment package from private slack url",
"download": "curl -H \"Authorization: Bearer ${npm_config_token}\" -g \"${npm_config_url}\" -o \"${npm_config_file}\"",
"//deploy": "prepare the directory of an extracted deployment package",
"deploy": "echo SPARK_DEPLOYMENT_TIME=\\\"$(date \"+%F %T\")\\\" >> .env",
"//lint": "runs static analysis using eslint",
"lint": "./node_modules/.bin/eslint .",
"//createdb": "bootstraps MySql with a clean spark database & user",
"createdb": "mysql -u root < migrations/create_db.sql",
"create_test_db": "cross-env SPARK_DB_DBNAME=spark_test mysql -u root --protocol=tcp < migrations/create_test_db.sql && cross-env SPARK_DB_DBNAME=spark_test knex migrate:latest",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
"dependencies": {
"async": "^2.1.4",
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-preset-react": "^6.16.0",
"babel-register": "^6.18.0",
"bcrypt-nodejs": "0.0.3",
"body-parser": "~1.17.1",
"bookshelf": "^0.10.0",
"bookshelf-json-columns": "^2.1.0",
"bootstrap": "^3.3.7",
"bootstrap-validator": "^0.11.5",
"bower": "^1.8.0",
"config": "^1.21.0",
"connect-flash": "^0.1.1",
"connect-roles": "^3.1.2",
"connect-session-knex": "^1.3.1",
"cookie-parser": "~1.4.3",
"csurf": "^1.9.0",
"csv": "^1.1.1",
"dateformat": "1.0.12",
"debug": "~2.2.0",
"dotenv": "^4.0.0",
"drupal-hash": "^1.0.3",
"express": "~4.15.2",
"express-breadcrumbs": "0.0.2",
"express-compile-sass": "3.0.4",
"express-fileupload": "0.0.5",
"express-mailer": "^0.3.1",
"express-recaptcha": "^2.1.0",
"express-session": "^1.14.0",
"i18next": "^8.2.1",
"i18next-express-middleware": "^1.0.5",
"i18next-localstorage-cache": "^1.1.1",
"i18next-node-fs-backend": "^1.0.0",
"jade": "^1.11.0",
"json2csv":"^3.7.3",
"jsonwebtoken": "^7.3.0",
"knex": "^0.13.0",
"lodash": "^4.17.4",
"module-id": "2.0.4",
"morgan": "~1.7.0",
"mysql": "^2.11.1",
"node-sass": "^3.13.0",
"passport": "^0.3.2",
"passport-facebook": "2.1.1",
"passport-jwt": "^2.2.1",
"passport-local": "^1.0.0",
"passport-remember-me": "^0.0.1",
"rand-token": "^0.2.1",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"request": "^2.74.0",
"requirejs": "^2.3.2",
"serve-favicon": "~2.3.0",
"sprintf-js": "1.0.3",
"sqlite3": "^3.1.8",
"superagent": "^3.5.0",
"webpack": "^1.14.0",
"winston": "2.3.0",
"snyk": "^1.30.0",
"xml2js-parser": "^1.1.1"
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.21.0",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.10",
"babel-preset-react": "^6.16.0",
"chai": "*",
"cross-env": "3.2.4",
"eslint": "^3.15.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^2.1.1",
"mocha": "^3.2.0",
"nock": "^9.0.13",
"node-rsa": "^0.4.2",
"rimraf": "2.6.1",
"supertest": "^2.0.1"
},
"snyk": true
}