Skip to content

Commit 18f4b99

Browse files
authored
Merge pull request #141 from docpress/rebuild
Rebuild Scripts
2 parents 7cb4cfa + 1230530 commit 18f4b99

7 files changed

Lines changed: 44 additions & 32 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
_docpress
33
/cache
44
/coverage
5+
.nyc_output

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
language: node_js
22
node_js:
3+
- 'stable'
4+
- '6'
5+
- '5'
36
- '4'
47
cache:
58
directories:
69
- node_modules
710
script:
8-
- npm run coverage
11+
- npm test
912
- npm run build
13+
14+
after_success:
15+
- npm run coveralls

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Base theme for Docpress. See [docpress] for documentation.
44

5-
[![Status](https://travis-ci.org/docpress/docpress-base.svg?branch=master)](https://travis-ci.org/docpress/docpress-base "See test builds")
5+
![Last version](https://img.shields.io/github/tag/docpress/docpress-base.svg?style=flat-square)
6+
[![Build Status](http://img.shields.io/travis/docpress/docpress-base/master.svg?style=flat-square)](https://travis-ci.org/docpress/docpress-base)
7+
[![Coverage Status](https://img.shields.io/coveralls/docpress/docpress-base.svg?style=flat-square)](https://coveralls.io/github/docpress/docpress-base)
8+
[![Dependency status](http://img.shields.io/david/docpress/docpress-base.svg?style=flat-square)](https://david-dm.org/docpress/docpress-base)
9+
[![Dev Dependencies Status](http://img.shields.io/david/dev/docpress/docpress-base.svg?style=flat-square)](https://david-dm.org/docpress/docpress-base#info=devDependencies)
10+
[![NPM Status](http://img.shields.io/npm/dm/docpress-base.svg?style=flat-square)](https://www.npmjs.org/package/docpress-base)
11+
612

713
[docpress]: https://github.com/docpress/docpress

data/script.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/* eslint-disable no-new */
21
var Pjax = require('pjax')
32
var Nprogress = require('nprogress')
43
var onmount = require('onmount')
5-
var each = require('dom101/each')
64
var toggleClass = require('dom101/toggle-class')
75
var ready = require('dom101/ready')
86
var Scrolltrack = require('./scrolltrack')
@@ -14,7 +12,7 @@ var Scrollclass = require('./scrollclass')
1412

1513
void (function () {
1614
ready(function () {
17-
new Pjax({
15+
new Pjax({ // eslint-disable-line
1816
selectors: ['.body', '.toc-menu', 'title'],
1917
analytics: sendPageview
2018
})

data/scrolltrack/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ Scrolltrack.prototype.scrollTop = function () {
151151
return y + offset
152152
}
153153

154-
155154
/**
156155
* Updates the selected link.
157156
*/

package.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
22
"name": "docpress-base",
33
"description": "Base theme for Docpress.",
4+
"homepage": "http://docpress/docpress-base#readme",
45
"version": "0.6.10",
5-
"author": "Rico Sta. Cruz <rico@ricostacruz.com>",
6+
"main": "index.js",
7+
"author": {
8+
"email": "rico@ricostacruz.com",
9+
"name": "Rico Sta. Cruz"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/docpress/docpress-base.git"
14+
},
615
"bugs": {
716
"url": "https://github.com/docpress/docpress-base/issues"
817
},
@@ -18,19 +27,19 @@
1827
"onmount": "1.3.0",
1928
"pjax": "0.2.4",
2029
"postcss": "5.2.4",
21-
"pug": "^2.0.0-beta6",
30+
"pug": "2.0.0-beta6",
2231
"stylus": "0.54.5",
2332
"uglifyify": "3.0.3",
2433
"ware": "1.3.0"
2534
},
2635
"devDependencies": {
27-
"docpress-core": "git://github.com/docpress/docpress-core.git#master",
36+
"coveralls": "2.11.12",
37+
"docpress-core": "docpress/docpress-core",
2838
"expect": "1.20.2",
29-
"istanbul": "0.4.5",
3039
"metalsmith": "2.2.0",
3140
"mocha": "3.1.0",
3241
"mocha-clean": "1.0.0",
33-
"mocha-standard": "1.0.0",
42+
"nyc": "8.1.0",
3443
"standard": "8.3.0",
3544
"superstatic": "4.0.3"
3645
},
@@ -47,9 +56,22 @@
4756
"scripts": {
4857
"coverage": "istanbul cover _mocha -x '**/fixture/**' -- -R spec",
4958
"build": "mkdir -p cache && ./bin/build --css > cache/style.css && ./bin/build --js > cache/script.js",
59+
"coveralls": "nyc report --reporter=text-lcov | coveralls",
60+
"lint": "standard",
5061
"prepublish": "npm run build",
51-
"test": "mocha",
62+
"pretest": "npm run lint",
5263
"serve": "ss fixture/onmount/_docpress",
64+
"test": "nyc mocha",
5365
"watch": "mocha -R min --watch"
66+
},
67+
"license": "MIT",
68+
"standard": {
69+
"global": [
70+
"before",
71+
"beforeEach",
72+
"describe",
73+
"expect",
74+
"it"
75+
]
5476
}
5577
}

test/standard_test.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)