Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

v1.11 #76

Merged
merged 37 commits into from May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fb820b3
initial work on new system
nahtnam May 24, 2020
02a1b1b
v1.11.0-alpha.0
nahtnam May 24, 2020
7e18b66
more work
nahtnam May 24, 2020
7e8d27a
v1.11.0-alpha.1
nahtnam May 24, 2020
7578955
add serverless support
nahtnam May 24, 2020
8f09e59
clean up types
nahtnam May 24, 2020
fd27d45
more touch ups
nahtnam May 25, 2020
f946b6c
v1.11.0-alpha.2
nahtnam May 25, 2020
ef95ded
update netlify
nahtnam May 25, 2020
c67e203
clean up and add a few tests
nahtnam May 25, 2020
35e2b8b
v1.11.0-alpha.3
nahtnam May 25, 2020
4be8484
fix ts issue
nahtnam May 25, 2020
da0afac
v1.11.0-alpha.4
nahtnam May 25, 2020
607f311
more fixes
nahtnam May 25, 2020
23790d9
v1.11.0-alpha.5
nahtnam May 25, 2020
4aea7ad
minor fixes
nahtnam May 26, 2020
e9042d2
v1.11.0-alpha.6
nahtnam May 26, 2020
a424850
improve logging
nahtnam May 28, 2020
0070726
v1.11.0-alpha.7
nahtnam May 28, 2020
2b5a7d5
set up docusaurus
nahtnam May 29, 2020
253e0d5
update netlify.toml
nahtnam May 29, 2020
56abd81
remove redirects
nahtnam May 29, 2020
a6df6c2
add some tests
nahtnam May 29, 2020
986158a
more fixes
nahtnam May 29, 2020
06f0b1d
update github actions
nahtnam May 29, 2020
6d60ec2
v1.11.0-alpha.8
nahtnam May 29, 2020
9874aa3
update createRoute
nahtnam May 29, 2020
c54d021
v1.11.0-alpha.9
nahtnam May 29, 2020
a12f677
vercel is working!
nahtnam May 29, 2020
99d7516
fix basic example
nahtnam May 29, 2020
55fe3a4
update website
nahtnam May 29, 2020
c3943dc
add more tests
nahtnam May 29, 2020
ce09673
update github actions
nahtnam May 29, 2020
28fb4a2
update github actions
nahtnam May 29, 2020
2a8da1d
update readme
nahtnam May 29, 2020
7c1e4bf
add support for nested index
nahtnam May 29, 2020
0240550
add dynamic route example
nahtnam May 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
*/node_modules
*.log
56 changes: 9 additions & 47 deletions .github/workflows/main.yml
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -22,13 +22,11 @@ jobs:
- run: npx lerna run --stream ci
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/light/coverage/lcov.info
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

basic-example:
env:
CI: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -42,28 +40,11 @@ jobs:
working-directory: ./examples/basic
- run: npm test
working-directory: ./examples/basic
env:
CI: true

global-server-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm ci
- run: npx lerna bootstrap
- run: npm ci
working-directory: ./examples/global/server
- run: npm test
working-directory: ./examples/global/server
env:
CI: true

global-serverless-example:
vercel-example:
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
Expand All @@ -73,28 +54,9 @@ jobs:
- run: npm ci
- run: npx lerna bootstrap
- run: npm ci
working-directory: ./examples/global/serverless
working-directory: ./examples/vercel
- run: npm test
working-directory: ./examples/global/serverless
env:
CI: true

zeit-now-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm ci
- run: npx lerna bootstrap
- run: npm ci
working-directory: ./examples/zeit-now
- run: npm test
working-directory: ./examples/zeit-now
env:
CI: true
working-directory: ./examples/vercel

netlify-example:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
@@ -0,0 +1,10 @@
FROM node:lts

WORKDIR /app/website

EXPOSE 3000 35729
COPY ./docs /app/docs
COPY ./website /app/website
RUN yarn install

CMD ["yarn", "start"]
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@
[![npm](https://img.shields.io/npm/v/light.svg?label=npm%20version&style=for-the-badge&labelColor=0a0a0a)](https://www.npmjs.com/package/light)
[![Downloads](https://img.shields.io/npm/dm/light.svg?label=downloads&style=for-the-badge&labelColor=0a0a0a)](https://www.npmjs.com/package/light)
[![Stars](https://img.shields.io/github/stars/ludicroushq/light.svg?style=for-the-badge&labelColor=0a0a0a)](https://github.com/ludicroushq/light)
[![Coveralls GitHub](https://img.shields.io/coveralls/github/ludicroushq/light.svg?label=code%20coverage&style=for-the-badge&labelColor=0a0a0a)](https://coveralls.io/github/ludicroushq/light)
[![Coveralls GitHub](https://img.shields.io/codecov/c/github/ludicroushq/light?label=code%20coverage&style=for-the-badge&labelColor=0a0a0a)](https://codecov.io/gh/ludicroushq/light)

**NOTICE: Since light is a work in progress, breaking changes will be made every MINOR patch until 2.0**

Expand Down
18 changes: 18 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,18 @@
version: "3"

services:
docusaurus:
build: .
ports:
- 3000:3000
- 35729:35729
volumes:
- ./docs:/app/docs
- ./website/blog:/app/website/blog
- ./website/core:/app/website/core
- ./website/i18n:/app/website/i18n
- ./website/pages:/app/website/pages
- ./website/static:/app/website/static
- ./website/sidebars.json:/app/website/sidebars.json
- ./website/siteConfig.js:/app/website/siteConfig.js
working_dir: /app/website
2 changes: 0 additions & 2 deletions docs/README.md

This file was deleted.

51 changes: 0 additions & 51 deletions docs/SUMMARY.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/boom/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/boom/create-error.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/buffer.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/json.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/run.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/send-error.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/send.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/micro/text.md

This file was deleted.

39 changes: 0 additions & 39 deletions docs/api/params.md

This file was deleted.

47 changes: 0 additions & 47 deletions docs/api/server.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/api/untitled.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/guides/databases/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/guides/databases/mongoose.md

This file was deleted.