Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stdlib-js/bundle-action

Repository files navigation


Create Bundle

GitHub action to create bundles for a stdlib package.


Example Workflow

# Workflow name:
name: bundle

# Workflow triggers:
on:
  workflow_dispatch:

# Workflow jobs:
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
        with:
          repository: 'stdlib-js/assert-is-nan'
      - uses: actions/setup-node@v3
        with:
          node-version: 16
        timeout-minutes: 5
      - name: Install production and development dependencies
        id: install
        run: |
          npm install || npm install || npm install
      - name: Bundle `@stdlib/assert-is-nan`
        uses: stdlib-js/bundle-action@main
        with:
          target: "deno"

Inputs

  • target: Bundle target (deno, umd-node, umd-browser, or esm).
  • pkg: (optional) a string containing the name of the npm package to bundle. Defaults to the package in the current repository.
  • alias: (optional) a string containing an alias for the package in the global scope for the umd bundles. Defaults to the package name.
  • minify: (optional) a boolean indicating whether to minify the bundle. Defaults to true.

License

See LICENSE.

Copyright

Copyright © 2022-2024. The Stdlib Authors.

About

GitHub action to create bundles for a stdlib package.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published