Skip to content

Commit 053fd93

Browse files
committed
chore: initial commit
0 parents  commit 053fd93

32 files changed

+17214
-0
lines changed

.c8rc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"reporter": [
3+
"lcov",
4+
"text-summary",
5+
"html"
6+
],
7+
"exclude": [
8+
"src/**/*-test.js",
9+
"test/",
10+
"thirdparty-wrappers/",
11+
"vendor/"
12+
]
13+
}

.commitlintrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@form8ion"
4+
]
5+
}

.czrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"path":"./node_modules/cz-conventional-changelog"}

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
indent_style = space
10+
indent_size = 2
11+
end_of_line = lf
12+
insert_final_newline = true

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/lib/
2+
/coverage/

.eslintrc.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root: true
2+
3+
extends:
4+
- '@form8ion'
5+
- '@form8ion/cucumber'

.gherkin-lintrc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"no-restricted-tags": [
3+
"on",
4+
{
5+
"tags": [
6+
"@focus"
7+
]
8+
}
9+
],
10+
"use-and": "on",
11+
"no-multiple-empty-lines": "on",
12+
"no-dupe-feature-names": "on"
13+
}

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/settings.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_extends: .github
2+
repository:
3+
name: java
4+
description: Java language plugin for the @form8ion toolset
5+
homepage: https://npm.im/@form8ion/java
6+
private: false

.github/workflows/node-ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Node.js CI
2+
'on':
3+
push:
4+
branches:
5+
- master
6+
- beta
7+
- renovate/**
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
env:
13+
FORCE_COLOR: 1
14+
NPM_CONFIG_COLOR: always
15+
permissions:
16+
contents: read
17+
jobs:
18+
verify:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Setup node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version-file: .nvmrc
26+
cache: npm
27+
- run: npm clean-install
28+
- run: npm audit signatures
29+
- run: npm test
30+
- uses: codecov/codecov-action@v3
31+
release:
32+
needs:
33+
- verify
34+
permissions:
35+
contents: write
36+
id-token: write
37+
issues: write
38+
pull-requests: write
39+
uses: form8ion/.github/.github/workflows/release-package.yml@master
40+
secrets:
41+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.github/workflows/release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
'on':
3+
push:
4+
branches:
5+
- alpha
6+
permissions:
7+
contents: read
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
id-token: write
13+
issues: write
14+
pull-requests: write
15+
uses: form8ion/.github/.github/workflows/release-package.yml@master
16+
secrets:
17+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
3+
4+
5+
/node_modules/
6+
/lib/
7+
/coverage/
8+
9+
.eslintcache

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install commitlint --edit $1

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

.lockfile-lintrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"path": "package-lock.json",
3+
"type": "npm",
4+
"validate-https": true,
5+
"allowed-hosts": [
6+
"npm"
7+
]
8+
}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
update-notifier=false

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

.remarkrc.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"settings": {
3+
"listItemIndent": "one",
4+
"emphasis": "_",
5+
"strong": "_",
6+
"bullet": "*",
7+
"incrementListMarker": false
8+
},
9+
"plugins": [
10+
"@form8ion/remark-lint-preset",
11+
[
12+
"remark-toc",
13+
{
14+
"tight": true
15+
}
16+
],
17+
[
18+
"remark-usage",
19+
{
20+
"heading": "example"
21+
}
22+
]
23+
]
24+
}

.renovaterc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>form8ion/renovate-config:js-package"
5+
]
6+
}

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Matt Travi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# java
2+
3+
Java language plugin for the @form8ion toolset
4+
5+
<!--status-badges start -->
6+
7+
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]
8+
[![Codecov][coverage-badge]][coverage-link]
9+
![SLSA Level 2][slsa-badge]
10+
11+
<!--status-badges end -->
12+
13+
## Table of Contents
14+
15+
Run `npm run generate:md` to generate a table of contents
16+
17+
## Usage
18+
19+
<!--consumer-badges start -->
20+
21+
[![MIT license][license-badge]][license-link]
22+
[![npm][npm-badge]][npm-link]
23+
[![Try @form8ion/java on RunKit][runkit-badge]][runkit-link]
24+
25+
<!--consumer-badges end -->
26+
27+
### Installation
28+
29+
```sh
30+
$ npm install @form8ion/java --save
31+
```
32+
33+
### Example
34+
35+
run `npm run generate:md` to inject the usage example
36+
37+
## Contributing
38+
39+
<!--contribution-badges start -->
40+
41+
[![Commitizen friendly][commitizen-badge]][commitizen-link]
42+
[![Conventional Commits][commit-convention-badge]][commit-convention-link]
43+
[![semantic-release: angular][semantic-release-badge]][semantic-release-link]
44+
[![Renovate][renovate-badge]][renovate-link]
45+
[![PRs Welcome][PRs-badge]][PRs-link]
46+
47+
<!--contribution-badges end -->
48+
49+
### Dependencies
50+
51+
```sh
52+
$ nvm install
53+
$ npm install
54+
```
55+
56+
### Verification
57+
58+
```sh
59+
$ npm test
60+
```
61+
62+
[commitizen-link]: http://commitizen.github.io/cz-cli/
63+
64+
[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
65+
66+
[commit-convention-link]: https://conventionalcommits.org
67+
68+
[commit-convention-badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
69+
70+
[semantic-release-link]: https://github.com/semantic-release/semantic-release
71+
72+
[semantic-release-badge]: https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release
73+
74+
[renovate-link]: https://renovatebot.com
75+
76+
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=renovatebot
77+
78+
[PRs-link]: https://makeapullrequest.com
79+
80+
[PRs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
81+
82+
[github-actions-ci-link]: https://github.com/form8ion/java/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
83+
84+
[github-actions-ci-badge]: https://img.shields.io/github/actions/workflow/status/form8ion/java/node-ci.yml.svg?branch=master&logo=github
85+
86+
[coverage-link]: https://codecov.io/github/form8ion/java
87+
88+
[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/java?logo=codecov
89+
90+
[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg
91+
92+
[license-link]: LICENSE
93+
94+
[license-badge]: https://img.shields.io/github/license/form8ion/java.svg
95+
96+
[npm-link]: https://www.npmjs.com/package/@form8ion/java
97+
98+
[npm-badge]: https://img.shields.io/npm/v/@form8ion/java?logo=npm
99+
100+
[runkit-link]: https://npm.runkit.com/@form8ion/java
101+
102+
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/java.svg

cucumber.js

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

example.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// #### Import
2+
// remark-usage-ignore-next
3+
import stubbedFs from 'mock-fs';
4+
import {scaffold} from './lib/index.js';
5+
6+
// remark-usage-ignore-next
7+
stubbedFs();
8+
9+
// #### Execute
10+
11+
(async () => {
12+
await scaffold({projectRoot: process.cwd()});
13+
})();

0 commit comments

Comments
 (0)