Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"react-app",
{
"flow": false,
"typescript": true
}
]
]
}
10 changes: 8 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended"],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"quotes": ["error", "double"],
"@typescript-eslint/indent": [
"error",
2
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-parameter-properties": 0
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0
}
}
23 changes: 16 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@ language: node_js
os: linux

matrix:
include:
- node_js: '8'
- node_js: '10'
include:
- node_js: '8'
- node_js: '10'

sudo: false

install:
- npm install

- npm install
script:
- npm test
- npm run test:ci

after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this push the coverage report up to coveralls automatically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it seems automagic, but our coverage badge is still unknown, and I'm guessing that's because we haven't had it run on master yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mydiemho might know, but my guess is that it targets a default branch (master). I wonder if that's something we can change? Everything will get there eventually...


deploy:
provider: npm
email: $NPM_EMAIL_ACCOUNT
api_key:
secure: Iu5Q2uuiF+jRWkNRtX77YElMwyEopzKD+iHQQkT7HheH12AwDAW/PZiwLRhBTif8kvHmIIwPhjey6i7QwmJFUmpb433299WF+tinRhy5mBFntdaNmgS2Wvv/hOFJza2XdOeIsKA+s+zPAGArfLonmvQX5QKVmJI7/W+hyqJT0FjtTMqxPyJ00ENuDeZdUEcsaoDAwu1XTA6bj5ILnguR+smeGoZscpp8nwTv27fA+GWLFGf08pPAyuHSwc1/lRxSbLlw/f0ZqnCclGU+SF2EV4/9+xxcPWqtJdJfURR/LaOkg3Q5o4aILRjNJNCbpRkrc5lEcPEvBPLrI6e7F9ssg08aHniaMvdD5B9TsgGqV6sxZX/KvMIHWfzBRLuCzY2bPE8Wbw+ZI/yi9+89NZdRikAMyWocvg4tx1OsQRcrRltsXqQrZyw45IR5oSv0kLx54xrslXu8jjP08jQEpnBncJp883DX6DmO42TRP4QYHsQ8BB5hHQ2qmVoKMydkLy0Kdvq7e+9v/pZHEMsR/HOwz1S5xYsSeqwqoq4u/H+hPFWu3GVJXbsVLHZuaDU3fBRMtJOcjujPszrvN/cNt2JryTT1EYPJotmpURqu/n9vPLMzoi1wIKPrZiAcEzh8MLlM93MyG/yuPeHZOvMuwCVtOXd3KKH8sEJvbTVUtKIvQXw=
on:
tags: true
repo: serverless/serverless-azure-functions
branch: master
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"eslint.options": {
"configFile": "./.eslintrc.json"
},
"eslint.validate": [
"javascript",
"typescript"
]
}
33 changes: 23 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
module.exports = {
preset: 'ts-jest',
transform: {
".(ts|tsx)": "ts-jest"
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"testEnvironment": "node",
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
},
testRegex: "((\\.|/)(test|spec))\\.ts$",
moduleFileExtensions: ["ts", "tsx", "js"],
testPathIgnorePatterns: [
"/lib/",
"/node_modules/"
"testPathIgnorePatterns": [
"./lib",
"./node_modules"
],
"transformIgnorePatterns": [
"./lib",
"./node_modules"
],
collectCoverage: true
};
"moduleFileExtensions": [
"js",
"ts",
"tsx",
"json",
"jsx",
"node"
]
};
Loading