Delete the generated API files before regenerating

This commit is contained in:
Eric Schultz 2018-09-07 13:26:01 -05:00
parent e9168102e2
commit c552851efc

View file

@ -14,7 +14,7 @@
"export-i18n": "bundle exec rake settings:combine_translations", "export-i18n": "bundle exec rake settings:combine_translations",
"generate-openapi": "rake oapi:gen", "generate-openapi": "rake oapi:gen",
"get-codegen-cli": "script/download_codegen_cli.sh", "get-codegen-cli": "script/download_codegen_cli.sh",
"generate-api-js": "npm run get-codegen-cli && npm run generate-openapi && java -jar .bin/swagger-codegen-cli.jar generate -l 'typescript-jquery' -i tmp/openapi.json -o javascripts/api -t lib/swagger-typescript-jquery" "generate-api-js": "rm -rf javascripts/api && npm run get-codegen-cli && npm run generate-openapi && java -jar .bin/swagger-codegen-cli.jar generate -l 'typescript-jquery' -i tmp/openapi.json -o javascripts/api -t lib/swagger-typescript-jquery"
}, },
"devDependencies": { "devDependencies": {
"@types/enzyme": "^3.1.9", "@types/enzyme": "^3.1.9",