jd打包工具
打包
tbjd build
生成表
tbjd table
模版变量
TABLENAME 数据库名
NAME 项目名
TAG b/s
API 接口
ROUTER 映射地址
env 环境
本地命令
node ./dist/bin/tbjd.js build \
-s /Users/haozengrun/jd_code/bcj-s/main.js \
-o /Users/haozengrun/jd_code/tools/outTest \
-n bcj \
-t s \
-e test
node ./dist/bin/tbjd.js build \
-s /Users/haozengrun/jd_code/bcj-s/main.js \
-o /Users/haozengrun/jd_code/jd-bcj \
-n chaping01 \
-t s \
-e test
node ./dist/bin/tbjd.js table \
-n bcj \
-k tbjds \
-s UhtfW7tGGUEFFi7bqj0N0w== \
-e test
node ./dist/bin/tbjd.js st \
-d bcj \
-t tb_mb \
-k tbjds \
-s UhtfW7tGGUEFFi7bqj0N0w== \
-e test
tbjd build \
-s /Users/haozengrun/jd_code/bcj-s/main.js \
-o /Users/haozengrun/jd_code/jd-bcj \
-n bcj04 \
-t s \
-e test
tbjd table \
-n mb \
-k tbjds \
-s UhtfW7tGGUEFFi7bqj0N0w== \
-e test
tbjd timer \
-o /Users/ymy/tbjdPro/fila_card_timer \
-n fila_card \
-e test \
-api getActivityBaseInfoById \
-params '{"openId": "fY4gyAMolXrMYC71MA796g", "activityId": "61c976de63881ab3f252957a"}' \
-cron '@every 1m' \
-enable true
tbjd st \
-d mb02 \
-t tb_mb_01 \
-k tbjds \
-s UhtfW7tGGUEFFi7bqj0N0w== \
-e test
tbjd upload \
-n peak_call \
-t c \
-e test \
-d /Users/haozengrun/code/jdtest_peak/c-client/dist
tbjd si \
-d peak_call \
-t c_user \
-k tbjds \
-s UhtfW7tGGUEFFi7bqj0N0w== \
-e test \
-j name=_record*unique=false*fields=fieldName:activityId,order:ASC#fieldName:openId,order:ASC#fieldName:createDay,order:ASC#fieldName:key,order:ASC
npm run test:build
npm run test:table
npm run test:timer
npm run test:st
npm run test:singleindex