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

Commit

Permalink
First pass to the npm scripts switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Aug 10, 2017
1 parent 4de8cb4 commit cf4e109
Show file tree
Hide file tree
Showing 8 changed files with 1,199 additions and 2,257 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.git/
/bootstrap/
/coverage/
/dist/
/node_modules/
/src-cov/
/test/lib/
/vendor/
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov/

.nyc_output/
coverage/
*-cov
src-cov

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ node_js:
before_install:
- if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
install:
- npm install -g grunt-cli
- npm install
before_script:
- git clone --depth 1 https://github.com/twbs/bootstrap.git --branch v3-dev
- bundle install --deployment --path "$(pwd)/vendor/bundle" --gemfile bootstrap/Gemfile --jobs=3 --retry=3
- pushd bootstrap && bundle exec jekyll build && popd
script:
- npm test
- npm run travis
- node ./src/cli-main.js --disable W003,W005 "bootstrap/_gh_pages/**/index.html"
- node ./src/cli-main.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html
- node ./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true
- diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt
after_script:
- npm run coveralls
- npm run coverage
matrix:
fast_finish: true
cache:
Expand Down
95 changes: 0 additions & 95 deletions Gruntfile.js

This file was deleted.

28 changes: 28 additions & 0 deletions build/stamp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* This file is taken from <https://github.com/twbs/bootstrap/blob/v4-dev/build/stamp.js>
and adapted for Bootlint.
*/

/* eslint-env node */

'use strict';

var fs = require('fs');

fs.readFile('package.json', function (err, data) {
if (err) {
throw err;
}

var pkg = JSON.parse(data);
var year = new Date().getFullYear();

var stampTop = '/*!\n * Bootlint v' + pkg.version + ' (' + pkg.homepage + ')\n' +
' * ' + pkg.description + '\n' +
' * Copyright (c) 2014-' + year + ' The Bootlint Authors\n' +
' * Licensed under the MIT License (https://github.com/twbs/bootlint/blob/master/LICENSE).\n' +
' */\n';

process.stdout.write(stampTop);

process.stdin.pipe(process.stdout);
});
Loading

0 comments on commit cf4e109

Please sign in to comment.