-
Notifications
You must be signed in to change notification settings - Fork 7
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 #5 from turbolent/tests
Return promises, add tests
- Loading branch information
Showing
13 changed files
with
2,107 additions
and
235 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,15 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "7" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
script: npm run buildProduction && npm test -- --runInBand | ||
|
||
cache: | ||
directories: | ||
- "node_modules" | ||
yarn: true |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "collection-view", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"license": "MIT", | ||
"author": "Bastian Müller <[email protected]>", | ||
"description": "UICollectionView for the web", | ||
|
@@ -21,7 +21,9 @@ | |
"scripts": { | ||
"buildProduction": "webpack --env production --progress --profile --colors", | ||
"prepublishOnly": "npm run buildProduction", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'" | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"buildTestEnv": "webpack --context tests/env --config tests/env/webpack.config.js", | ||
"test": "npm run buildTestEnv && jest" | ||
}, | ||
"dependencies": { | ||
"@types/bezier-easing": "2.0.x", | ||
|
@@ -30,12 +32,29 @@ | |
"lodash-es": "^4.17.4" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^22.1.4", | ||
"@types/puppeteer": "^1.0.1", | ||
"babel-minify-webpack-plugin": "0.2.x", | ||
"css-loader": "0.28.x", | ||
"jest": "^22.4.2", | ||
"puppeteer": "^1.1.1", | ||
"style-loader": "0.19.x", | ||
"ts-loader": "3.1.x", | ||
"tslint": "5.8.x", | ||
"typescript": "2.6.x", | ||
"webpack": "3.8.x" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js" | ||
], | ||
"transform": { | ||
"^.+\\.ts$": "<rootDir>/tests/preprocessor.js" | ||
}, | ||
"testMatch": [ | ||
"<rootDir>/tests/*.spec.ts" | ||
], | ||
"verbose": true | ||
} | ||
} |
Oops, something went wrong.