-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
212 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
*.ejs | ||
coverage | ||
dist | ||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
## fusuma | ||
|
||
<div align="center"> | ||
<strong>📝 Makes slides with Markdown easily.</strong> | ||
</div> | ||
|
||
This repository uses a monorepo. | ||
Please see https://github.com/hiroppy/fusuma. | ||
|
||
```sh | ||
$ npm i -D fusuma | ||
$ mkdir slides && echo '# Hello😄' > slides/title.md | ||
|
||
# --- executable tasks--- | ||
$ npx fusuma init # customize fusuma configuration | ||
$ npx fusuma start # development | ||
$ npx fusuma build # build as NODE_ENV=production | ||
$ npx fusuma live # start live mode | ||
$ npx fusuma deploy # deploy to github pages | ||
$ npx fusuma pdf # export as PDF from HTML | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
const chalk = require('chalk'); | ||
|
||
function info(type, text) { | ||
console.info(chalk.black.bgCyan(type), chalk.cyan(text)); | ||
} | ||
|
||
function warn(type, text) { | ||
console.warn(chalk.black.bgYellow(type), chalk.yellow(text)); | ||
} | ||
|
||
function error(type, text) { | ||
console.error(chalk.black.bgRed(type), chalk.red(text)); | ||
} | ||
|
||
module.exports = { | ||
info, | ||
warn, | ||
error, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ const config = { | |
build: { | ||
ssr: true, | ||
useCache: true, | ||
publicPath: '/' | ||
publicPath: '/', | ||
}, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.