Skip to content

Commit e758b74

Browse files
authored
Merge pull request #6 from form8ion/alpha
2 parents 26281d9 + 925755c commit e758b74

File tree

17 files changed

+3876
-149
lines changed

17 files changed

+3876
-149
lines changed

.github/workflows/node-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@ env:
1313
FORCE_COLOR: 1
1414
NPM_CONFIG_COLOR: always
1515
jobs:
16+
verify-matrix:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node:
21+
- 14.18.0
22+
- 16.0.0
23+
- 16
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Setup node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node }}
30+
cache: npm
31+
- run: npm clean-install
32+
- run: npm test
1633
verify:
1734
runs-on: ubuntu-latest
1835
steps:
@@ -30,6 +47,7 @@ jobs:
3047
if: github.event_name == 'push'
3148
needs:
3249
- verify
50+
- verify-matrix
3351
steps:
3452
- uses: octokit/request-action@v2.x
3553
with:

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ form8ion plugin for projects that manage code style with prettier
1414
* [Usage](#usage)
1515
* [Installation](#installation)
1616
* [Example](#example)
17+
* [Import](#import)
18+
* [Execute](#execute)
1719
* [Contributing](#contributing)
1820
* [Dependencies](#dependencies)
1921
* [Verification](#verification)
@@ -25,6 +27,7 @@ form8ion plugin for projects that manage code style with prettier
2527
[![MIT license][license-badge]][license-link]
2628
[![npm][npm-badge]][npm-link]
2729
[![Try @form8ion/prettier on RunKit][runkit-badge]][runkit-link]
30+
![node][node-badge]
2831

2932
<!--consumer-badges end -->
3033

@@ -46,7 +49,7 @@ import {scaffold} from '@form8ion/prettier';
4649

4750
```javascript
4851
(async () => {
49-
await scaffold({projectRoot: process.cwd()});
52+
await scaffold({projectRoot: process.cwd(), config: {scope: '@foo'}});
5053
})();
5154
```
5255

@@ -114,3 +117,5 @@ $ npm test
114117
[runkit-link]: https://npm.runkit.com/@form8ion/prettier
115118

116119
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/prettier.svg
120+
121+
[node-badge]: https://img.shields.io/node/v/@form8ion/prettier?logo=node.js

cucumber.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

cucumber.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const base = {
2+
formatOptions: {snippetInterface: 'async-await'},
3+
import: ['test/integration/features/**/*.mjs'],
4+
publishQuiet: true
5+
};
6+
7+
export default base;
8+
9+
export const wip = {
10+
...base,
11+
tags: '@wip and not @skip'
12+
};
13+
14+
export const noWip = {
15+
...base,
16+
tags: 'not @skip and not @wip'
17+
};
18+
19+
export const focus = {
20+
...base,
21+
tags: '@focus'
22+
};

example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// #### Import
22
// remark-usage-ignore-next
33
import stubbedFs from 'mock-fs';
4-
import {scaffold} from './lib/index.cjs';
4+
import {scaffold} from './lib/index.js';
55

66
// remark-usage-ignore-next
77
stubbedFs();
88

99
// #### Execute
1010

1111
(async () => {
12-
await scaffold({projectRoot: process.cwd()});
12+
await scaffold({projectRoot: process.cwd(), config: {scope: '@foo'}});
1313
})();

0 commit comments

Comments
 (0)