mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added shortid for server and unique id's for remote
This commit is contained in:
65
server/node_modules/shortid/Gruntfile.js
generated
vendored
Normal file
65
server/node_modules/shortid/Gruntfile.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (grunt) {
|
||||
|
||||
require('time-grunt')(grunt);
|
||||
|
||||
grunt.initConfig({
|
||||
browserify: {
|
||||
browser: {
|
||||
src: [ require('./package.json').main ],
|
||||
dest: './browser/shortid.js'
|
||||
},
|
||||
tests: {
|
||||
src: [
|
||||
'./test/**/*.test.js'
|
||||
],
|
||||
dest: './browser/shortid.test.js'
|
||||
}
|
||||
},
|
||||
|
||||
open: {
|
||||
test: {
|
||||
path: './test/index.html',
|
||||
app: 'Google Chrome'
|
||||
}
|
||||
},
|
||||
|
||||
mochaTest: {
|
||||
notify: {
|
||||
src: 'test/**/*.test.js',
|
||||
options: {
|
||||
reporter: 'spec',
|
||||
timeout: 50000
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
all: [
|
||||
'Gruntfile.js',
|
||||
'lib/**/*.js',
|
||||
'tests/*'
|
||||
]
|
||||
}
|
||||
|
||||
});
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
grunt.registerTask('build', [
|
||||
'browserify'
|
||||
]);
|
||||
|
||||
grunt.registerTask('test', [
|
||||
'jshint',
|
||||
'mochaTest'
|
||||
]);
|
||||
|
||||
grunt.registerTask('default', [
|
||||
'build',
|
||||
'test'
|
||||
]);
|
||||
};
|
||||
Reference in New Issue
Block a user