diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg new file mode 100644 index 000000000..b80ae03d1 --- /dev/null +++ b/CONTRIBUTORS.svg @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/basic.zip b/basic.zip new file mode 100644 index 000000000..eda2a1fe7 Binary files /dev/null and b/basic.zip differ diff --git a/create-tsbb.html b/create-tsbb.html new file mode 100644 index 000000000..bc2e41112 --- /dev/null +++ b/create-tsbb.html @@ -0,0 +1,210 @@ + + + + + tsbb + + + + +

tsbb

+

+

+

Creates a tsbb application using the command line.

+

Usage

+
# npm 6.x
+$ npm init tsbb my-app --example express-typeorm
+# npm 7+, extra double-dash is needed:
+$ npm init tsbb my-app -- --example express-typeorm
+
+$ yarn create tsbb [appName]
+# or npm
+$ npm create tsbb my-app
+# or npx
+$ npx create-tsbb my-app
+
+

Command Help

+

Below is a help of commands you might find useful. The example download is from https://jaywcjlove.github.io/tsbb

+
Usage: create-tsbb <app-name> [options] [--help|h]
+
+Options:
+  --version, -v Show version number
+  --help, -h Displays help information.
+  --output, -o Output directory.
+  --example, -e Example from: https://jaywcjlove.github.io/tsbb , default: "basic"
+  --force, -f Overwrite target directory if it exists. default: false
+  --path, -p Specify the download target git address. default: "https://jaywcjlove.github.io/tsbb"
+
+Example:
+  npx create-tsbb my-app
+  yarn create tsbb appName
+  npm create tsbb my-app
+  npm create tsbb my-app -f
+  npm create tsbb my-app -p https://jaywcjlove.github.io/tsbb
+
+Copyright 2021
+
+

License

+

MIT © Kenny Wong

+
+ diff --git a/doc.html b/doc.html new file mode 100644 index 000000000..1279e0946 --- /dev/null +++ b/doc.html @@ -0,0 +1,523 @@ + + + + + tsbb + + + + +

tsbb

+

Build & Deploy +NPM Downloads +Open in unpkg +npm version

+

+ Quick Start · + Example · + Command Help · + npm · + License +

+

TSBB is a zero-config CLI that helps you develop, test, and publish modern TypeScript Node.js project.

+

TypeScript + Babel = TSBB

+

Features

+ +

Quick Start

+

You will need Node.js installed on your system.

+
$ yarn create tsbb [appName]
+# or npm
+$ npm create tsbb my-app -e express
+# --- Example name ---------┴ˇˇˇˇˇˇ
+# or npx
+$ npx create-tsbb my-app -e koa
+
+# npm 6.x
+$ npm init tsbb my-app --example express-typeorm
+# npm 7+, extra double-dash is needed:
+$ npm init tsbb my-app -- --example express-typeorm
+
+$ cd my-project
+
+$ npm run watch # Listen compile .ts files.
+$ npm run build # compile .ts files.
+$ npm start
+
+

Example

+

create-tsbb initialize the project from one of the examples:

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

You can download the following examples directly. Download page.

+ +

Command Help

+

Below is a help of commands you might find useful.

+

tsbb

