File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- .PHONY : all build deps generate help test validate
1+ .PHONY : all build deps generate help test validate js
22CHECK_FILES? =$$(go list ./... | grep -v /vendor/ )
33
44
@@ -17,13 +17,12 @@ deps: ## Download dependencies.
1717
1818generate : validate # # Generate the API Go client and the JSON document for the UI.
1919 swagger generate client -A netlify -f swagger.yml -t go -c plumbing
20- swagger generate spec -i swagger.yml -o ui/swagger.json
2120
2221test : # # Test the go code.
2322 cd ./go && go test -v $(CHECK_FILES )
2423
2524validate : # # Check that the swagger spec is valid.
2625 swagger validate swagger.yml
2726
28- node : # # Generate the node module.
29- swagger-codegen generate -i ./swagger.yml -l javascript -o ./node/
27+ js : # # Generate the node module.
28+ npm i
Original file line number Diff line number Diff line change 2424 },
2525 "scripts" : {
2626 "clean" : " rimraf js ui && mkdirp js ui" ,
27- "prepublishOnly " : " run-s build" ,
27+ "prepare " : " run-s build" ,
2828 "build" : " run-s clean js site" ,
2929 "js" : " node ./src/generate-js-module.js" ,
3030 "site" : " run-p site:*" ,
You can’t perform that action at this time.
0 commit comments