diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ff976ce --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v4 + - name: Install + run: yarn + - name: Build + run: yarn build diff --git a/README.md b/README.md new file mode 100644 index 0000000..a827704 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# dunble + +[![npm](https://img.shields.io/npm/v/dunble?style=flat-square)](https://www.npmjs.com/package/dunble) +[![GitHub](https://img.shields.io/github/license/shigma/dunble?style=flat-square)](https://github.com/shigma/dunble/blob/master/LICENSE) + +Minimalistic bundler with TypeScript and esbuild. + +## Install + +```sh +npm install --save-dev dunble +``` diff --git a/package.json b/package.json new file mode 100644 index 0000000..df09ed0 --- /dev/null +++ b/package.json @@ -0,0 +1,46 @@ +{ + "name": "dunble", + "description": "Minimalistic bundler with TypeScript and esbuild", + "version": "0.1.0", + "type": "module", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "bin": "lib/bin.js", + "files": [ + "lib", + "src" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/shigma/dunble.git" + }, + "bugs": { + "url": "https://github.com/shigma/dunble/issues" + }, + "homepage": "https://github.com/shigma/dunble", + "author": "Shigma ", + "license": "MIT", + "scripts": { + "build": "node --import tsx src/bin.ts" + }, + "devDependencies": { + "@types/node": "^20.10.2", + "esbuild": "^0.19.0", + "tsx": "^4.7.0", + "typescript": "^5.3.2" + }, + "peerDependencies": { + "esbuild": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "dependencies": { + "globby": "^11.1.0", + "js-yaml": "^4.1.0", + "tsconfig-utils": "^4.0.5" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..4718912 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "target": "es2022", + "module": "nodenext", + "declaration": true, + "emitDeclarationOnly": true, + "skipLibCheck": true, + "esModuleInterop": true, + "strict": true, + }, + "include": [ + "src", + ], +}