mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add grunt build and travis-ci
This commit is contained in:
		
							
								
								
									
										5
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
language: node_js
 | 
			
		||||
node_js:
 | 
			
		||||
  - "0.10"
 | 
			
		||||
  - "0.8"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										24
									
								
								Gruntfile.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								Gruntfile.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
module.exports = function(grunt) {
 | 
			
		||||
    
 | 
			
		||||
    // Project configuration.
 | 
			
		||||
    grunt.initConfig({
 | 
			
		||||
            pkg: grunt.file.readJSON('package.json'),
 | 
			
		||||
            simplemocha: {
 | 
			
		||||
                options: {
 | 
			
		||||
                    globals: ['expect'],
 | 
			
		||||
                    timeout: 3000,
 | 
			
		||||
                    ignoreLeaks: false,
 | 
			
		||||
                    ui: 'bdd',
 | 
			
		||||
                    reporter: 'tap'
 | 
			
		||||
                },
 | 
			
		||||
                all: { src: ['test/*.js'] }
 | 
			
		||||
            }
 | 
			
		||||
    });
 | 
			
		||||
    
 | 
			
		||||
    // Load the plugin that provides the "uglify" task.
 | 
			
		||||
    grunt.loadNpmTasks('grunt-simple-mocha');
 | 
			
		||||
    
 | 
			
		||||
    // Default task(s).
 | 
			
		||||
    grunt.registerTask('default', ['simplemocha']);
 | 
			
		||||
    
 | 
			
		||||
};
 | 
			
		||||
@@ -41,6 +41,8 @@
 | 
			
		||||
        "mkdirp":"~0.3.5"
 | 
			
		||||
    },
 | 
			
		||||
    "devDependencies": {
 | 
			
		||||
        "grunt": "~0.4.4",
 | 
			
		||||
        "grunt-simple-mocha": "^0.4.0",
 | 
			
		||||
        "mocha": "~1.12.0",
 | 
			
		||||
        "should": "~1.2.2"
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user