Skip to content

Commit

Permalink
feat(core): CHECKOUT-3053 Add TypeScript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchin committed May 15, 2018
1 parent 3265585 commit 8a1bf13
Show file tree
Hide file tree
Showing 20 changed files with 167 additions and 783 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.nyc_output
*.log
/coverage
/dist
/lib
/node_modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# form-poster

[![Build Status](https://travis-ci.com/bigcommerce-labs/form-poster-js.svg?token=pywwZy8zX1F5AzeQ9WpL&branch=master)](https://travis-ci.com/bigcommerce-labs/form-poster-js)
[![Build Status](https://travis-ci.com/bigcommerce/form-poster-js.svg?branch=master)](https://travis-ci.com/bigcommerce/form-poster-js)

This is a JavaScript library for making a POST request as if you are submitting a HTML form. The request will have `application/x-www-form-urlencoded` content-type header. This is useful in situations where you want the same behaviour as submitting a HTML form without actually having the form in DOM.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@bigcommerce/form-poster",
"name": "form-poster",
"description": "A JavaScript library for posting HTML form data",
"main": "lib/index.js",
"private": true,
Expand Down
14 changes: 10 additions & 4 deletions jest-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ module.exports = {
transform: {
'\\.(ts|js)$': '<rootDir>/node_modules/ts-jest/preprocessor.js',
},
testRegex: 'test/.*\\.spec.(js|ts)$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json',
],
testRegex: 'test/.*\\.spec.ts$',
collectCoverageFrom: [
'src/**/*.{js,ts}',
'src/**/*.ts',
],
coveragePathIgnorePatterns: [
'\\.mock\\.(js|ts)$',
'\\.typedef\\.(js|ts)$',
'\\.mock\\.ts$',
'\\.d\\.ts$',
],
coverageThreshold: {
Expand Down
Loading

0 comments on commit 8a1bf13

Please sign in to comment.