-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathpackage.json
63 lines (63 loc) · 2.87 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
{
"name": "@neo4j-graphacademy/courses",
"version": "1.28.5",
"description": "Course catalogue for graphacademy.neo4j.com",
"main": "index.js",
"scripts": {
"dev": "npm run dev:up && npm run dev:watch",
"dev:up": "docker-compose up",
"dev:watch": "nodemon -e adoc,ts --exec ts-node src/commands/sync-content.ts",
"dev:serve": "nodemon --exec ts-node src/main.ts",
"sync": "npm run sync:cdn && npm run sync:db && npm run cluster",
"sync:db": "ENV_FILE=.env.production ts-node src/commands/sync-content.ts",
"sync:cdn": "npm run generate:ogimages && npm run generate:pdfs && npm run cdn:sync && npm run cdn:guides && npm run cdn:invalidate",
"build": "npm run build:html && build:content",
"build:html": "mkdir -p build/html && ts-node src/commands/build-html.ts && npm run test html && zip -r ./html.zip build/html/",
"build:content": "zip -r ./courses.zip asciidoc",
"generate:ogimages": "ts-node src/commands/generate-images.ts",
"generate:pdfs": "ts-node src/commands/generate-pdfs.ts",
"cdn:sync": "aws s3 cp --acl public-read --recursive public s3://cdn.graphacademy.neo4j.com/assets",
"cdn:guides": "aws s3 sync --acl public-read --exclude '*' --include '*workspace-guide.adoc' asciidoc/courses s3://cdn.graphacademy.neo4j.com/guides",
"cdn:images": "aws s3 sync --include '**/images/*' --exclude '*.adoc' asciidoc/courses s3://cdn.graphacademy.neo4j.com/courses",
"cdn:data": "aws s3 sync --acl public-read --include '**/data/*' --exclude '*.adoc' asciidoc/courses s3://cdn.graphacademy.neo4j.com/courses",
"cdn:invalidate": "aws cloudfront create-invalidation --distribution-id EKCSCZ2A93Q3N --paths '/*' > /dev/null",
"cluster": "npm run cluster:restart && npm run cheer",
"cluster:restart": "kubectl rollout restart deployment/graphacademy -n graphacademy-prod",
"cheer": "say graph academy cluster restarted!",
"test": "jest",
"test:watch": "jest --watch",
"test:db": "jest db.test.js",
"cypress:open": "CYPRESS_BASE_URL=http://localhost:3000 cypress open"
},
"repository": {
"type": "git",
"url": "git+https://github.com/neo4j-graphacademy/courses.git"
},
"author": "GraphAcademy <[email protected]>",
"license": "ISC",
"bugs": {
"url": "https://github.com/neo4j-graphacademy/courses/issues"
},
"homepage": "https://github.com/neo4j-graphacademy/courses#readme",
"dependencies": {
"dotenv": "^16.0.1",
"jspdf": "^2.5.1",
"neo4j-driver": "^5.17.0",
"puppeteer": "^23.10.1",
"typescript": "^4.7.4"
},
"devDependencies": {
"@asciidoctor/core": "^2.2.6",
"@types/node": "^18.11.9",
"@types/pug": "^2.0.6",
"cypress": "^13.16.1",
"express": "^4.18.2",
"glob": "^10.3.1",
"isomorphic-fetch": "^3.0.0",
"jest": "^29.6.0",
"node-html-to-image": "^5.0.0",
"nodemon": "^3.1.3",
"pug": "^3.0.2",
"ts-node": "^10.9.1"
}
}