forked from alallier/reload
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,953 additions
and
5,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,99 @@ | ||
on: [push, pull_request] | ||
name: CI | ||
name: Node CI | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node-version: | ||
- 18 | ||
- 20 | ||
- 22 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'npm' | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm test | ||
- run: npm run report-coverage | ||
- name: node check | ||
run: | | ||
npm ci | ||
npm test | ||
npm run coverage | ||
env: | ||
CI: true | ||
|
||
build-windows-mac: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'npm' | ||
node-version: 'lts/*' | ||
- name: node check | ||
run: | | ||
npm ci | ||
npm test | ||
npm run coverage | ||
env: | ||
CI: true | ||
# Summary job that allow checking for workflow status | ||
# This job is used as required status check to pass before merging to the main branch | ||
status-checks: | ||
name: status-checks | ||
needs: [ build-windows-mac, build-linux ] | ||
permissions: | ||
contents: none | ||
if: always() | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Validation Status checks | ||
run: | | ||
echo 'Configuration for Status checks that are required' | ||
echo '${{ toJSON(needs) }}' | ||
if [[ (('skipped' == '${{ needs.build-linux.result }}') || ('success' == '${{ needs.build-linux.result }}')) && (('skipped' == '${{ needs.build-windows-mac.result }}') || ('success' == '${{ needs.build-windows-mac.result }}')) ]]; then | ||
exit 0 | ||
fi | ||
exit 1 | ||
deploy: | ||
if: startsWith(github.event.ref, 'refs/tags/') | ||
needs: [ "status-checks" ] | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'npm' | ||
node-version: 'lts/*' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: deploy | ||
run: | | ||
PACKAGE_VERSION=$(cat package.json|grep version|head -1|awk -F: '{ print $2 }'|sed 's/[", ]//g') | ||
echo "Package: $PACKAGE_VERSION" | ||
echo "Tag: $GITHUB_REF_NAME" | ||
if [ "$PACKAGE_VERSION" != "$GITHUB_REF_NAME" ]; then echo "$PACKAGE_VERSION and $GITHUB_REF_NAME are not the same, skipping"; exit 1; fi | ||
echo "Publishing $PACKAGE_VERSION …" | ||
npm ci | ||
npm publish --access public | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
reload | ||
@tikui/reload | ||
======= | ||
|
||
[![Build Status](https://github.com/alallier/reload/workflows/CI/badge.svg)](https://github.com/alallier/reload/actions?query=workflow%3ACI) | ||
It's a fork of [reload](https://github.com/alallier/reload). If the original repo become active again, this repository will be deleted. | ||
|
||
[![Build Status](https://github.com/tikui/reload/workflows/CI/badge.svg)](https://github.com/tikui/reload/actions?query=workflow%3ACI) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
[![codecov](https://codecov.io/gh/alallier/reload/branch/master/graph/badge.svg)](https://codecov.io/gh/alallier/reload) | ||
[![NPM version](https://img.shields.io/npm/v/reload.svg)](https://www.npmjs.com/package/reload) | ||
|
||
Automatically refresh and reload your code in your browser when your code changes. No browser plugins required. | ||
|
||
|
@@ -48,7 +48,7 @@ Once reload-server and reload-client are connected, the client side code opens a | |
Installation | ||
--- | ||
|
||
npm install [-g] [--save-dev] reload | ||
npm install [-g] [--save-dev] @tikui/reload | ||
|
||
|
||
Two ways to use reload | ||
|
@@ -230,7 +230,7 @@ There are two ways to use the command line application. | |
|
||
Each will require different modes of installing. | ||
|
||
In case one you should install reload globally with `npm install reload -g`. Also with reload installed globally you can go to any directory with an HTML file and use the command reload to constantly watch it and reload it while you make changes. | ||
In case one you should install reload globally with `npm install @tikui/reload -g`. Also with reload installed globally you can go to any directory with an HTML file and use the command reload to constantly watch it and reload it while you make changes. | ||
|
||
In case two you should install locally with `npm install --save-dev`, since this tool is to aid in development you should install it as a dev dependency. | ||
|
||
|
@@ -272,6 +272,10 @@ Copyright 2023 | |
|
||
JP Richardson <[email protected]> | ||
|
||
### Owned by: | ||
### Owned until 2023 by: | ||
|
||
Alexander J. Lallier <[email protected]> | ||
|
||
### Owned by: | ||
|
||
[Tikui members](https://github.com/orgs/tikui/people) since 2024. |
Oops, something went wrong.