Skip to content

Commit

Permalink
chore: setup project
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 11, 2024
1 parent 179e1c2 commit 744f949
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
46 changes: 46 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <shigma10826@gmail.com>",
"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"
}
}
16 changes: 16 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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",
],
}

0 comments on commit 744f949

Please sign in to comment.