Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General cleanup #2757

Merged
merged 10 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,20 @@ jobs:
cd lib/loader
npm run asbuild
npm run test
coverage:
name: "Coverage"
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: current
- name: Install dependencies
run: npm ci --no-audit
- name: Build
run: npm run build
- name: Collect coverage
run: npx c8 -r none -- npm test
- name: Output coverage summary
run: npx c8 report -r text-summary
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules/
*debug.log
dist/
build/
raw/
.history
Expand Down
6 changes: 6 additions & 0 deletions dist/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.generated.d.ts
*.map
asc.js
assemblyscript.js
importmap.json
web.js
4 changes: 4 additions & 0 deletions dist/asc.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// <reference path="./asc.generated.d.ts" />
export * from "types:assemblyscript/cli/index";
import * as asc from "types:assemblyscript/cli/index";
export default asc;
4 changes: 4 additions & 0 deletions dist/assemblyscript.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// <reference path="./assemblyscript.generated.d.ts" />
export * from "types:assemblyscript/src/index";
import * as assemblyscript from "types:assemblyscript/src/index";
export default assemblyscript;
1 change: 1 addition & 0 deletions dist/transform.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = class Transform { /* stub */ };
1 change: 1 addition & 0 deletions dist/transform.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Transform } from "./asc";
1 change: 1 addition & 0 deletions dist/transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export class Transform { /* stub */ };
Loading