Skip to content

Commit 3695bc9

Browse files
committed
.
0 parents  commit 3695bc9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1439
-0
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@yandeu/eslint-config",
3+
"env": { "jest": true }
4+
}

.github/codeql/codeql-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths:
2+
- src

.github/workflows/codeql-analysis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- '.github/**'
8+
pull_request:
9+
paths:
10+
- 'src/**'
11+
- '.github/**'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Initialize CodeQL
23+
uses: github/codeql-action/init@v1
24+
with:
25+
languages: typescript
26+
config-file: ./.github/codeql/codeql-config.yml
27+
28+
- name: Perform CodeQL Analysis
29+
uses: github/codeql-action/analyze@v1

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [12.x, 14.x, 15.x]
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
22+
- name: Install Dependencies
23+
run: npm install
24+
25+
- name: Run Prettier
26+
run: npm run format
27+
28+
- name: Run ESLint
29+
run: npm run lint
30+
31+
- name: Build Packages
32+
run: npm run build
33+
34+
- name: Run Tests
35+
run: npm test
36+
37+
# - name: Upload coverage to Codecov
38+
# uses: codecov/codecov-action@v1

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage
2+
lib
3+
node_modules
4+
package-lock.json

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.github
2+
coverage
3+
node_modules
4+
src
5+
test
6+
package-lock.json

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/**/const.ts

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
...require('@yandeu/prettier-config'),
3+
overrides: [
4+
{
5+
files: ['*.html'],
6+
options: { semi: true, singleQuote: false, trailingComma: 'all', arrowParens: 'always' }
7+
}
8+
]
9+
}

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
Copyright (c) Uses MIT licensed code from Connect and Roots.
4+
Copyright (c) 2012 Tapio Vierros
5+
Copyright (c) 2021 Yannick Deubel (https://github.com/yandeu); Project Url: https://github.com/yandeu/five-server
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Five Server
2+
3+
Development Server with **Live Reload** Capability.
4+
(Maintained **F**ork of **Live-Server**)
5+
6+
- Rewritten in TypeScript
7+
- Up-to-date dependencies _(soon)_
8+
9+
---
10+
11+
## Get Started
12+
13+
```bash
14+
# Remove live-server (if you have it)
15+
$ npm -g rm live-server
16+
17+
# Install five-server
18+
$ npm -g i five-server
19+
20+
# Run it
21+
$ five-server
22+
23+
# Update five-server (from time to time)
24+
$ npm -g i five-server@latest
25+
```
26+
27+
## Usage
28+
29+
Same as for [Live-Server](https://www.npmjs.com/package/live-server).
30+
31+
## License
32+
33+
[MIT](https://github.com/yandeu/five-server/blob/main/LICENSE)

0 commit comments

Comments
 (0)