Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/corePublic

magic static page generator core

NotificationsYou must be signed in to change notification settings

mspg/core

Repository files navigation

NPM versionLinux Build StatusWindows Build StatusCoverage StatusGreenkeeper badge

transforms a src directory into a github hosted gh-pages branch.

installation
npm i --save mspg/core
usage

mspg comes as a single executable file.

mspg [TASKS]...available tasks:clean   - deletes the public directorybuild   - builds the src dir to publicserve   - serves the public dirzip     - gzips the public dir using zopfliconnect - connects the git repository to it's gh-pages branchpublish - publishes the current HEAD to github/gitlab pageshelp    - this help text
cli usage examples:
# production buildNODE_ENV=production mspg clean build zip# development (build files, watch for changes, and serve them on localhost:3000)mspg build serve watch
example app

a minimal example app is in theexample directory of this repository,usingconfig.js from the root directory

example app on github.io

the example app is published to thegh-pages branch.it is hosted @https://mspg.github.io/core

using html/css/javascript transpilation

writing transpilers for any kind of toolchain is pretty easy,just have a look at the examples below to get started if you want to use another toolchain.every transpiler also includes a minimal example project in the example directory.

html

both html toolchains below follow the same rules:

  • every *.html file in the src/ directory is a page and gets transpiled to public/

  • every includes/html/*.extension file is an include file and can be included using /filename.extension

  • every includes/html/*.extension file can also be a template file. using extend you can reuse a html template in both pug and posthtml.

  • pug

  • posthtml

css
js

About

magic static page generator core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp