Skip to content

Commit

Permalink
Merge pull request #369 from form8ion/renovate/master-node-20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
travi authored Dec 9, 2023
2 parents 5b55f15 + 66b302e commit 8ffdda2
Show file tree
Hide file tree
Showing 20 changed files with 10,810 additions and 5,564 deletions.
1 change: 0 additions & 1 deletion .babelrc

This file was deleted.

File renamed without changes.
19 changes: 19 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
jobs:
verify-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 18.17.0
- 20.6.1
- 21
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: npm
node-version: ${{ matrix.node }}
- run: npm clean-install
- run: npm audit signatures
- run: npm test
verify:
runs-on: ubuntu-latest
steps:
Expand All @@ -28,6 +46,7 @@ jobs:
release:
needs:
- verify
- verify-matrix
permissions:
contents: write
id-token: write
Expand Down
1 change: 0 additions & 1 deletion .mocharc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
File renamed without changes.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ opinionated scaffolder for presentations using [slidev](https://sli.dev/)
[![MIT license][license-badge]][license-link]
[![npm][npm-badge]][npm-link]
[![Try @form8ion/slidev on RunKit][runkit-badge]][runkit-link]
![node][node-badge]

<!--consumer-badges end -->

Expand Down Expand Up @@ -115,6 +116,9 @@ $ npm test
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/slidev.svg

[coverage-link]: https://codecov.io/github/form8ion/slidev

[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/slidev?logo=codecov

[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg

[node-badge]: https://img.shields.io/node/v/@form8ion/slidev?logo=node.js
25 changes: 20 additions & 5 deletions cucumber.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
module.exports = {
base: '--require-module @babel/register --format-options \'{"snippetInterface": "async-await"}\'',
wip: '--tags "@wip"',
noWip: '--tags "not @wip"',
focus: '--tags @focus'
const base = {
formatOptions: {snippetInterface: 'async-await'},
import: ['test/integration/features/**/*.js']
};

export default base;

export const wip = {
...base,
tags: '@wip and not @skip'
};

export const noWip = {
...base,
tags: 'not @skip and not @wip'
};

export const focus = {
...base,
tags: '@focus'
};
7 changes: 3 additions & 4 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// #### Import
// remark-usage-ignore-next 2
import {resolve} from 'path';
// remark-usage-ignore-next
import stubbedFs from 'mock-fs';
import {scaffold} from './lib/index.cjs.js';
import {scaffold} from './lib/index.js';

// remark-usage-ignore-next
stubbedFs({node_modules: stubbedFs.load(resolve(__dirname, 'node_modules'))});
stubbedFs({node_modules: stubbedFs.load('node_modules')});

// #### Execute

Expand Down
Loading

0 comments on commit 8ffdda2

Please sign in to comment.