diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..190a4cd --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,27 @@ +name: Pull request checks +on: + pull_request: + types: + - opened + - reopened + branches: + - main + +jobs: + pull_request: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: true + + - name: TypeScript Compiler + run: tsc --noEmit + + - name: Lint + run: pnpx eslint . diff --git a/LICENSE b/LICENSE index 465a665..31895db 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Simon +Copyright (c) 2024 Simon Kovtyk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index d23f889..90227f6 100644 --- a/README.md +++ b/README.md @@ -1,147 +1,166 @@ -# esbuild plugin for copying files +
This esbuild plugin copies specified files to the output folder after the bundling process. It ensures static assets are included in the final build without interrupting or altering the main esbuild workflow.
-## How It Works + + + + -1. Parses the file paths by globs -2. Creates folder for the file paths, if there are not exists. -3. Determines the out-folder by using the existing esbuild configuration. -4. Writes the files to their responsible out paths. +