Skip to content

Commit 7141826

Browse files
committed
TinyGo support
0 parents  commit 7141826

34 files changed

+6731
-0
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release-*
8+
tags:
9+
- v*
10+
pull_request:
11+
branches:
12+
- main
13+
- release-*
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v1
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: 16
23+
registry-url: https://registry.npmjs.org/
24+
- run: npm install
25+
- run: npm run test
26+
#- run: npm run lint
27+
- run: npm run build
28+
29+
- uses: actions/setup-go@v3
30+
with:
31+
go-version: '1.19'
32+
33+
- name: Install Apex CLI
34+
run: wget -q https://apexlang.io/install.sh -O - | /bin/bash
35+
36+
- name: Generator diff test
37+
run: ./diffcheck.sh
38+
working-directory: ./testdata
39+
40+
- name: Is Release?
41+
if: startswith(github.ref, 'refs/tags/v')
42+
run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
43+
44+
- name: Publish to npm
45+
if: env.DEPLOY_PACKAGE == 'true'
46+
run: npm pack && npm publish --access public
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/node_modules
2+
/dist
3+
docs
4+
coverage
5+
/testdata/*/actual/*
6+
7+
!/testdata/*/actual/go.*
8+
!/testdata/*/actual/package.*
9+
!/testdata/*/actual/requirements.txt

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["apexlang.apexlang"]
3+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# waPC Code Generators
2+
3+
This library provides the code generators for producing waPC modules using the [Apex language](https://apexlang.io).

config/.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
10+
"rules": {
11+
"no-console": 1
12+
}
13+
}

0 commit comments

Comments
 (0)