Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shelldandy/mocha-shopify-lint
Runs theme-lint as mocha tests.
https://github.com/shelldandy/mocha-shopify-lint
liquid mocha mocha-shopify-lint nodejs theme-lint
Last synced: about 20 hours ago
JSON representation
Runs theme-lint as mocha tests.
- Host: GitHub
- URL: https://github.com/shelldandy/mocha-shopify-lint
- Owner: shelldandy
- License: mit
- Created: 2017-07-12T05:09:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-14T15:21:07.000Z (over 7 years ago)
- Last Synced: 2024-11-11T22:45:49.139Z (4 days ago)
- Topics: liquid, mocha, mocha-shopify-lint, nodejs, theme-lint
- Language: Liquid
- Size: 178 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ATTENTION
Not really working because theme-lint is actually not really linting all the theme files as of right now, just the translation ones.
😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢
# mocha-shopify-lint
Runs [theme-lint](https://github.com/Shopify/theme-lint) as [mocha](http://mochajs.org) tests.
## Install
```
$ npm install mocha-shopify-lint --save-dev
```## Usage
### Syntax:
```javascript
mochaShopifyLint(patters)
```
Where patterns is an array of [glob patterns](https://github.com/jpillora/node-glob-all).### Example:
shopify-lint.spec.js
``` javascript
const mochaShopifyLint = require('mocha-shopify-lint')
mochaShopifyLint(['./test/files/**/*.liquid'])
```