Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
Use release-it and fix gh-pages script
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 9, 2017
1 parent 711ef87 commit 7946d48
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .release.json
@@ -0,0 +1,7 @@
{
"dist": {
"repo": "https://github.com/webpro/DOMtastic.git#gh-pages",
"files": "",
"beforeStageCommand": "../build/gh-pages.sh"
}
}
14 changes: 14 additions & 0 deletions build/gh-pages.sh
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

cat index.yml ../README.md > index.md
npm run build
npm run vendor
npm run coverage
npm run doc
rsync --recursive --delete ../dist/ dist
rsync --recursive --delete ../test/ test
rsync --recursive --delete ../vendor/ vendor
rsync --recursive --delete ../coverage/ coverage
rsync --recursive --delete ../doc/ doc
rsync --recursive --delete ../examples/ examples
rsync --recursive --delete ../benchmark/ benchmark
15 changes: 0 additions & 15 deletions build/pages.sh

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -37,7 +37,7 @@
"scripts": {
"build": "rollup -c && rollup -c --minify",
"bundle": "rollup -c",
"coverage": "nyc --reporter text --reporter html npm test",
"coverage": "nyc --reporter text --reporter html npm test -- --reporter=dot",
"doc": "doxstrap --title DOMtastic --output doc",
"lint": "eslint src",
"fix": "eslint src --fix",
Expand Down

0 comments on commit 7946d48

Please sign in to comment.