Skip to content

Commit

Permalink
Add bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 17, 2019
1 parent d505a5f commit eae9acf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
coverage/
dist/
node_modules/
remark-heading-gap.js
remark-heading-gap.min.js
yarn.lock
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dist
coverage
coverage/
dist/
remark-heading-gap.js
remark-heading-gap.min.js
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@ node_js:
- lts/dubnium
- node
after_script: bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: ie5TJJL5U9bzf5X9baB8RH7eGTCOdodbzQMPoidOP7fS/aeljVjVjUmAaHx0rH3FbatR66jiVrjDIyctWf4bLYNxp8+ty3JY4piZqqYhzedDpW5iYeEmh1bd4gsyNoI4NsaqVeXKa6TIJ8FcsWvEj8f+IqEpe/S8lqeUqjyBPgaJ0JPLM2sMLtbdSplaD9sbsqlhG+A/zoygrFvv9zQPtlSZAjGTzNsjBiK3HlQAMLBPftYRQTX89wO8EyvnftydWDwHDnvXd0SLTBDxtOXxLqS/LxTd3XEK1MZlbfi+ISMOHlwF0eOISW3YQWB5cpBzv5nPqqgV5SMUeWfsi56iyoZVJYYUmvr5iTTY7Pkmm1vvsAwhNchemub+momKRZU8DIL4ETPaTcTB0n8VmWrcSw4jAEgp7Biiuv5A+7G4Nuu+ylWBmkatuCOoeOolpwKY3+IJFKES6jnNFytBPqJX9d4sc4euUqXuHmCD0T4va/YIla6nkcp14/XisCnaqSrGIcknPabG4MJ0VJ0azlwpqVzL+AtcazOptaJ9ZIFNoJMBAdBDZ9pzxntKv59zC8KyNsH/EdCeaZjO5r51pvqObWlIL3exRHiH+wahzn4JGHHTUKwTPH7HwWB2wr8wxTNChBwl9q3tdKshzeukP3PqtIClKgVRIlkmlBJlPbmtkSM=
file:
- 'remark-heading-gap.js'
- 'remark-heading-gap.min.js'
on:
tags: true
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,25 @@
"@babel/register": "^7.0.0",
"ava": "2.0.0",
"babel-plugin-add-module-exports": "^1.0.0",
"browserify": "^16.0.0",
"nyc": "^14.0.0",
"prettier": "^1.0.0",
"remark": "^10.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"tinyify": "^2.0.0",
"xo": "^0.24.0"
},
"scripts": {
"prepublishOnly": "npm run build",
"build": "babel src --out-dir dist --ignore src/**/__tests__",
"prepublishOnly": "npm run compile",
"format": "remark . -qfo && prettier \"**/*.js\" --write && xo --fix",
"compile": "babel src --out-dir dist --ignore src/**/__tests__",
"build-bundle": "browserify . -s remarkHeadingGap -o remark-heading-gap.js",
"build-mangle": "browserify . -s remarkHeadingGap -p tinyify -o remark-heading-gap.min.js",
"bundle": "npm run build-bundle && npm run build-mangle",
"test-api": "ava",
"test-coverage": "nyc --reporter lcov ava",
"test": "npm run build && npm run format && npm run test-coverage"
"test": "npm run format && npm run compile && npm run bundle && npm run test-coverage"
},
"browserslist": "> 2.5%, node 6",
"babel": {
Expand Down

0 comments on commit eae9acf

Please sign in to comment.