Skip to content

Commit

Permalink
Add TypeScript+ESM example, general refresh (#19)
Browse files Browse the repository at this point in the history
* regenerate lockfiles with latest cucumber version

* refresh configuration files

* split typescript to cjs and esm versions

* update incorrect git urls

* use node.js 20 for ci
  • Loading branch information
davidjgoss committed Apr 27, 2024
1 parent 0879271 commit 78e0909
Show file tree
Hide file tree
Showing 25 changed files with 8,762 additions and 9,129 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ There are so many ways you can use [Cucumber-JS](https://github.com/cucumber/cuc
For example:

* [a Node.js app with ESM](./examples/esm-node)
* [a TypeScript Node.js app](./examples/typescript-node)
* a TypeScript Node.js app
* [using CommonJS format](./examples/typescript-node-commonjs)
* [using ESM format](./examples/typescript-node-esm)
* [a Command-line Node.js app](./examples/command-line)
* [a GitHub Probot app](./examples/probot)
3 changes: 0 additions & 3 deletions examples/command-line/cucumber.js

This file was deleted.

2,261 changes: 1,191 additions & 1,070 deletions examples/command-line/package-lock.json

Large diffs are not rendered by default.

2,374 changes: 1,055 additions & 1,319 deletions examples/esm-node/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/esm-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"author": "David Goss",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber-js/issues"
"url": "https://github.com/cucumber/cucumber-js-examples/issues"
},
"homepage": "https://github.com/cucumber/cucumber-js#readme",
"homepage": "https://github.com/cucumber/cucumber-js-examples#readme",
"devDependencies": {
"@cucumber/cucumber": "*"
}
Expand Down
7 changes: 0 additions & 7 deletions examples/probot/cucumber.js

This file was deleted.

10 changes: 10 additions & 0 deletions examples/probot/cucumber.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"default": {
"requireModule": [
"ts-node/register"
],
"require": [
"features/**/*.ts"
]
}
}
Loading

0 comments on commit 78e0909

Please sign in to comment.