... | ... | @@ -14,13 +14,6 @@ or, cherry pick individual helpers: |
|
|
|
|
|
import { getCurrentMediaQuery, resized } from '@area17/a17-helpers'
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
Writ tests in `test/test.js` file then run:
|
|
|
|
|
|
$ npm run compile
|
|
|
$ npm run test
|
|
|
|
|
|
## Available helpers
|
|
|
|
|
|
* [ajaxRequest](ajaxRequest) - Performs ajax requests
|
... | ... | @@ -61,6 +54,21 @@ Writ tests in `test/test.js` file then run: |
|
|
|
|
|
Feel free to add any vanilla JS helpers that will be common to many projects and save someone some time working them out in the future. The main aims are no dependencies, small elegant code and high potential sharing across sites.
|
|
|
|
|
|
### .editorconfig
|
|
|
|
|
|
Download the editor config plugin for your text editor: [http://editorconfig.org/#download](http://editorconfig.org/#download)
|
|
|
|
|
|
### no jQuery
|
|
|
|
|
|
Intentionally vanilla JS to keep this JS library agnostic.
|
|
|
|
|
|
### Tests
|
|
|
|
|
|
Written using [Mochajs](http://mochajs.org) and [Chai.js](http://chaijs.com/), currently living in `test/test.js`. To run:
|
|
|
|
|
|
$ npm run compile
|
|
|
$ npm run test
|
|
|
|
|
|
### To add/update a helper
|
|
|
|
|
|
* Make your changes
|
... | ... | |