forked from googlecreativelab/morse-learn
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
84 lines (84 loc) · 2.53 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
83
84
{
"name": "morse-learn",
"engines": {
"node": "10"
},
"eslintConfig": {
"env": {
"browser": true
},
"globals": {
"window": true,
"document": true
}
},
"version": "0.0.0",
"license": "MIT",
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
[
"env",
{
"targets": {
"browsers": [
"last 2 versions"
]
}
}
]
]
}
]
]
},
"scripts": {
"postinstall": "npm run require-fontawesome",
"browserify": "browserify scripts/app.js -o build/bundle.js",
"build": "npm run require-fontawesome && npm run browserify; npm run sass; npm run uglifycss",
"deploy": "npm run build; gcloud app deploy --project=gweb-morse-tts",
"eslint": "eslint scripts",
"precommit": "true",
"_precommit": "npm run eslint",
"require-fontawesome": "cp -r ./node_modules/@fortawesome/fontawesome-free/scss/* styles/fontawesome/ && cp -r ./node_modules/@fortawesome/fontawesome-free/webfonts .",
"sass": "node-sass styles/style.scss build/style.css",
"sasswatch": "node-sass --watch styles/style.scss:build/style.css",
"serve": "budo scripts/app.js:build/bundle.js --live --host 0.0.0.0",
"start": "npm run sass; concurrently -k -p \"[{name}]\" -n \"HTTP,SASS\" -c \"bgBlue.bold,bgMagenta.bold\" \"npm run serve\" \"npm run sasswatch\"",
"uglifycss": "uglifycss build/style.css --output build/style.css",
"uglifyjs": "uglifyjs build/bundle.js -o build/bundle.js",
"create-db": "docker run --name morse-learn-db -e MYSQL_ROOT_PASSWORD=root -d mysql/mysql-server",
"teardown-db": "docker container stop morse-learn-db && docker container rm morse-learn-db"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.12.0",
"babel-core": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"browserify": "^16.1.0",
"budo": "^11.2.0",
"concurrently": "^3.5.1",
"delay": "^4.3.0",
"eslint": "^4.18.0",
"git-pre-commit": "^2.1.3",
"node-sass": "^4.7.2",
"uglify-js": "^3.3.11",
"uglifycss": "^0.0.27"
},
"dependencies": {
"cookie": "^0.4.1",
"db-migrate": "^0.11.12",
"db-migrate-mysql": "^2.1.2",
"dotenv": "^8.2.0",
"howler": "^2.2.1",
"lodash": "^4.17.5",
"mysql2": "^2.2.5",
"natives": "^1.1.6",
"spinkit": "^2.0.1",
"uuid": "^8.3.2"
}
}