Skip to content

Commit

Permalink
Update deps, refactor the project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ppcano committed Jan 23, 2024
1 parent f032e13 commit 762fa1c
Show file tree
Hide file tree
Showing 13 changed files with 3,363 additions and 4,525 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
k6_transpile_bundle_test:
name: Transpile, bundle and run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run bundle
- name: Run local k6 babel test
uses: grafana/[email protected]
with:
filename: dist/optional-chaining-test.js
- name: Run local k6 npm module test
uses: grafana/[email protected]
with:
filename: dist/faker-test.js
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
build
dist
2 changes: 1 addition & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"@babel/preset-env"
]
],
"plugins": [ "@babel/plugin-transform-block-scoping"]
"plugins": [ "@babel/plugin-transform-block-scoping", "@babel/plugin-transform-optional-chaining"]
}
15 changes: 0 additions & 15 deletions examples/faker.example.js

This file was deleted.

16 changes: 0 additions & 16 deletions examples/xml2js.example.js

This file was deleted.

14 changes: 0 additions & 14 deletions main.js

This file was deleted.

Loading

0 comments on commit 762fa1c

Please sign in to comment.