Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency tsbb to v4 - autoclosed #14

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 29, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tsbb (source) ^3.7.6 -> ^4.0.0 age adoption passing confidence

Release Notes

jaywcjlove/tsbb

v4.1.0

Compare Source

Documentation v4.1.0: https://raw.githack.com/jaywcjlove/tsbb/fe0887f/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.8...v4.1.0

npm i tsbb@4.1.0
npm i create-tsbb@4.1.0
npm init tsbb@latest my-app -- --example typenexus

v4.0.8

Compare Source

Documentation v4.0.8: https://raw.githack.com/jaywcjlove/tsbb/d891524/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.7...v4.0.8

npm i tsbb@4.0.8
npm i create-tsbb@4.0.8
npm init tsbb@latest my-app -- --example typenexus

v4.0.7

Compare Source

Documentation v4.0.7: https://raw.githack.com/jaywcjlove/tsbb/801c3fb/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.6...v4.0.7

npm i tsbb@4.0.7

v4.0.6

Compare Source

Documentation v4.0.6: https://raw.githack.com/jaywcjlove/tsbb/59c10b0/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.5...v4.0.6

npm i tsbb@4.0.6

v4.0.5

Compare Source

Documentation v4.0.5: https://raw.githack.com/jaywcjlove/tsbb/7e9cc06/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.4...v4.0.5

npm i tsbb@4.0.5

v4.0.4

Compare Source

Documentation v4.0.4: https://raw.githack.com/jaywcjlove/tsbb/f93eda3/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.3...v4.0.4

npm i tsbb@4.0.4

v4.0.3

Compare Source

Documentation v4.0.3: https://raw.githack.com/jaywcjlove/tsbb/f99ba6d/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.2...v4.0.3

npm i tsbb@4.0.3

v4.0.2

Compare Source

Documentation v4.0.2: https://raw.githack.com/jaywcjlove/tsbb/a992232/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.1...v4.0.2

npm i tsbb@4.0.2

v4.0.1

Compare Source

Documentation v4.0.1: https://raw.githack.com/jaywcjlove/tsbb/28ce177/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.0...v4.0.1

npm i tsbb@4.0.1

v4.0.0

Compare Source

Documentation v4.0.0: https://raw.githack.com/jaywcjlove/tsbb/9963c7e/index.html\
Comparing Changes: jaywcjlove/tsbb@v4.0.0-alpha.3...v4.0.0\
Migrate from tsbb 3.x to 4.x: https://github.com/jaywcjlove/tsbb/issues/439

npm i tsbb@4.0.0

Updates in version v4

  1. Updated typescript v5 dependency
  2. Updated jest v29 dependency
  3. Refactored feature package management
  4. Refactored create-tsbb based on package internal examples generation
  5. Updated template examples
- tsbb build [options]
+ tsbb build [source…] [options]
- --entry, -e
- --emit-type
- --no-emit-type
- --disable-babel
- --no-babel-option
- --file-names, -f
+ --use-babel    Use Babel.(works in babel)
 --source-maps  Enables the generation of sourcemap files.(works in babel)
 --env-name     The current active environment used during configuration loading.(works in babel)
 --esm          Output "esm" directory.(works in babel)
 --cjs          Output "cjs" directory.(works in babel)
- $ tsbb build --file-names src/main.ts --file-names src/good.ts
+ $ tsbb build src/main.ts src/good.ts
- $ tsbb build --entry src/main.ts
+ $ tsbb build src/main.ts
$ tsbb build src/*.ts                   # Build your project.
$ tsbb build src/main.ts src/good.ts    # Specify the entry directory.
$ tsbb build src/*.ts --use-babel --no-source-maps  # No ".js.map" file is generated. (works in babel)
$ tsbb watch src/*.ts --use-babel --cjs ./cjs       # Watch Output directory.
$ tsbb build src/*.ts --use-babel --esm ./es        # Output directory.
$ tsbb build src/*.ts --use-babel --use-vue         # To add Vue JSX support.
$ tsbb test                                         # Run test suites related
$ tsbb test --coverage --bail                       # Test coverage information should be collected
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"

TypeScript Project

To configure the tsconfig.json properly, you must first define either the include or files field(s) to specify which files need to be compiled. Once you've done that, you can then specify the outDir for the output directory in the configuration.

{
  "$schema": "http://json.schemastore.org/tsconfig",
  "compilerOptions": {
    "module": "commonjs",
    "target": "esnext",
    "outDir": "./lib",
    "strict": true,
    "skipLibCheck": true
  },
  "include": ["src/**/*"],
  "exclude": [
    "node_modules",
    "**/*.spec.ts"
  ]
}

After completing tsconfig.json configuration, you can configure scripts in package.json:

{
  "scripts": {
    "watch": "tsbb watch",
    "build": "tsbb build"
  },
  "devDependencies": {
    "tsbb": "*"
  }
}

Babel Project

Adding the parameter --use-babel to your project enables babel to compile and output cjs/esm files simultaneously, while ts is only needed for type output.

$ tsbb build "src/*ts" --use-babel

You can change the built-in settings of Babel by adding a .babelrc configuration file. Additionally, you can modify the Babel configurations for esm and cjs separately through environment variables. Please refer to the example below:

{
  "env": {
    "cjs": {
      "presets": ["@&#8203;babel/preset-typescript"]
    },
    "esm": {
      "presets": ["@&#8203;babel/preset-env", {
        "modules": false,
        "loose": true,
        "targets": {
          "esmodules": true,
        },
      }]
    }
  } 
}

At compile time, specify the environment variable --envName='xxx' to enable reading of relevant configurations from the settings. This environment variable can also be customized.

{
  "env": {
    "xxx": { ... }
  } 
}

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

jaywcjlove added a commit that referenced this pull request Apr 10, 2023
@renovate renovate bot changed the title chore(deps): update dependency tsbb to v4 chore(deps): update dependency tsbb to v4 - autoclosed Apr 10, 2023
@renovate renovate bot closed this Apr 10, 2023
@renovate renovate bot deleted the renovate/tsbb-4.x branch April 10, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants