|
1 | 1 | {
|
2 | 2 | "name": "slide",
|
3 | 3 | "version": "1.0.0",
|
4 |
| - "author": "Gityosan <[email protected]>", |
| 4 | + "author": "Gityosan", |
5 | 5 | "license": "MIT",
|
6 | 6 | "private": "true",
|
7 | 7 | "type": "module",
|
8 | 8 | "scripts": {
|
9 |
| - "new": "sh -c 'sed -e \"s/: \\(.*\\)#\\(.*\\)/: \\1/\" markdown/sample_slides.md > markdown/$([ \"$1\" != \"\" ] && { echo \"$1\";true; } || { uuidgen | cut -c1-2,25-36 | tr \"[:upper:]\" \"[:lower:]\"; }).md' --", |
10 |
| - "pdf": "sh -c 'file=\"$1\" && title=$(sed -n \"s/title: \\(.*\\)/\\1/p\" \"$file\" | sed -n \"s/^.//p\" | sed -n \"s/.$//p\") && marp \"$file\" -o \"pdf/$title.pdf\" --allow-local-files' --", |
11 |
| - "pptx": "sh -c 'file=\"$1\" && title=$(sed -n \"s/title: \\(.*\\)/\\1/p\" \"$file\" | sed -n \"s/^.//p\" | sed -n \"s/.$//p\") && marp \"$file\" -o \"pptx/$title.pptx\" --allow-local-files' --", |
12 |
| - "dev": "npx marp -s ./markdown --theme-set ./style/css/*.css", |
| 9 | + "new": "sh -c 'sed -e \"s/: \\(.*\\)#\\(.*\\)/: \\1/\" markdown/template.md > markdown/$([ \"$1\" != \"\" ] && { echo \"$1\";true; } || { uuidgen | cut -c1-2,25-36 | tr \"[:upper:]\" \"[:lower:]\"; }).md' --", |
| 10 | + "pdf": "sh -c 'file=\"$1\" && title=$(sed -n \"s/title: \\(.*\\)/\\1/p\" \"$file\" | sed -n \"s/^.//p\" | sed -n \"s/.$//p\") && marp \"$file\" -o \"pdf/$title.pdf\"' --", |
| 11 | + "pptx": "sh -c 'file=\"$1\" && title=$(sed -n \"s/title: \\(.*\\)/\\1/p\" \"$file\" | sed -n \"s/^.//p\" | sed -n \"s/.$//p\") && marp \"$file\" -o \"pptx/$title.pptx\"' --", |
| 12 | + "dev": "marp -s ./markdown --theme-set ./style/css/*.css", |
13 | 13 | "css": "yarn run scss && yarn run postcss && yarn run activate-theme",
|
14 | 14 | "scss": "sass style/scss/:style/css/ --no-source-map",
|
15 | 15 | "postcss": "postcss style/css/ -r --no-map",
|
|
27 | 27 | "stylelint-config-recess-order": "^4.3.0",
|
28 | 28 | "stylelint-config-standard-scss": "^11.0.0"
|
29 | 29 | },
|
30 |
| - "dependencies": {} |
| 30 | + "dependencies": {}, |
| 31 | + "marp": { |
| 32 | + "allowLocalFiles": true, |
| 33 | + "themeSet": "./style/css" |
| 34 | + } |
31 | 35 | }
|
0 commit comments