Skip to content

Commit

Permalink
feat!: adds support for ESM and Deno (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Aug 4, 2020
1 parent bdc80ba commit 195bc4a
Show file tree
Hide file tree
Showing 30 changed files with 2,082 additions and 1,701 deletions.
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

45 changes: 43 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -17,6 +17,8 @@ jobs:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- run: npm test
windows:
runs-on: windows-latest
Expand All @@ -26,14 +28,53 @@ jobs:
with:
node-version: 12
- run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- run: npm test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 13
node-version: 14
- run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- run: npm test
- run: npm run coverage
deno:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- run: npm run compile
- uses: denolib/setup-deno@v2
with:
deno-version: v1.x
- run: |
deno --version
deno test --allow-read test/deno/yargs-test.ts
browser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run test:browser
typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run test:typescript
22 changes: 21 additions & 1 deletion .github/workflows/release-please.yml
Expand Up @@ -7,8 +7,28 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: bcoe/release-please-action@v1.2.1
- uses: bcoe/release-please-action@v1.6.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: yargs-parser
release-deno:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- run: npm run compile
- name: push Deno release
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/yargs/yargs-parser.git"
git checkout -b deno
git add -f build
git commit -a -m 'build: deploy latest Deno build'
git push origin +deno
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,8 +1,8 @@
.idea
build/
.nyc_output
node_modules
.DS_Store
package-lock.json
./test/fixtures/package.json
coverage
build
6 changes: 0 additions & 6 deletions .mocharc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .nycrc
Expand Up @@ -7,7 +7,7 @@
"html",
"text"
],
"lines": 100,
"branches": "97",
"statements": "100"
"lines": 99.5,
"branches": "98",
"statements": "99.5"
}

0 comments on commit 195bc4a

Please sign in to comment.