3.0.21 • Published 7 days ago

techor v3.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

Features

  • Support multi-format JavaScript module configuration import like master.css.{js,mjs,cjs,ts}
  • Ability to import ESM or Typescript modules in a CommonJS environment
  • Support for deep configuration extensions
  • Independent compilation options and user configuration

Getting Started

npm i techor

Setup

Add packages/** to .workspaces of the root ./package.json

{
    "workspaces": [
        "packages/**"
    ]
}

Install CLI and core packages by techor:

npm i techor -D

To create your first package, you may automate the required steps to define a new workspace using npm init.

npm init -w ./packages/a

When the package is ready, including the dependencies setup, run npm i in the project root directory to install all dependencies, including the workspaces.

Build system for monorepo

Most workspace packages will pre-set script commands, such as build, test, and lint. Since features depend on each other, builds will be executed sequentially.

Set up the scripts of /package.json:

{
    "scripts": {
        "dev": "pnpm dev",
        "build": "pnpm build",
        "test": "pnpm --parallel test",
        "lint": "pnpm --parallel lint",
        "type-check": "pnpm --parallel type-check"
    }
}

Continuous Integration

With the well-configured build system, almost all commands can be automated through CI, taking GitHub Actions as an example:

Build automated tests on the beta, the main, and the pull request stream:

name: Test
on:
    push:
        branches:
            - main
            - beta
    pull_request_target:
        types:
            - opened
            - synchronize

jobs:
    version:
        timeout-minutes: 15
        runs-on: ubuntu-latest
        strategy:
            matrix:
                node-version: [20]
        steps:
            - uses: actions/checkout@v4
            - uses: actions/setup-node@v4
              with:
                  node-version: ${{ matrix.node-version }}
                  cache: 'npm'
            - run: npm ci
            - run: pnpm run build
            - run: pnpm run test

The same goes for lint and type-check.

While the build command will work with deploy and release, techor builds a complete package release workflow and the tools needed during it.

Next, check out the Aron's semantic release

3.0.21

7 days ago

3.0.20

8 days ago

3.0.19

8 days ago

3.0.18

2 months ago

3.0.16

2 months ago

3.0.17

2 months ago

3.0.14

2 months ago

3.0.15

2 months ago

3.0.12

2 months ago

3.0.13

2 months ago

3.0.10

2 months ago

3.0.11

2 months ago

3.0.8

2 months ago

3.0.7

2 months ago

3.0.6

2 months ago

3.0.9

2 months ago

3.0.4

2 months ago

3.0.3

2 months ago

3.0.2

2 months ago

3.0.1

2 months ago

3.0.5

2 months ago

3.0.0

2 months ago

2.6.5

3 months ago

2.6.7

3 months ago

2.6.6

3 months ago

2.6.4

3 months ago

2.6.1

3 months ago

2.6.0

3 months ago

2.6.3

3 months ago

2.6.2

3 months ago

2.5.24

4 months ago

2.5.22

4 months ago

2.5.23

4 months ago

2.5.21

4 months ago

2.5.20

5 months ago

2.5.18

6 months ago

2.5.19

6 months ago

2.2.1

11 months ago

2.2.0

11 months ago

2.4.1

10 months ago

2.2.3

11 months ago

2.4.0

10 months ago

2.2.2

11 months ago

2.4.3

10 months ago

2.2.13

10 months ago

2.2.5

11 months ago

2.4.2

10 months ago

2.2.4

11 months ago

2.4.5

10 months ago

2.2.11

11 months ago

2.2.7

11 months ago

2.4.4

10 months ago

2.2.12

10 months ago

2.2.6

11 months ago

2.2.10

11 months ago

2.5.6

9 months ago

2.3.8

10 months ago

2.5.5

9 months ago

2.3.7

10 months ago

2.5.8

9 months ago

2.5.7

9 months ago

2.5.9

9 months ago

2.5.14

9 months ago

2.5.15

9 months ago

2.5.16

9 months ago

2.5.17

9 months ago

2.5.10

9 months ago

2.5.11

9 months ago

2.5.13

9 months ago

2.3.0

10 months ago

2.3.2

10 months ago

2.3.1

10 months ago

2.5.2

9 months ago

2.3.4

10 months ago

2.3.3

10 months ago

2.5.4

9 months ago

2.3.6

10 months ago

2.5.3

9 months ago

2.3.5

10 months ago

2.2.9

11 months ago

2.4.6

9 months ago

2.2.8

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.2.7

1 year ago

1.0.9

1 year ago

1.2.6

1 year ago

1.1.7

1 year ago

1.0.8

1 year ago

1.2.5

1 year ago

1.1.6

1 year ago

1.0.7

1 year ago

1.2.4

1 year ago

1.1.5

1 year ago

1.2.3

1 year ago

1.1.4

1 year ago

1.2.2

1 year ago

1.1.3

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

2.1.2

1 year ago

2.0.3

1 year ago

2.1.1

1 year ago

2.0.2

1 year ago

2.1.4

1 year ago

2.0.5

1 year ago

2.1.3

1 year ago

2.0.4

1 year ago

2.1.6

1 year ago

2.0.6

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.0.1

1 year ago

2.1.9

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.12

1 year ago

2.1.13

1 year ago

2.1.10

1 year ago

2.1.11

1 year ago

1.0.10

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago