-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
29 lines (29 loc) · 1.78 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
{
"name": "rub-reveal-lecture-example",
"version": "0.0.1",
"description": "RUB Group Theory Lecture example using reveal.js presentations",
"dependencies": {
"reveal.js": "^4.1.0",
"reveal.js-plugins": "^4.1.5",
"sass": "^1.32.12"
},
"author": "Christopher Koerber",
"scripts": {
"clean:prod": "rm -rf build/*",
"mkdir:prod": "mkdir -p build/static/css && mkdir -p build/static/js",
"copy:html": "cp index.html build/ && rsync -r --verbose --include='slides/*/*.html' --include='*/' --exclude='*' --prune-empty-dirs . build/",
"copy:static": "rsync -r --verbose --copy-links --exclude='*' --prune-empty-dirs static build/ && cp favicon.ico build/",
"copy:audio": "rsync -r --relative --verbose --copy-links --prune-empty-dirs media/audio/main/*.mp3 build/",
"copy:images": "rsync -r --relative --verbose --copy-links --prune-empty-dirs media/imgs build/",
"copy:movies": "rsync -r --relative --verbose --copy-links --prune-empty-dirs media/videos/**/*.mp4 build/",
"copy:media": "npm run copy:images && npm run copy:audio && npm run copy:movies",
"copy:prod": "npm run copy:html && npm run copy:static && npm run copy:media",
"css": "npx sass static/css/rub.scss static/css/rub.css",
"css:prod": "npx sass -s compressed static/css/rub.scss build/static/css/rub.css",
"fonts:prod": "cp -R static/fonts build/static/",
"js:prod": "rsync -r --relative --verbose --copy-links --prune-empty-dirs static/js/*.js build/",
"prebuild:prod": "npm run clean:prod && npm run mkdir:prod && npm run copy:prod && npm run fonts:prod",
"build:prod": "npm run css:prod && npm run js:prod",
"zip:prod": "npm run build:prod && zip -r gt-lecture.zip build"
}
}