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

update nodemon => fix security issues from dependencies #75

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- "0.12"
- "0.10"
- "8.8.1"
- "10.15.3"
before_script:
- npm install -g grunt-cli
notifications:
Expand Down
17 changes: 14 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function (grunt) {
PORT: '8181'
},
args: ['production'],
nodeArgs: ['--debug'],
nodeArgs: ['--inspect'],
callback: function(nodemon) {
nodemon.on('log', function(event) {
console.log(event.colour);
Expand All @@ -33,7 +33,18 @@ module.exports = function (grunt) {
script: 'test/fixtures/server.js',
}
},
mdlint: ['README.md'],
markdownlint: {
src: [ 'README.md'],
options: {
config: { //configure the linting rules
'default': true,
'line-length': false,
'blanks-around-headers': false,
'no-duplicate-header': false,
'no-inline-html': false
}
},
},
simplemocha: {
options: {
globals: ['should'],
Expand Down Expand Up @@ -79,7 +90,7 @@ module.exports = function (grunt) {
});

grunt.registerTask('default', ['nodemon']);
grunt.registerTask('test', ['jshint', 'mdlint', 'simplemocha']);
grunt.registerTask('test', ['jshint', 'markdownlint', 'simplemocha']);

grunt.loadTasks('tasks');

Expand Down
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Note: This is not actively maintained, please make an issue if you are interested in helping maintain this project.

# grunt-nodemon

## Note: This is not actively maintained, please make an issue if you are interested in helping maintain this project

> Run [nodemon](https://github.com/remy/nodemon) as a grunt task for easy configuration and integration with the rest of your workflow

[![NPM version](https://badge.fury.io/js/grunt-nodemon.png)](http://badge.fury.io/js/grunt-nodemon) [![Dependency Status](https://david-dm.org/ChrisWren/grunt-nodemon.png)](https://david-dm.org/ChrisWren/grunt-nodemon) [![Travis Status](https://travis-ci.org/ChrisWren/grunt-nodemon.png)](https://travis-ci.org/ChrisWren/grunt-nodemon)

## Getting Started
If you haven't used grunt before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:
```shell
npm install grunt-nodemon --save-dev
```

> npm install grunt-nodemon --save-dev

Then add this line to your project's `Gruntfile.js` gruntfile:

Expand Down Expand Up @@ -85,13 +84,13 @@ nodemon: {
env: {
PORT: '5455'
},
// omit this property if you aren't serving HTML files and
// omit this property if you aren't serving HTML files and
// don't want to open a browser tab on start
callback: function (nodemon) {
nodemon.on('log', function (event) {
console.log(event.colour);
});

// opens browser on initial server start
nodemon.on('config:update', function () {
// Delay before server listens on port
Expand All @@ -117,7 +116,7 @@ watch: {
options: {
livereload: true
}
}
}
}
```

Expand Down Expand Up @@ -197,7 +196,15 @@ Type: `String`

You can use nodemon to execute a command outside of node. Use this option to specify a command as a string with the argument being the script parameter above. You can read more on exec [here](https://github.com/remy/nodemon#running-non-node-scripts).

# Changelog
## Changelog

**0.4.3** - Updated to nodemon `1.18.10`, fix old tests. Switched to package grunt-markdownlint.

**0.4.2** - Updated peer dependencies.

**0.4.1** - Updated dependencies.

**0.4.0** - Updated dependencies.

**0.3.0** - Updated to nodemon `1.2.0`.

Expand Down
Loading