-
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.
Merge pull request #1 from acacode/develop
First release 0.0.1
- Loading branch information
Showing
9 changed files
with
3,038 additions
and
2,082 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ node_js: | |
- "node" | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- "node_modules" | ||
|
||
|
@@ -18,44 +17,44 @@ before_install: | |
- export RELEASE_BODY=$(node -p "'[Click here to see release changes](https://github.com/$PROJECT_NAME/blob/$TRAVIS_BRANCH/CHANGELOG.md#' + require('./bin/getLatestTag.js') + ')'") | ||
|
||
install: | ||
- yarn install --frozen-lockfile | ||
- npm ci | ||
|
||
jobs: | ||
include: | ||
- stage: lint | ||
script: yarn lint | ||
script: npm run lint | ||
- stage: test | ||
script: | ||
- yarn run build | ||
- yarn test | ||
# - stage: publish | ||
# if: env(BRANCH_IS_TAG) != true AND branch = master AND type = push | ||
# name: "Create Github Release" | ||
# before_deploy: | ||
# - git config --global user.email "[email protected]" | ||
# - git config --global user.name "Travis CI" | ||
# - git tag $PACKAGE_VERSION -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER from $TRAVIS_BRANCH" | ||
# - git push -q https://[email protected]/$PROJECT_NAME --tags | ||
# - zip -r release.zip dist lib es src index.d.ts LICENSE README.md package.json | ||
# - ls -l | ||
# deploy: | ||
# provider: releases | ||
# name: "Release ${PACKAGE_VERSION}" | ||
# body: "$RELEASE_BODY" | ||
# overwrite: true | ||
# skip_cleanup: true | ||
# api_key: | ||
# secure: ${GITHUB_TOKEN} | ||
# file: | ||
# - release.zip | ||
# on: | ||
# all_branches: true | ||
# repo: $PROJECT_NAME | ||
# after_deploy: | ||
# - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc | ||
# - npm publish | ||
- npm run build | ||
- npm run test | ||
- stage: publish | ||
if: env(BRANCH_IS_TAG) != true AND branch = master AND type = push | ||
name: "Create Github Release" | ||
before_deploy: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
- git tag $PACKAGE_VERSION -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER from $TRAVIS_BRANCH" | ||
- git push -q https://[email protected]/$PROJECT_NAME --tags | ||
- zip -r release.zip dist lib es src index.d.ts LICENSE README.md package.json | ||
- ls -l | ||
deploy: | ||
provider: releases | ||
name: "Release ${PACKAGE_VERSION}" | ||
body: "$RELEASE_BODY" | ||
overwrite: true | ||
skip_cleanup: true | ||
api_key: | ||
secure: ${GITHUB_TOKEN} | ||
file: | ||
- release.zip | ||
on: | ||
all_branches: true | ||
repo: $PROJECT_NAME | ||
after_deploy: | ||
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc | ||
- npm publish | ||
|
||
# notifications: | ||
# slack: | ||
# rooms: | ||
# secure: NmTpLAVX83pyyKJnTAyCy89XAJioG7dUM86CMl2V7u2Z3BdN4++Ee6pfTQkzrjZ6ITz+kil4Jpn8Vo5AHU18gmDwaqV+xrV2TX3Z58umPXY3tMR4s9STjDukUUhYn6H5m2cwcdScW+00s+aR8KUSkY49YtF3Kbha+EO1rA8/cpT8rINDz9ecUPH6AWuOIWbwpFiUQtrXUUxA9yKoGBRHRy5XX4r3GWuMRBKC4dTk0m1Z9kLgTmpi2ICrPmvzKyMtLspoqJWMO1n7d0saRW7mepJ34alCjaoUGi1lzHqwimCT87pCvwDIF4tXrRVmpCp4ZS1hTYeH/TedJcn+qw1abmmYaeC6fzSCB6DlWWQSJ4NI73pOzWKhQ1Q1SSd/x7ScWy+9K8CNY7jUoUVSMka1fBgeNeGxqezYl1A1GEa/iW6r0uiTOnQYC80UNtCnCbeB4kR6TeofECGWXMwuKOkT9gYnrvR0edGZmwmGqSFiLte86A1rxk3eoQr8NONMr11mkbeAe0hNbcG7TGojy4AwlY/q0VKpw7if0Wo9Hft/26sahFMawT7XvM9QmIs7+/QUnSEdVMDFy/qphQNlSUqNAMJX7U/5dtjc13WUAeNwg6gGAwoaAuE2mysFUYxbtD/KjlYStGFXhGJXilx2MVDZal2ZtDXGxKtIMV1xNF5QwaM= | ||
notifications: | ||
slack: | ||
rooms: | ||
secure: Pn2kH6U6NCsvGa4P0zEVl/TN+c9wrblBsbNicUVDM/HYFmiB+rPYfAgh6RT1oKxWZNZXl2jGVkBxnIDpNNXHdFRj4zTSbpz5iDNi38n1i70Ch7xfmXWblx4SrEwOVoR/RVS7Kd+IZCyjT5CEygnM/wO/uU5PZHUVsDqpaG/88EsF/gyMCVmaQQHlfDubBjFJ4VQ78RG3SlVv6lC+as9eLmscHO0Z0Bi7rRAs/zNJu11XEOG4Qc3BW1pZVpA6tm19HFdkljdi1YVL2NBgU+0wC/1URhYI5tGFiuXWI0sa7/3pqhKBoi6Mav1kH1ybfbTZwfiywI6MODIeeRa7jpgKg9S9wRu3UQLHI9J4hn+2I7G/6VwWxQTn/AXcqzRAvAqTuQ6KrNl/WgPnQXs5vOGJ2C/2UIKsecL/3W9ecbQNEhCUz13Y8xT5k8tSZDUr353AsvbGx8Y0F0fnzBYOm7kiCijYls22RNOK5/6G4cfNJiALQXwVgQUO1jBAEA2inJgxmkI73k2U4vC51V54EZBa5mr5W/KDBNuSHt7EOJvadqFOpEY5Wfg+aTO/8AH/Y5OOf+HT8GwhnUvYjQFrZ3HGJza6hcxqwx8b0pt9QPY5HM/YxRbbkqhNm08zrsh9HBLl2tZncDtjB+3tbtBMUTDXgP7eZzH93mGnwmkcKSQm7d0= |
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
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
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,12 @@ | ||
import { AxiosStatic } from 'axios' | ||
import { SerializyInstance } from 'http-helpers-serializy' | ||
|
||
// TODO: added typings for 'model' property | ||
|
||
export interface AxiosSerializy extends AxiosStatic { | ||
setErrorModel(errorModel: SerializyInstance): void; | ||
} | ||
|
||
declare const Axios: AxiosSerializy; | ||
|
||
export default Axios; |
Oops, something went wrong.