0.8.2 • Published 3 months ago

@masatomakino/gulptask-demo-page v0.8.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

gulptask-demo-page

demo html generator

MIT License build test Maintainability Test Coverage

GitHub

Getting Started

Install

npm i @masatomakino/gulptask-demo-page -D

CLI

you can generate demo pages from the CLI.

npx @masatomakino/gulptask-demo-page -W

See --help command for options.

npx @masatomakino/gulptask-demo-page --help

Options:
-W --watch                     default : false
--prefix <string>              default : demo
--srcDir <path>                default : ./demoSrc
--distDir <path>               default : ./docs/demo
--body <string>                html tag to insert into the body
--style <string>               This is the css style that will be applied to the demo page. ex : "canvas{background-color:#000}"
--copyTargets [extensions...]  default : "png", "jpg", "jpeg"
--externalScripts [url...]     ex : "https://code.createjs.com/1.0.0/createjs.min.js"
--rule <path>                  config file path for webpack rules
--compileTarget <string>       config compile target for tsconfig
-h, --help                     display help for command

Option

You can set options when you initialize a task.

  • prefix (default : "demo") : The word contained in the name of the demo script.
  • srcDir (default : "./demoSrc") : Directory where demo scripts are stored.
  • distDir (default : "./docs/demo") : Directory where html files are output.
  • externalScripts (default :[]) : A list of external javascript libraries.
  • body (default : "") : Content stored in the < body > tag.
  • style (default : "") : Common style for demo html.
  • copyTargets (default :["png", "jpg", "jpeg"]) : Static assets in srcDir. These are copied to distDir.

npm script

  • build : build gulptask-demo-page binary.
  • watch : watch src dir and build binary.
  • exampleCLI : sample command for CLI user.
  • watch:exampleCLI : exampleCLI with watch mode.
  • testRun : run "gulptask-demo-page" generated by "build" command.
  • watch:testRun : run "gulptask-demo-page" with watch mode.

License

MIT licensed.

0.8.2

3 months ago

0.8.1

3 months ago

0.8.0

5 months ago

0.6.8

10 months ago

0.7.0-rc.0

10 months ago

0.7.2

8 months ago

0.7.1

9 months ago

0.7.4

7 months ago

0.7.3

8 months ago

0.7.0

9 months ago

0.6.7

11 months ago

0.6.6

11 months ago

0.6.5

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.5.4

1 year ago

0.6.0

1 year ago

0.5.3

1 year ago

0.5.2

2 years ago

0.5.0

2 years ago

0.5.1

2 years ago

0.4.4

2 years ago