<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          TSBB一個(gè)零配置 CLI

          聯(lián)合創(chuàng)作 · 2023-09-28 11:04

          tsbb

               

          TSBB 是一個(gè)零配置 CLI,可幫助您開發(fā),測試和發(fā)布現(xiàn)代 TypeScript Node.js 項(xiàng)目。

          TypeScript + Babel = TSBB

          Features

          ? 快速初始化示例項(xiàng)目并快速進(jìn)入開發(fā)模式。
          ?? 添加,刪除或修改項(xiàng)目文件時(shí)重新編譯代碼。
          ?? 可讀的源代碼,鼓勵(lì)學(xué)習(xí)和貢獻(xiàn)
          ?? 更快,更快的編譯速度。
          ?? 支持React組件編譯。
          ? Jest 測試運(yùn)行,默認(rèn)為 tsbb test
          ?? 零配置,單一依賴。

          快速開始

          您將需要在系統(tǒng)上安裝 Node.js 。

          $ npx tsbb create my-project
          $ cd my-project
          
          $ npm run watch # Listen compile .ts files.
          $ npm run build # compile .ts files.
          $ npm start

          或者

          $ npm install tsbb -g
          # Create project
          $ tsbb create my-project --example=Express
          # --- Example name ----------------┴ˇˇˇˇˇˇ

          實(shí)例

          從其中一個(gè)示例初始化項(xiàng)目:

          $ npx tsbb create my-app -e <Example Name>
          # --- E.g: ----------------┴ˇˇˇˇˇˇˇˇˇˇˇˇˇˇ
          # npx tsbb create my-app -e Basic

          命令幫助

          以下是您可能會發(fā)現(xiàn)有用的命令的幫助。

          tsbb

          ? tsbb --help
          Usage: tsbb [options]
          
          Commands:
            tsbb create <project-name> [options]  Create a new project with TSBB
            tsbb build [options]                  Build your project once and exit.
            tsbb watch [options]                  Recompile files on changes.
            tsbb types [options]                  Create type files for the project.
            tsbb test [options]                   Run jest test runner in watch mode.
          
          Options:
            --version  Show version number                                       [boolean]
            --help     Show help                                                 [boolean]
          
          Examples:
          
            $ tsbb build            Build your project once and exit.
            $ tsbb watch            Rebuilds on any change.
            $ tsbb test             Run test suites related.
            $ tsbb test --coverage  Test coverage information should be collected
          
          Copyright 2019

          tsbb create

          ? tsbb create --help
          tsbb create <project-name> [options]
          
          Create a new project with TSBB
          
          Options:
            --version    Show version number                                     [boolean]
            --help, -h   Show help.                                              [boolean]
            --force, -f  force create.                          [boolean] [default: false]
            --example    Example from
                         https://github.com/jaywcjlove/tsbb/tree/master/example
                         example-path.                         [string] [default: "basic"]
          
          Examples:
            $ tsbb create my-app                    Create my project.
            $ tsbb create my-app --example express  Create an Express example project.

          tsbb build

          ? tsbb build --help
          tsbb build [options]
          
          Build your project once and exit.
          
          Options:
            --version          Show version number                               [boolean]
            --help, -h         Show help.                                        [boolean]
            --source-root, -s  The root from which all sources are relative.
                                                                 [string] [default: "src"]
            --copy-files       When compiling a directory copy over non-compilable files.
                                                                 [boolean] [default: true]
            --source-maps      Source Map options.
                        [string] [choices: true, "inline", "both", "none"] [default: true]
            --output, -o       Output directory.                 [string] [default: "lib"]
            --target           Specify your target environment.
                                     [string] [choices: "react", "node"] [default: "node"]
            --env-name         The name of the 'env' to use when loading configs and
                               plugins. Defaults to the value of 'cjs esm'..
                                                          [array] [default: ["cjs","esm"]]
            --comments         decide whether a given comment should be included in the
                               output code.                      [boolean] [default: true]
          
          Examples:
            $ tsbb build                Build your project.
            $ tsbb build --no-comments  Build your project and remove the comments.

          tsbb watch

          ? tsbb watch --help
          tsbb watch [options]
          
          Recompile files on changes.
          
          Options:
            --version          Show version number                               [boolean]
            --help, -h         Show help.                                        [boolean]
            --source-root, -s  The root from which all sources are relative.
                                                                 [string] [default: "src"]
            --copy-files       When compiling a directory copy over non-compilable files.
                                                                 [boolean] [default: true]
            --source-maps      Source Map options.
                        [string] [choices: true, "inline", "both", "none"] [default: true]
            --output, -o       Output directory.                 [string] [default: "lib"]
            --target           Specify your target environment.
                                     [string] [choices: "react", "node"] [default: "node"]
            --env-name         The name of the 'env' to use when loading configs and
                               plugins. Defaults to the value of 'cjs esm'..
                                                          [array] [default: ["cjs","esm"]]
            --comments         decide whether a given comment should be included in the
                               output code.                      [boolean] [default: true]
            --timer, -t        Compile interval.                   [number] [default: 300]
          
          Examples:
            $ tsbb watch   Rebuilds on any change.

          tsbb test

          Runs the test watcher (Jest) in an interactive mode.

          ? tsbb test --help
          tsbb test [options]
          
          Run jest test runner in watch mode.
          
          Options:
            --version   Show version number                                      [boolean]
            --help, -h  Show help.                                               [boolean]
            --coverage  Indicates that test coverage information should be collected and
                        reported in the output.                 [boolean] [default: false]
            --env       The test environment used for all tests.[string] [default: "node"]
            --config    The path to a Jest config file specifying how to find and execute
                        tests.                                                    [string]
          
          Examples:
            $ tsbb test             Run test suites related
            $ tsbb test --coverage  Test coverage information should be collected

          tsbb types

          ? tsbb types --help
          tsbb types [options]
          
          Create type files for the project.
          
          Options:
            --version                Show version number                         [boolean]
            --help, -h               Show help.                                  [boolean]
            --project                Compile the project given the path to its
                                     configuration file, or to a folder with a
                                     'tsconfig.json'.             [string] [default: "./"]
            --out-dir                Redirect output structure to the directory.
                                                                 [string] [default: "lib"]
            --target                 Specify ECMAScript target version.
                  [string] [choices: "ES3", "ES5", "ES2015", "ES2016", "ES2017", "ES2018",
                                                   "ES2019", "ESNEXT"] [default: "ES2015"]
            --watch                  Watch input files.         [boolean] [default: false]
            --emit-declaration-only  to enable declarations only output
                                                                 [boolean] [default: true]
            --tsconf                 TypeScript other options.                    [string]
          
          Examples:
            $ tsbb types          Create types your project.
            $ tsbb types --watch  Create type files for the project And to run in --watch
                                  mode.

          License

          MIT ? Kenny Wong

          瀏覽 18
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  人人干人人摸人人插 | 人人看人人玩 | 美国人A一级毛片 | 亚洲精品操逼视频 | 欧美性爱免费在线视频PK视频 |