Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issues #79, #80, and #82. #81

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions grunt.js → Gruntfile.js
Expand Up @@ -3,10 +3,13 @@ module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
lint: {
all: ['src/**/*.js', 'test/**/*.js']
},
jshint: {
src: {
src: ['src/**/*.js']
},
test: {
src: ['test/**/*.js']
},
options: {
browser: true
}
Expand All @@ -24,7 +27,8 @@ module.exports = function(grunt) {
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-simple-mocha');

grunt.registerTask('default', ['simplemocha', 'lint']);
grunt.registerTask('test', ['simplemocha', 'jshint']);
};
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -215,6 +215,10 @@ A suite of tests is available which require node.js. Once node is installed, ru

npm install --dev

Grunt is used to task run mocha tests and jshint validation. Install the grunt-cli tool globally:

npm install grunt-cli -g

Once installed the tests can be run from the project root using:

npm test
Expand Down
81 changes: 42 additions & 39 deletions package.json
@@ -1,41 +1,44 @@
{
"name": "showdown",
"version": "0.3.1",
"author": "John Fraser",
"scripts": {
"test": "mocha ./test/run.js"
},
"contributors": [
"John Gruber",
"John Fraser",
"Corey Innis",
"Remy Sharp",
"Konstantin Käfer",
"Roger Braun",
"Dominic Tarr",
"Cat Chen",
"Titus Stone",
"Rob Sutherland",
"Pavel Lang",
"Ben Combee",
"Adam Backstrom",
"Pascal Deschênes"
],
"repository": {
"type": "git",
"url": "https://github.com/coreyti/showdown.git",
"web": "https://github.com/coreyti/showdown"
},
"devDependencies": {
"mocha": "1.3.0",
"grunt": "0.3.17",
"grunt-simple-mocha": "*",
"grunt-mocha": "*",
"should": "1.2.0"
},
"licenses": [{
"type": "BSD",
"url": "https://github.com/coreyti/showdown/raw/master/license.txt"
}],
"main": "./src/showdown"
"name": "showdown",
"version": "0.3.1",
"author": "John Fraser",
"scripts": {
"test": "grunt test"
},
"contributors": [
"John Gruber",
"John Fraser",
"Corey Innis",
"Remy Sharp",
"Konstantin Käfer",
"Roger Braun",
"Dominic Tarr",
"Cat Chen",
"Titus Stone",
"Rob Sutherland",
"Pavel Lang",
"Ben Combee",
"Adam Backstrom",
"Pascal Deschênes"
],
"repository": {
"type": "git",
"url": "https://github.com/coreyti/showdown.git",
"web": "https://github.com/coreyti/showdown"
},
"devDependencies": {
"mocha": "1.3.0",
"grunt": "0.4.2",
"grunt-simple-mocha": "*",
"grunt-mocha": "~0.4.7",
"should": "1.2.0",
"grunt-contrib-jshint": "~0.8.0"
},
"licenses": [
{
"type": "BSD",
"url": "https://github.com/coreyti/showdown/raw/master/license.txt"
}
],
"main": "./src/showdown"
}