node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

codenut-cli

codenut-cli

A simple cli for codenut project

Installation

npm install -g codenut-cli

Usage

nut install <asset>
nut create <component>
nut page <path>
nut generate webfont <font-path> <dest>

# mac os
brew install imagemagick

# window
visit https://www.imagemagick.org/script/download.php
download ImageMagick-7.0.7-14-Q16-x64-dll.exe 

# image size : 1024 x 1024
nut generate appicon <img-path>

Example

nut install toggle
nut create textfield
nut page component/contact-us
nut generate webfont 'font/heveltica.ttf' 'heveltica'
nut generate webfont 'font/*.ttf' 'heveltica'
nut generate appicon './icon.png'