Skip to content

Commit

Permalink
build: configure npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhamlin committed Jul 15, 2024
1 parent 442f2b1 commit f62153b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Super Simple Fastify Web Server

> WIP
[![npm version](https://badge.fury.io/js/super-simple-fastify-server.svg)](https://badge.fury.io/js/super-simple-fastify-server)
[![CI Status Badge](https://github.com/adamhamlin/super-simple-fastify-server/actions/workflows/ci.yaml/badge.svg)](https://github.com/adamhamlin/super-simple-fastify-server/actions/workflows/ci.yaml)

Super-simple Fastify web server! Quickly spin up a server for dev/test without all the bloat and boilerplate:

## Install

```bash
npm i --save-dev super-simple-fastify-server
```

## Usage

```ts
Expand Down
2 changes: 2 additions & 0 deletions dist/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Local dev files
entry-point.*
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "Super simple fastify web server for rapid dev/test",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/adamhamlin/super-simple-fastify-server.git"
Expand All @@ -29,7 +32,7 @@
"check": "npm run _lint:check . && npm run _format:check .",
"compile": "tsc -p ./",
"watch": "npm run compile -- -watch",
"prepare": "husky"
"prepare": "husky && npm run compile"
},
"lint-staged": {
"*.ts": "npm run _lint -- --cache",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"outDir": "./dist",
"declaration": true,
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
},
"exclude": ["node_modules", "dist/**/*"]
}

0 comments on commit f62153b

Please sign in to comment.