+
▶ tsbb --help
+
+Usage: tsbb <command>
+
+Commands:
+
+  tsbb build [options]       Build your project once and exit.
+  tsbb watch [options]       Recompile files on changes.
+  tsbb test [options]        Run jest test runner in watch mode.
+
+Options:[build|watch]
+
+  --entry, -e                Specify the entry directory.
+  --env-name                 The current active environment used during configuration loading.
+  --emit-type                Emit d.ts type files.
+  --no-emit-type             No emit d.ts type files.
+  --disable-babel            Disable Babel.
+  --no-babel-option          Disable Babel Option.
+  --file-names, -f           A set of root files.
+  --esm                      Output "esm" directory.
+  --cjs                      Output "cjs" directory.
+
+Options:
+
+  --version, -v              Show version number
+  --help, -h                 Show help
+
+Examples:
+
+  $ tsbb build                           Build your project.
+  $ tsbb build --entry src/index.ts      Specify the entry directory.
+  $ tsbb build --esm ./es                Output directory.
+  $ tsbb build --use-vue                 To add Vue JSX support.
+  $ tsbb build --no-source-maps          No ".js.map" file is generated. (Can't disable babel)
+  $ tsbb watch --disable-babel           Disable Babel.
+  $ tsbb watch --no-emit-type            No emit d.ts type files.
+  $ tsbb watch --no-babel-option         Disable Babel Option.
+  $ tsbb watch --babel-option '{"presets": ["@babel/preset-typescript"] }'
+                                        Babel Option.
+  $ tsbb watch --cjs ./cjs               Watch Output directory.
+  $ tsbb build --disable-babel --file-names src/index.ts --file-names src/main.ts
+                                        A set of root files.
+  $ tsbb test                            Run test suites related
+  $ tsbb test --coverage                 Test coverage information should be collected
+
+Copyright 2022
+
+

tsbb create

+

Please use create-tsbb to create an example.

+

tsbb test

+

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

+
$ tsbb test                          Run test suites related
+$ tsbb test --coverage --no-color    Test coverage information should be collected
+
+
export declare type Argv = Arguments<Partial<{
+  all: boolean;
+  automock: boolean;
+  bail: boolean | number;
+  cache: boolean;
+  cacheDirectory: string;
+  changedFilesWithAncestor: boolean;
+  changedSince: string;
+  ci: boolean;
+  clearCache: boolean;
+  clearMocks: boolean;
+  collectCoverage: boolean;
+  collectCoverageFrom: string;
+  collectCoverageOnlyFrom: Array<string>;
+  color: boolean;
+  colors: boolean;
+  config: string;
+  coverage: boolean;
+  coverageDirectory: string;
+  coveragePathIgnorePatterns: Array<string>;
+  coverageReporters: Array<string>;
+  coverageThreshold: string;
+  debug: boolean;
+  env: string;
+  expand: boolean;
+  findRelatedTests: boolean;
+  forceExit: boolean;
+  globals: string;
+  globalSetup: string | null | undefined;
+  globalTeardown: string | null | undefined;
+  haste: string;
+  init: boolean;
+  injectGlobals: boolean;
+  json: boolean;
+  lastCommit: boolean;
+  logHeapUsage: boolean;
+  maxWorkers: number | string;
+  moduleDirectories: Array<string>;
+  moduleFileExtensions: Array<string>;
+  moduleNameMapper: string;
+  modulePathIgnorePatterns: Array<string>;
+  modulePaths: Array<string>;
+  noStackTrace: boolean;
+  notify: boolean;
+  notifyMode: string;
+  onlyChanged: boolean;
+  onlyFailures: boolean;
+  outputFile: string;
+  preset: string | null | undefined;
+  projects: Array<string>;
+  prettierPath: string | null | undefined;
+  resetMocks: boolean;
+  resetModules: boolean;
+  resolver: string | null | undefined;
+  restoreMocks: boolean;
+  rootDir: string;
+  roots: Array<string>;
+  runInBand: boolean;
+  selectProjects: Array<string>;
+  setupFiles: Array<string>;
+  setupFilesAfterEnv: Array<string>;
+  showConfig: boolean;
+  silent: boolean;
+  snapshotSerializers: Array<string>;
+  testEnvironment: string;
+  testFailureExitCode: string | null | undefined;
+  testMatch: Array<string>;
+  testNamePattern: string;
+  testPathIgnorePatterns: Array<string>;
+  testPathPattern: Array<string>;
+  testRegex: string | Array<string>;
+  testResultsProcessor: string;
+  testRunner: string;
+  testSequencer: string;
+  testURL: string;
+  testTimeout: number | null | undefined;
+  timers: string;
+  transform: string;
+  transformIgnorePatterns: Array<string>;
+  unmockedModulePathPatterns: Array<string> | null | undefined;
+  updateSnapshot: boolean;
+  useStderr: boolean;
+  verbose: boolean;
+  version: boolean;
+  watch: boolean;
+  watchAll: boolean;
+  watchman: boolean;
+  watchPathIgnorePatterns: Array<string>;
+}>>;
+
+

Development

+
$ npm i
+$ npm run hoist
+$ npm run build
+
+

Contributors

+

As always, thanks to our amazing contributors!

+

Made with github-action-contributors.

+

License

+

MIT © Kenny Wong

+
+ diff --git a/express-typeorm.zip b/express-typeorm.zip new file mode 100644 index 000000000..244c98c1c Binary files /dev/null and b/express-typeorm.zip differ diff --git a/express.zip b/express.zip new file mode 100644 index 000000000..8d28e3bff Binary files /dev/null and b/express.zip differ diff --git a/hapi.zip b/hapi.zip new file mode 100644 index 000000000..60f05187a Binary files /dev/null and b/hapi.zip differ diff --git a/index.html b/index.html new file mode 100644 index 000000000..6c58e55a5 --- /dev/null +++ b/index.html @@ -0,0 +1,101 @@ + + + + +TSBB Example Zip Files + + + +
+

TSBB Example Zip Filesv3.7.2

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
basic.zipDocument
express-typeorm.zipDocument
express.zipDocument
hapi.zipDocument
koa.zipDocument
react-component-tsx.zipDocument
react-component.zipDocument
transform-typescript.zipDocument
umd.zipDocument
vue.zipDocument
+ + + diff --git a/koa.zip b/koa.zip new file mode 100644 index 000000000..14baf8af3 Binary files /dev/null and b/koa.zip differ diff --git a/react-component-tsx.zip b/react-component-tsx.zip new file mode 100644 index 000000000..9ae57b47c Binary files /dev/null and b/react-component-tsx.zip differ diff --git a/react-component.zip b/react-component.zip new file mode 100644 index 000000000..b6aae540f Binary files /dev/null and b/react-component.zip differ diff --git a/transform-typescript.zip b/transform-typescript.zip new file mode 100644 index 000000000..1f33e8eb4 Binary files /dev/null and b/transform-typescript.zip differ diff --git a/umd.zip b/umd.zip new file mode 100644 index 000000000..354e6de15 Binary files /dev/null and b/umd.zip differ diff --git a/vue.zip b/vue.zip new file mode 100644 index 000000000..3914b3cf2 Binary files /dev/null and b/vue.zip differ