0.0.22 • Published 9 years ago
style-pot v0.0.22
Style.Pot
In terminal
Installation
$ npm i -g style-potUsage
Generate doc jsons
$ style-pot generate --src SRC_PATH --out DEST_PATH [--base BASE_PATH_OF_SRC]Start doc server
$ style-pot serve --json DOC_JSON_PATH \ [--port PORT] \ [--deps DEPENDENCY_STYLE_FILE_PATHs] \ [--static STATIC_FILE_PATHs] \ [--proxy-map PROXY_MAP_JSON] -- $ open http://localhost:<PORT>PORT: port number to be listenedDEPENDENCY_STYLE_FILE_PATHs: file paths for preloaded assetsSTATIC_FILE_PATHs: file paths to be served via/- (experimental)
PROXY_MAP_JSON: JSON string represent a map for pathnames to be proxied and the upstream host URL such as{"/something/to/be/proxied":"http://example.com"}
In Node.js
Installation
$ npm i style-potUsage
Generate doc jsons
import StylePot from 'style-pot'; StylePot.generateStyleJSONs({ src: SRC_PATH, out: DEST_PATH, base: BASE_PATH_OR_SRC, });Start doc server
import StylePot from 'style-pot'; StylePot.serve({ json: DOC_JSON_PATH, port: PORT, static: STATIC_FILE_PATHs, deps: DEPENDENCY_STYLE_FILE_PATHs, proxyMap: PROXY_MAP, });
0.0.22
9 years ago
0.0.21
9 years ago
0.0.20
10 years ago
0.0.19
10 years ago
0.0.18
10 years ago
0.0.17
10 years ago
0.0.16
10 years ago
0.0.15
10 years ago
0.0.14
10 years ago
0.0.13
10 years ago
0.0.12
10 years ago
0.0.11
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago
0.0.0
10 years ago