Skip to content

Commit

Permalink
feat: use standard (https://standardjs.com) for coding style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexus committed Sep 13, 2017
1 parent 60d937b commit c48736b
Show file tree
Hide file tree
Showing 7 changed files with 1,850 additions and 1,763 deletions.
16 changes: 0 additions & 16 deletions .jshintrc

This file was deleted.

19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ language: node_js
cache:
directories:
- node_modules
notifications:
email:
recipients:
- github@josef-froehle.de
on_success: change
on_failure: change
node_js:
- "4"
- "6"
- "8"
- '8'
- '6'
- '4'
before_install:
- npm install -g grunt-cli
before_script:
Expand All @@ -17,10 +23,3 @@ after_success:
branches:
except:
- /^v\d+\.\d+\.\d+$/
notifications:
email:
recipients:
- github@josef-froehle.de
on_success: change
on_failure: change

45 changes: 24 additions & 21 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
'use strict';
'use strict'

module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: ['lib/*.js', 'test/*.js', 'Gruntfile.js'],
options: {
jshintrc: '.jshintrc'
}
},
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
standard: {
options: {
fix: true
},
app: {
src: [
'{,lib/,test/}*.js'
]
}
},
nodeunit: {
all: 'test/pem.js'
}
})

nodeunit: {
all: 'test/pem.js'
}
});
// Load the plugin(s)
grunt.loadNpmTasks('grunt-standard')
grunt.loadNpmTasks('grunt-contrib-nodeunit')

// Load the plugin(s)
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');

// Tasks
grunt.registerTask('default', ['jshint', 'nodeunit']);
};
// Tasks
grunt.registerTask('default', ['standard', 'nodeunit'])
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Create private keys and certificates with node.js

[![Build Status](https://secure.travis-ci.org/Dexus/pem.png)](http://travis-ci.org/Dexus/pem)
[![npm version](https://badge.fury.io/js/pem.svg)](http://badge.fury.io/js/pem)
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

## Installation

Expand Down

0 comments on commit c48736b

Please sign in to comment.