diff --git a/Gruntfile.coffee b/Gruntfile.coffee deleted file mode 100644 index 3e66422..0000000 --- a/Gruntfile.coffee +++ /dev/null @@ -1,68 +0,0 @@ -module.exports = (grunt) -> - grunt.loadNpmTasks 'grunt-concurrent' - grunt.loadNpmTasks 'grunt-nodemon' - grunt.loadNpmTasks 'grunt-contrib-watch' - grunt.loadNpmTasks 'grunt-contrib-uglify' - grunt.loadNpmTasks 'grunt-contrib-jshint' - grunt.initConfig( - pkg: grunt.file.readJSON 'package.json' - uglify: - app_task: - options: - beautify: false - mangle: true #不混淆变量名 - compress:false #打开或关闭使用默认选项源压缩。 - files: - 'build/websocket.min.js': [ - 'lib/websocket.js' - ] - 'test/websocket.min.js': [ - 'lib/websocket.js' - ] - # app_task_test: - # options: - # beautify: true - # mangle: false #不混淆变量名 - # # compress:false #打开或关闭使用默认选项源压缩。 - # compress: false - # files: - # 'test/websocket.min.js': [ - # 'lib/websocket.js' - # ] - jshint: - options: - eqeqeq: true - trailing: true - files: ['lib/websocket.js'] - watch: - another: - files: ['lib/*.js'] - tasks: ['jshint','uglify'] - options: - livereload: true - nodemon: - dev: - script: 'sever.js' - options: - args: ['dev'] - nodeArgs: ['--debug'] - callback: (nodemon) -> - nodemon.on 'log', (event) -> - console.log(event.colour) - env: - PORT: '8181' - cwd: __dirname - ignore: ['node_modules/**','bower_components/**'] - debug:true - ext: 'js,coffee,html' - watch: ['*','test/*'] - delay: 1 - legacyWatch: true - concurrent: - target: - tasks: ['nodemon','watch'] - options: - logConcurrentOutput: true - ) - grunt.option('force',true) - grunt.registerTask 'default', ['concurrent:target'] diff --git a/Gruntfile.js b/Gruntfile.js index 14babdb..49f5519 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -37,10 +37,10 @@ module.exports = function (grunt) { }, nodemon: { dev: { - script: 'sever.js', + script: 'server.js', options: { args: ['dev'], - nodeArgs: ['--inspect'], + // nodeArgs: ['--inspect'], callback: function (nodemon) { return nodemon.on('log', function (event) { return console.log(event.colour); diff --git a/package.json b/package.json index 5e21f39..44bed76 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "websocket APIs simple package", "main": "lib/websocket.js", "scripts": { - "start": "grunt --inspect" + "start": "grunt" }, "repository": { "type": "git",