0.1.2 • Published 5 years ago

twstat-cli v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

twstat cli tool

A cli tool for twstat development usage.

Install

sudo npm install -g twstat-cli

Build project

twstat chart_item.js

watch project

add watch option, will rebuild only the specific which is modifed.

twstat chart-item.js -w

minify project

twstat chart-item.js -m

Init your project

twstat init test

this command will extend a new object in lists.json

  {
    "title": "test",
    "url": "test",
    "img": "images/test.png",
    "description": "Project description"
  },

and also create a new folder for your project, for this example it will create and new folder called test in root.

In side the folder there is a file called index.hbs

index.hbs:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang='zh-TW'>
  <head>
    {{> head}}
    <!-- my js & css -->
    <link rel="stylesheet" type="text/css" href="./css/style.css">
  </head>
  <body>
    {{> header}}
    {{> start}}
    <!-- my charts -->
    <div class="chart">

    </div>
    {{> end}}
    <!-- my js & css -->
    {{> footer}}
    <script type="text/javascript" src="./js/index.js"></script>
  </body>
</html>

and also have empty css and js file in the folder.

0.1.2

5 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago