Skip to content

Commit 9313df6

Browse files
committed
[fix] fix package.json
1 parent 19375cc commit 9313df6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "slide",
33
"version": "1.0.0",
4-
"author": "Gityosan <[email protected]>",
4+
"author": "Gityosan",
55
"license": "MIT",
66
"private": "true",
77
"type": "module",
88
"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",
1313
"css": "yarn run scss && yarn run postcss && yarn run activate-theme",
1414
"scss": "sass style/scss/:style/css/ --no-source-map",
1515
"postcss": "postcss style/css/ -r --no-map",
@@ -27,5 +27,9 @@
2727
"stylelint-config-recess-order": "^4.3.0",
2828
"stylelint-config-standard-scss": "^11.0.0"
2929
},
30-
"dependencies": {}
30+
"dependencies": {},
31+
"marp": {
32+
"allowLocalFiles": true,
33+
"themeSet": "./style/css"
34+
}
3135
}

0 commit comments

Comments
 (0)