Skip to content

Commit

Permalink
gulp stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed Nov 18, 2019
1 parent b2c7306 commit 372b7c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 115 deletions.
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ gulp.task('JS-SDK-UPDATE', function(callback){
gulp.task('js-node-angular-react-typescript', function(cb){
const fs = require('fs');
const CodeGen = require('swagger-js-codegen').CodeGen;
//const file = 'swagger/petstore.json';
const file = 'swagger/swagger.json';
const swagger = JSON.parse(fs.readFileSync(file, 'UTF-8'));
let jsRepo = './sdk-repos/quantimodo-sdk-javascript/src/';
Expand All @@ -888,7 +889,9 @@ gulp.task('js-node-angular-react-typescript', function(cb){
const tsSourceCode = CodeGen.getTypescriptCode({
className: 'QM',
swagger: swagger,
imports: ['../../typings/tsd.d.ts']
imports: [
//'../../typings/tsd.d.ts'
]
});
fs.writeFileSync(jsRepo+"qm.typescript.js", tsSourceCode);
const angularJsSourceCode = CodeGen.getAngularCode({className: 'QM', swagger: swagger});
Expand Down
114 changes: 0 additions & 114 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 372b7c1

Please sign in to comment.