File tree Expand file tree Collapse file tree 6 files changed +2793
-32
lines changed Expand file tree Collapse file tree 6 files changed +2793
-32
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,26 @@ jobs:
1616 distribution : adopt
1717 java-version : 11
1818 - uses : actions/setup-node@v2
19- - name : Install OpenAPI Generator CLI
20- run : npm install @openapitools/openapi-generator-cli -g
21- - name : Treat OpenAPI Version as 3.0.x (Because of no support)
19+ - name : Install Dependencies
20+ run : npm install
21+ - name : Override OpenAPI Version to 3.0.x (generator doe snot support 3.1 )
2222 run : |
2323 for file in `find unofficial-documentation/src -type f`; do
2424 sed -i 's/openapi: "3.1.0"/openapi: "3.0.0"/' $file
2525 done
2626 - name : Generate
27- run : npx @openapitools/openapi-generator-cli batch typescript-fetch.yaml
27+ run : npm run generate
28+ - name : Update Version
29+ run : |
30+ sed -ri "s/\"version\": \"[^\"]+\"/\"version\": \"`sed -rn 's/^.* version: "([^"]+)".*$/\1/p' unofficial-documentation/src/openapi.yaml`\"/" package.json
31+ - name : Tricky TSC Safety
32+ run : |
33+ sed -i 's/fetchApi(): FetchAPI/fetchApi(): FetchAPI | undefined/' src/runtime.ts
2834 - name : Create Pull Request
2935 uses : peter-evans/create-pull-request@v3
3036 with :
31- commit-message : Migrate OpenAPI spec from solvedac/unofficial-documentation
32- title : Migrate OpenAPI Specification from solvedac/unofficial-documentation
37+ commit-message : Follow-up solvedac/unofficial-documentation
38+ title : Follow-up solvedac/unofficial-documentation
3339 body : |
3440 This Pull Request will update the typescript sources.
3541 It is automatically created by GitHub Actions.
Original file line number Diff line number Diff line change 1+
2+ # Created by https://www.toptal.com/developers/gitignore/api/node
3+ # Edit at https://www.toptal.com/developers/gitignore?templates=node
4+
5+ # ## Node ###
6+ # Logs
7+ logs
8+ * .log
9+ npm-debug.log *
10+ yarn-debug.log *
11+ yarn-error.log *
12+ lerna-debug.log *
13+ .pnpm-debug.log *
14+
15+ # Diagnostic reports (https://nodejs.org/api/report.html)
16+ report. [0-9 ]* . [0-9 ]* . [0-9 ]* . [0-9 ]* .json
17+
18+ # Runtime data
19+ pids
20+ * .pid
21+ * .seed
22+ * .pid.lock
23+
24+ # Directory for instrumented libs generated by jscoverage/JSCover
25+ lib-cov
26+
27+ # Coverage directory used by tools like istanbul
28+ coverage
29+ * .lcov
30+
31+ # nyc test coverage
32+ .nyc_output
33+
34+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35+ .grunt
36+
37+ # Bower dependency directory (https://bower.io/)
38+ bower_components
39+
40+ # node-waf configuration
41+ .lock-wscript
42+
43+ # Compiled binary addons (https://nodejs.org/api/addons.html)
44+ build /Release
45+
46+ # Dependency directories
47+ node_modules /
48+ jspm_packages /
49+
50+ # Snowpack dependency directory (https://snowpack.dev/)
51+ web_modules /
52+
53+ # TypeScript cache
54+ * .tsbuildinfo
55+
56+ # Optional npm cache directory
57+ .npm
58+
59+ # Optional eslint cache
60+ .eslintcache
61+
62+ # Microbundle cache
63+ .rpt2_cache /
64+ .rts2_cache_cjs /
65+ .rts2_cache_es /
66+ .rts2_cache_umd /
67+
68+ # Optional REPL history
69+ .node_repl_history
70+
71+ # Output of 'npm pack'
72+ * .tgz
73+
74+ # Yarn Integrity file
75+ .yarn-integrity
76+
77+ # dotenv environment variables file
78+ .env
79+ .env.test
80+ .env.production
81+
82+ # parcel-bundler cache (https://parceljs.org/)
83+ .cache
84+ .parcel-cache
85+
86+ # Next.js build output
87+ .next
88+ out
89+
90+ # Nuxt.js build / generate output
91+ .nuxt
92+ dist
93+
94+ # Gatsby files
95+ .cache /
96+ # Comment in the public line in if your project uses Gatsby and not Next.js
97+ # https://nextjs.org/blog/next-9-1#public-directory-support
98+ # public
99+
100+ # vuepress build output
101+ .vuepress /dist
102+
103+ # Serverless directories
104+ .serverless /
105+
106+ # FuseBox cache
107+ .fusebox /
108+
109+ # DynamoDB Local files
110+ .dynamodb /
111+
112+ # TernJS port file
113+ .tern-port
114+
115+ # Stores VSCode versions used for testing VSCode extensions
116+ .vscode-test
117+
118+ # yarn v2
119+ .yarn /cache
120+ .yarn /unplugged
121+ .yarn /build-state.yml
122+ .yarn /install-state.gz
123+ .pnp. *
124+
125+ # End of https://www.toptal.com/developers/gitignore/api/node
1126unofficial-documentation
Original file line number Diff line number Diff line change 1- ## @
1+ # api.ts
22
3- This generator creates TypeScript/JavaScript client that utilizes fetch-api.
3+ 자동 생성되는 TypeScript solved.ac API 클라이언트
44
5- ### Building
5+ ## 설치
66
7- To build and compile the typescript sources to javascript use:
7+ ``` sh
8+ npm install @solvedac-community/api # TODO
89```
9- npm install
10- npm run build
11- ```
12-
13- ### Publishing
14-
15- First build the package then run ``` npm publish ```
16-
17- ### Consuming
18-
19- navigate to the folder of your consuming project and run one of the following commands.
20-
21- _ published:_
22-
23- ```
24- npm install @ --save
25- ```
26-
27- _ unPublished (not recommended):_
28-
29- ```
30- npm install PATH_TO_GENERATED_PACKAGE --save
You can’t perform that action at this time.
0 commit comments