-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
819a60c
commit 4480425
Showing
34 changed files
with
15,433 additions
and
36,695 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"@myparcel/eslint-config/preset-vue" | ||
], | ||
"rules": { | ||
"jsdoc/no-undefined-types": [ | ||
"warn", | ||
{ | ||
"definedTypes": [ | ||
"MyParcel", | ||
"MyParcelDeliveryOptions", | ||
"Wrapper", | ||
"VNode", | ||
"webpack" | ||
] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"extends": "@myparcel/eslint-config/preset-typescript", | ||
"files": [ | ||
"**/*.ts" | ||
] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
name: Run test on the live API | ||
name: 'Run test on the live API' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
||
jobs: | ||
test: | ||
name: Run test on live API | ||
name: 'Run test on live API' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
ref: 'main' | ||
- uses: bahmutov/npm-install@v1 | ||
- name: Run jest | ||
- uses: myparcelnl/actions/yarn-install@v1 | ||
- name: 'Run jest' | ||
run: ./node_modules/.bin/cross-env npm test -- tests/unit/delivery-options/testLiveApi.spec.js --coverage=false | ||
env: | ||
NODE_ICU_DATA: node_modules/full-icu |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ name: Build | |
|
||
on: | ||
pull_request: | ||
branches-ignore: | ||
- main | ||
paths-ignore: | ||
- ./**/*.md | ||
- screenshots/**/* | ||
|
@@ -13,6 +15,7 @@ on: | |
paths: | ||
- src/**/* | ||
- public/**/* | ||
- types/**/* | ||
- .browserslistrc | ||
- babel.config.js | ||
- package-lock.json | ||
|
@@ -22,60 +25,58 @@ on: | |
|
||
jobs: | ||
test: | ||
name: Run tests | ||
name: 'Run tests' | ||
if: contains(github.event.head_commit.message, '[skip ci]') == false | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- uses: myparcelnl/actions/npm-install@v1 | ||
- name: Run jest | ||
run: ./node_modules/.bin/cross-env npm test | ||
- uses: myparcelnl/actions/yarn-install@v1 | ||
- name: 'Run tests' | ||
run: ./node_modules/.bin/cross-env yarn test:unit --coverage | ||
env: | ||
NODE_ICU_DATA: node_modules/full-icu | ||
|
||
- name: Update coverage | ||
- name: 'Upload code coverage' | ||
uses: codecov/[email protected] | ||
|
||
build: | ||
name: Create build | ||
name: 'Create build' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: myparcelnl/actions/npm-install@v1 | ||
- run: npm run build | ||
- uses: myparcelnl/actions/yarn-install@v1 | ||
- run: yarn run build | ||
- name: Upload build | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist/ | ||
|
||
release: | ||
name: Publish | ||
name: 'Publish' | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
- test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: myparcelnl/actions/npm-install@v1 | ||
- uses: myparcelnl/actions/yarn-install@v1 | ||
- name: Get build | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
|
||
- name: Run semantic release | ||
run: npx semantic-release | ||
- name: 'Release' | ||
run: 'npx semantic-release' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: Publish to Github Pages | ||
- name: 'Publish updated sandbox' | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
BRANCH: gh-pages | ||
|
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 +1 @@ | ||
import 'types' | ||
export * from './types/index'; |
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
Oops, something went wrong.