#Grunt Task for Swagger JS Codegen
##Examples ###Nodejs generation See example.
grunt.initConfig({
'swagger-js-codegen': {
queries: {
options: {
apis: [
{
swagger: 'swagger/_queries',
moduleName: 'Model' // This is the model and file name
}
],
dest: 'lib'
},
dist: {
}
}
}
});
###Angularjs generation See example.
grunt.initConfig({
'swagger-js-codegen': {
queries: {
options: {
apis: [
{
swagger: 'swagger/_queries',
moduleName: 'Model', // This is the model and file name
angularjs: true
}
],
dest: 'lib'
},
dist: {
}
}
}
});