0.2.8 • Published 5 years ago

bjh-func-test v0.2.8

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

bjh-func-test

Node.js Version License: MIT

语言: English | 简体中文

A Template for create template&use template fast;

Features

  • easy
  • fast
  • global operation
  • configurable

##main command

  • init or i: to init a workspace
  • create or c: choice a template to create a new work
  • help or h: see more details
  • version or v: about the version

Use

  • npm i bjh-func-test
  • bjh-func-test init
  • bjh-func-test create
  • bjh-func-test create --origin (use remote template create a work)
  • use BJH_TEMP to replace your key word
  • more keywords to replace, please generate a replace-items.json in your template folder and Configure it!
  • example for replace-items.json

      [{
          "message": "请输入https",
          "name": "Url"
      }]

    more file to process, please generate a bjh-temp.js in your workspace and Configure it!

  • example for replace-items.json

      // name为项目名称,可在此引用
      function deal(name) {
          return [
              // {
              //     "path": "", // 只能在当前相对路径下,如"/index.js",不支持"../, ./"等
              //     "config": [{
              //         "tag": "",
              //         "add_content": ""
              //     }]
              // }
          ];
      };
      process.send(deal(process.argv[2]));
      
0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago