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

Commit b3d0852

Browse files
committed
First pass to the npm scripts switch.
1 parent 4de8cb4 commit b3d0852

File tree

11 files changed

+1202
-2260
lines changed

11 files changed

+1202
-2260
lines changed

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.git/
2+
/bootstrap/
3+
/coverage/
4+
/dist/
5+
/node_modules/
6+
/src-cov/
7+
/test/lib/
8+
/vendor/

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ pids
77
*.pid
88
*.seed
99

10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov/
12-
10+
.nyc_output/
1311
coverage/
14-
*-cov
12+
src-cov
1513

1614
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1715
.grunt

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ node_js:
99
before_install:
1010
- if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
1111
install:
12-
- npm install -g grunt-cli
1312
- npm install
1413
before_script:
1514
- git clone --depth 1 https://github.com/twbs/bootstrap.git --branch v3-dev
1615
- bundle install --deployment --path "$(pwd)/vendor/bundle" --gemfile bootstrap/Gemfile --jobs=3 --retry=3
1716
- pushd bootstrap && bundle exec jekyll build && popd
1817
script:
19-
- npm test
18+
- npm run travis
2019
- node ./src/cli-main.js --disable W003,W005 "bootstrap/_gh_pages/**/index.html"
2120
- node ./src/cli-main.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html
2221
- node ./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true
2322
- diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt
24-
after_script:
23+
after_success:
2524
- npm run coveralls
2625
matrix:
2726
fast_finish: true

Gruntfile.js

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

build/stamp.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* This file is taken from <https://github.com/twbs/bootstrap/blob/v4-dev/build/stamp.js>
2+
and adapted for Bootlint.
3+
*/
4+
5+
/* eslint-env node */
6+
7+
'use strict';
8+
9+
var fs = require('fs');
10+
11+
fs.readFile('package.json', function (err, data) {
12+
if (err) {
13+
throw err;
14+
}
15+
16+
var pkg = JSON.parse(data);
17+
var year = new Date().getFullYear();
18+
19+
var stampTop = '/*!\n * Bootlint v' + pkg.version + ' (' + pkg.homepage + ')\n' +
20+
' * ' + pkg.description + '\n' +
21+
' * Copyright (c) 2014-' + year + ' The Bootlint Authors\n' +
22+
' * Licensed under the MIT License (https://github.com/twbs/bootlint/blob/master/LICENSE).\n' +
23+
' */\n';
24+
25+
process.stdout.write(stampTop);
26+
27+
process.stdin.pipe(process.stdout);
28+
});

0 commit comments

Comments
 (0)