0.0.12 • Published 9 years ago

kman v0.0.12

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

A very light web building system. Config it in config.json.

NPM version node version npm download

Install

$ npm install -g kman
$ maybe need: sudo npm install -g kman

Quick Start

1、init sample project

$ kman init

2、debug mode(can dynamic watch/build some conf file).

$ kman debug

3、build dist

$ kman build

config.json

{
      "name": "sample_project",
      "dist_path":"dist",
      "static_build_path": [
            {
                  "src": "src/page",
                  "dist": "dist/page"
            },
            {
                  "src": "src/common",
                  "dist": "dist/common"
            },
            {
                  "src": "src/image",
                  "dist": "dist/image"
            }

      ],
      "all_pack_path": "dist/common",
      "all_pack_name": "package.js",        //the name of just one libs.
      "modules": [
            {
                  "src_path": "src/common/config",
                  "dist_path": "src/common",
                  "dist_name": "package.js",
                  "pack_to_libs": true,     //whether pack to one libs.
                  "is_dev":true,            //debug mode. dynamic build
                  "pack_list": [
                        "require.js",
                        "isDist.js",
                        "require-config.js"
                  ]

            },
            {
                  "src_path": "src/common/config",
                  "dist_path": "dist/common/config",
                  "dist_name": "configs.js",
                  "pack_to_libs": true,
                  "pack_list": [
                        "require.js",
                        "isDist.js",
                        "require-config.js"
                  ]

            },
            {
                  "src_path": "src/common/lib",
                  "dist_path": "dist/common/lib",
                  "dist_name": "libs.js",
                  "pack_to_libs": true,
                  "pack_list": [
                        "jquery.js"
                  ]

            },
            {
                  "src_path": "src/common/util",
                  "dist_path": "dist/common/util",
                  "dist_name": "utils.js",
                  "pack_to_libs": true,
                  "pack_list": [
                        "template.js"
                  ]

            },
            {
                  "src_path": "src/common/widget",
                  "dist_path": "dist/common/widget",
                  "dist_name": "widgets.js",
                  "pack_to_libs": true,
                  "pack_list": [
                  ]

            },
            {
                  "src_path": "src/page/index",
                  "dist_path": "dist/page/index",
                  "dist_name": "main.js",
                  "pack_list": [
                        "main.js"
                  ]

            }
      ]

}

Author: human huang

QQ : 316996367

Email : halfthink@163.com

交流Q群: 415719701

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.0

9 years ago