Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #66 from Dignifiedquire/standard
Browse files Browse the repository at this point in the history
refactor: Move to standard JS style.
  • Loading branch information
dignifiedquire committed Jun 9, 2015
2 parents b6698be + d5a3baf commit 3619297
Show file tree
Hide file tree
Showing 14 changed files with 446 additions and 443 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "standard"
}
1 change: 0 additions & 1 deletion .jscs.json

This file was deleted.

1 change: 0 additions & 1 deletion .jscsrc

This file was deleted.

1 change: 0 additions & 1 deletion .jshintrc

This file was deleted.

76 changes: 0 additions & 76 deletions Gruntfile.coffee

This file was deleted.

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# karma-mocha [![Build Status](https://travis-ci.org/karma-runner/karma-mocha.svg?branch=master)](https://travis-ci.org/karma-runner/karma-mocha)
# karma-mocha

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/karma-runner/karma-mocha)
[![npm version](https://img.shields.io/npm/v/karma-mocha.svg?style=flat-square)](https://www.npmjs.com/package/karma-mocha) [![npm downloads](https://img.shields.io/npm/dm/karma-mocha.svg?style=flat-square)](https://www.npmjs.com/package/karma-mocha)

[![Build Status](https://img.shields.io/travis/karma-runner/karma-mocha/master.svg?style=flat-square)](https://travis-ci.org/karma-runner/karma-mocha) [![Dependency Status](https://img.shields.io/david/karma-runner/karma-mocha.svg?style=flat-square)](https://david-dm.org/karma-runner/karma-mocha) [![devDependency Status](https://img.shields.io/david/dev/karma-runner/karma-mocha.svg?style=flat-square)](https://david-dm.org/karma-runner/karma-mocha#info=devDependencies)

> Adapter for the [Mocha](http://mochajs.org/) testing framework.
Expand Down
59 changes: 59 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
module.exports = function (grunt) {
grunt.initConfig({
pkgFile: 'package.json',
files: {
adapter: [
'src/adapter.js'
]
},
build: {
adapter: '<%= files.adapter %>'
},
eslint: {
target: [
'<%= files.adapter %>',
'gruntfile.js',
'tasks/*.js',
'test/**/*.js'
]
},
karma: {
adapter: {
configFile: 'karma.conf.js',
autoWatch: false,
singleRun: true,
reporters: ['dots']
}
},
'npm-publish': {
options: {
requires: ['build']
}
},
'npm-contributors': {
options: {
commitMessage: 'chore: update contributors'
}
},
bump: {
options: {
commitMessage: 'chore: release v%VERSION%',
pushTo: 'upstream'
}
}
})

require('load-grunt-tasks')(grunt)
grunt.loadTasks('tasks')
grunt.registerTask('default', ['build', 'eslint', 'test'])
grunt.registerTask('test', ['karma'])

grunt.registerTask('release', 'Build, bump and publish to NPM.', function (type) {
grunt.task.run([
'build',
'npm-contributors',
'bump:' + (type || 'patch'),
'npm-publish'
])
})
}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"main": "lib/index.js",
"sharedKarmaFiles": {
"editorconfig": ".editorconfig",
"gitattributes": ".gitattributes",
"jshint.json": ".jshintrc",
"jscs.json": ".jscs.json"
"gitattributes": ".gitattributes"
},
"scripts": {
"test": "grunt test"
Expand All @@ -24,11 +22,14 @@
"author": "Vojta Jina <vojta.jina@gmail.com>",
"dependencies": {},
"devDependencies": {
"eslint": "^0.22.1",
"eslint-config-standard": "^2.0.1",
"eslint-plugin-react": "^2.5.0",
"grunt": "~0.4",
"grunt-auto-release": "~0.0.2",
"grunt-bump": "~0.0.7",
"grunt-contrib-jshint": "~0.10",
"grunt-jscs-checker": "~0.4.4",
"grunt-eslint": "^14.0.0",
"grunt-karma": "~0.8.0",
"grunt-npm": "~0.0.2",
"karma": "~0.12.0",
Expand All @@ -37,6 +38,7 @@
"karma-firefox-launcher": "~0.1.0",
"karma-mocha": "~0.1.3",
"karma-sinon": "~1.0.3",
"load-grunt-tasks": "^3.2.0",
"shared-karma-files": "git://github.com/karma-runner/shared-karma-files.git#82ae8d02"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 3619297

Please sign in to comment.