mirror of
https://github.com/valitydev/deanonimus-proto.git
synced 2024-11-06 08:25:21 +00:00
TD-237: Add frontend codegen (#4)
This commit is contained in:
parent
5354c73b94
commit
c9a6cae261
21
.github/workflows/frontend-pr.yml
vendored
Normal file
21
.github/workflows/frontend-pr.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: 'Frontend: PR'
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: ['*']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
configured:
|
||||||
|
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
|
||||||
|
check:
|
||||||
|
name: Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: configured
|
||||||
|
if: needs.configured.outputs.exists == 'true'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: valitydev/action-frontend/setup@v0.1
|
||||||
|
- uses: valitydev/action-setup-thrift@v1.0.0
|
||||||
|
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
|
||||||
|
- name: Codegen
|
||||||
|
run: npm run codegen
|
24
.github/workflows/frontend-publish.yml
vendored
Normal file
24
.github/workflows/frontend-publish.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: 'Frontend: Publish'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['master', 'main']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
configured:
|
||||||
|
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
|
||||||
|
publish:
|
||||||
|
name: Publish
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: configured
|
||||||
|
if: needs.configured.outputs.exists == 'true'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: valitydev/action-frontend/setup@v0.1
|
||||||
|
- uses: valitydev/action-setup-thrift@v1.0.0
|
||||||
|
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
|
||||||
|
- name: Build
|
||||||
|
run: npm run codegen
|
||||||
|
- uses: valitydev/action-frontend/publish@v0.1
|
||||||
|
with:
|
||||||
|
npm-token: ${{ secrets.NPM_TOKEN }}
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -76,3 +76,8 @@ fabric.properties
|
|||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
env.list
|
env.list
|
||||||
|
|
||||||
|
# frontend
|
||||||
|
node_modules
|
||||||
|
lib
|
||||||
|
|
||||||
|
1678
package-lock.json
generated
Normal file
1678
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
package.json
Normal file
26
package.json
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"name": "@vality/deanonimus-proto",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"codegen": "thrift-codegen"
|
||||||
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
|
"registry": "https://registry.npmjs.org/"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/valitydev/deanonimus-proto.git"
|
||||||
|
},
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"homepage": "https://github.com/valitydev/deanonimus-proto#readme",
|
||||||
|
"files": [
|
||||||
|
"lib/**/*.{js,d.ts,json}",
|
||||||
|
"**/*.thrift"
|
||||||
|
],
|
||||||
|
"main": "./lib/deanonimus.js",
|
||||||
|
"types": "./lib/deanonimus.d.ts",
|
||||||
|
"devDependencies": {
|
||||||
|
"@vality/thrift-codegen": "0.1.1-c81b4b7.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user