This commit is contained in:
Pipi Chen
2020-05-07 01:02:44 +08:00
commit b8a3516cd6
2147 changed files with 184854 additions and 0 deletions

12
node_modules/chance/.github/FUNDING.yml generated vendored Normal file
View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [victorquinn] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

24
node_modules/chance/.github/workflows/coverage.yml generated vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Code Coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: install and coverage
run: |
yarn
yarn coverage
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}

34
node_modules/chance/.github/workflows/docs.yml generated vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Documentation
on:
pull_request:
branches:
- master
paths:
- 'docs/**/*'
push:
branches:
- master
paths:
- 'docs/**/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: build and deploy
if: github.event_name == 'pull_request' && github.event.pull_request.merged == 'true'
run: |
yarn
yarn docs
yarn docs:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: chancejs/chancejs
GIT_NAME: Travis CI
GIT_EMAIL: mail@victorquinn.ocm
GIT_SOURCE: _docpress

19
node_modules/chance/.github/workflows/lint.yml generated vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Lint
on: [push, pull_request]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn --frozen-lockfile --ignore-engines --ignore-optional --no-bin-links --non-interactive --silent --ignore-scripts --production=false
- name: ESLint Action
uses: gimenete/eslint-action@1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

53
node_modules/chance/.github/workflows/publish.yml generated vendored Normal file
View File

@@ -0,0 +1,53 @@
name: NPM Publish Package
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: install and test
run: |
yarn
yarn run test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Publish to NPM
if: github.event_name == 'pull_request' && github.event.pull_request.merged == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Commented out until we have access to the Github Package Registry
#
# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# scope: '@victorquinn'
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

23
node_modules/chance/.github/workflows/tests.yml generated vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Unit Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install and test
run: |
yarn
yarn run test
env:
CI: true