Skip to content

Commit

Permalink
fix: cli examples and bump filename2shiki
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinraja committed Nov 4, 2021
1 parent 11e5ded commit 6a45b86
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"clipanion": "^3.2.0-rc.3",
"colorette": "^2.0.16",
"filename2shiki": "^1.0.1",
"filename2shiki": "^1.0.3",
"globby": "^12.0.2",
"is-path-inside": "^4.0.0",
"pdf-lib": "^1.17.0",
Expand Down
140 changes: 136 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ export class RootCommand extends Command {
examples: [
[
'Compile all files in src (will write to the pdfs directory by default)',
'$0 src pdfs',
'$0 src',
],
[
'Compile all files in src to the pdf-build directory',
'$0 src -d pdf-build',
],
['Compile all files in src to the dist directory', '$0 src -d dist'],
['Compile only javascript files', '$0 src --include "src/**/*.js"'],
['Exclude tests from compilation', '$0 src --exclude "src/**/*.test.js"'],
['Specify a theme', '$0 src -t github-light'],
Expand Down

0 comments on commit 6a45b86

Please sign in to comment.