Skip to content

Commit

Permalink
adding linting, replacing Makefile with package scripts (#1)
Browse files Browse the repository at this point in the history
* testing travis build with both node and deno

* fixing yarn install error on travis linux machine

* adding linting

* fixing lint error

* replacing Makefile with node package scripts; fixing travis build script

* updating terser command

* rebuild

* printing deno version in travis build
  • Loading branch information
chrisdothtml authored Dec 31, 2018
1 parent 6f7cbc2 commit 7ce5576
Show file tree
Hide file tree
Showing 8 changed files with 1,427 additions and 13 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
language: python
language: node_js

os:
- linux
- osx

install:
- curl -L https://deno.land/x/install/install.py | python - v0.2.3
- export PATH="$HOME/.deno/bin:$PATH"
- yarn install --ignore-engines

script:
- make tests
- deno --version
- yarn test
6 changes: 0 additions & 6 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,26 @@
"node": ">=11",
"yarn": ">=1.12"
},
"scripts": {
"build:bundle": "rollup -c",
"build:ts-fix": "terser index.js -c -o index.js -b \"beautify=false,preamble='//@ts-ignore'\"",
"build": "yarn build:bundle && yarn build:ts-fix",
"lint": "standard --verbose | snazzy",
"test": "yarn lint && deno index.test.js"
},
"standard": {
"ignore": [
"index.js"
]
},
"devDependencies": {
"minimatch": "^3.0.4",
"rollup": "^0.68.1",
"rollup-plugin-alias": "^1.5.1",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0",
"snazzy": "^8.0.0",
"standard": "^12.0.1",
"terser": "^3.13.1"
}
}
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# deno-minimatch

[![StandardJS code style](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![travis-ci build status](https://api.travis-ci.org/chrisdothtml/deno-minimatch.svg?branch=master)](https://travis-ci.org/chrisdothtml/deno-minimatch)

> A [deno](https://github.com/denoland/deno) port of [minimatch](https://github.com/isaacs/minimatch)
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export default {
cjs(),
alias({
path: path.resolve(__dirname, 'src/path.js')
}),
})
]
}
Loading

0 comments on commit 7ce5576

Please sign in to comment.