Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .editorconfig

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Vercel, Inc.
Copyright (c) 2022 Vercel, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Micro (Dev) — Asynchronous HTTP microservices

This command line interface provides a belt full of tools that make building microservices using [micro](https://github.com/zeit/micro) a breeze! It's only meant to be used in development, **not in production** (that's where [micro](https://github.com/zeit/micro) comes in).
This command line interface provides a belt full of tools that make building microservices using [micro](https://github.com/vercel/micro) a breeze! It's only meant to be used in development, **not in production** (that's where [micro](https://github.com/vercel/micro) comes in).

## Features

Expand All @@ -15,7 +15,7 @@ This command line interface provides a belt full of tools that make building mic

## Usage

**Important:** This tool is only meant to be used in development. In production, you should use [micro](https://github.com/zeit/micro), which is much lighter and faster (and also comes without the belt of tools used when developing microservices).
**Important:** This tool is only meant to be used in development. In production, you should use [micro](https://github.com/vercel/micro), which is much lighter and faster (and also comes without the belt of tools used when developing microservices).

When preparing your development environment, firstly install `micro-dev`:

Expand Down
19 changes: 3 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
"lib"
],
"scripts": {
"test": "yarn run lint && ava",
"lint": "zeit-eslint --ext .jsx,.js .",
"lint-staged": "git diff --diff-filter=ACMRT --cached --name-only '*.js' '*.jsx' | xargs zeit-eslint"
"test": "vitest"
},
"bin": {
"micro-dev": "./bin/micro-dev.js"
},
"repository": "zeit/micro-dev",
"repository": "vercel/micro-dev",
"license": "MIT",
"keywords": [
"micro",
Expand All @@ -40,20 +38,9 @@
"string-length": "2.0.0"
},
"devDependencies": {
"@vercel/git-hooks": "1.0.0",
"@zeit/eslint-config-node": "0.2.13",
"ava": "4.3.0",
"eslint": "8.17.0"
"vitest": "0.17.0"
},
"peerDependencies": {
"micro": ">=9.0.0"
},
"eslintConfig": {
"extends": [
"@zeit/eslint-config-node"
]
},
"git": {
"pre-commit": "lint-staged"
}
}
21 changes: 21 additions & 0 deletions test/__snapshots__/help.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Vitest Snapshot v1

exports[`--help 1`] = `
"
Usage: micro-dev [path] [options]

Options:

-p, --port <n> Port to listen on (defaults to 3000)
-H, --host The host on which micro will run
-d, --dotenv Custom path for a .env file (relative to cwd)
-c, --cold Disable hot reloading
-w, --watch <dir> A directory to watch in addition to [path]
-L, --poll Poll for code changes rather than using events
-l, --limit Size limit for JSON parsing (string like '1mb', or bytes)
-i --ignore <dir> Ignore watching a file, directory, or glob
-s, --silent Disable requests log
-v, --version Output the version number
-h, --help Show this usage information
"
`;
9 changes: 0 additions & 9 deletions test/help.js

This file was deleted.

7 changes: 7 additions & 0 deletions test/help.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { expect, it } from 'vitest'
import generateHelp from '../lib/help'

it('--help', () => {
const result = generateHelp()
expect(result).toMatchSnapshot()
})
27 changes: 0 additions & 27 deletions test/snapshots/help.js.md

This file was deleted.

Binary file removed test/snapshots/help.js.snap
Binary file not shown.
Loading