Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 9d0ba0d

Browse files
authored
Merge pull request #243 from data-provider/release
Release v4.0.0
2 parents a051173 + b88810b commit 9d0ba0d

File tree

518 files changed

+31749
-72492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

518 files changed

+31749
-72492
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules
2+
**/.tmp
3+
/mocks/*/public
4+
/mocks/*/build
5+
/packages/*/dist
6+
/packages/*/coverage

.eslintrc.cjs

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
es6: true,
6+
},
7+
parserOptions: {
8+
sourceType: "module",
9+
ecmaVersion: 2018,
10+
requireConfigFile: false,
11+
},
12+
plugins: ["prettier", "@nrwl/nx"],
13+
extends: ["prettier"],
14+
rules: {
15+
"prettier/prettier": [
16+
2,
17+
{
18+
printWidth: 99,
19+
parser: "flow",
20+
},
21+
],
22+
"no-shadow": [2, { builtinGlobals: true, hoist: "all" }],
23+
"no-undef": 2,
24+
"no-unused-vars": [2, { vars: "all", args: "after-used", ignoreRestSiblings: false }],
25+
"@nrwl/nx/enforce-module-boundaries": [
26+
2,
27+
{
28+
allow: [],
29+
depConstraints: [
30+
{
31+
sourceTag: "type:specs",
32+
onlyDependOnLibsWithTags: ["type:mock"],
33+
},
34+
{
35+
sourceTag: "type:example",
36+
onlyDependOnLibsWithTags: ["type:lib"],
37+
},
38+
{
39+
sourceTag: "type:mock",
40+
onlyDependOnLibsWithTags: ["type:lib"],
41+
},
42+
{
43+
sourceTag: "type:lib",
44+
onlyDependOnLibsWithTags: ["type:lib"],
45+
},
46+
{
47+
sourceTag: "type:app",
48+
onlyDependOnLibsWithTags: ["type:lib"],
49+
},
50+
{
51+
sourceTag: "type:test",
52+
onlyDependOnLibsWithTags: [
53+
"type:lib",
54+
"type:app",
55+
"type:mock",
56+
"type:specs",
57+
"type:example",
58+
],
59+
},
60+
],
61+
},
62+
],
63+
},
64+
overrides: [
65+
{
66+
files: ["packages/*/test/**/*.js", "test/*/src/**/*.js"],
67+
globals: {
68+
jest: true,
69+
beforeAll: true,
70+
beforeEach: true,
71+
afterEach: true,
72+
afterAll: true,
73+
describe: true,
74+
expect: true,
75+
it: true,
76+
},
77+
},
78+
{
79+
files: ["test/*/cypress/**/*.js"],
80+
globals: {
81+
Cypress: true,
82+
cy: true,
83+
before: true,
84+
beforeEach: true,
85+
afterEach: true,
86+
after: true,
87+
describe: true,
88+
expect: true,
89+
it: true,
90+
},
91+
},
92+
{
93+
files: ["scripts/**/*.js", "**/*.mjs"],
94+
parser: "@babel/eslint-parser",
95+
parserOptions: {
96+
sourceType: "module",
97+
allowImportExportEverywhere: true,
98+
requireConfigFile: false,
99+
},
100+
globals: {
101+
module: true,
102+
},
103+
},
104+
],
105+
};

.github/CONTRIBUTING.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ The following is a set of guidelines for contributing to this project. These are
1414
* [Pull Requests](#pull-requests)
1515
* [Styleguides](#styleguides)
1616
* [Git Commit Messages](#git-commit-messages)
17-
* [JavaScript Styleguide](#javascript-styleguide)
18-
* [Tests Styleguide](#tests-styleguide)
1917
* [Developer's certificate of origin](#developers-certificate-of-origin)
2018

2119
## Code of Conduct
@@ -31,7 +29,7 @@ Individuals making significant and valuable contributions are given commit-acces
3129
There are a few basic ground-rules for contributors:
3230

3331
1. **No `--force` pushes** or modifying the Git history in any way.
34-
2. **All modifications** should be subject to a **pull request** to solicit feedback from other contributors. The base branch of the pull request should be the "release" branch. All issues should be merged into it until is ready to declare a formal release.
32+
2. **All modifications** should be subject to a **pull request** to solicit feedback from other contributors. The base branch of the pull request should correspond with the assigned "release milestone" of the related issue. When an issue is created, it will be prioritized and a "release milestone" will be assigned to it, at the criteria of contributors. A branch will be created from master for that release milestone, and all related issues should be merged into it, until is ready to declare a formal release.
3533

3634
### Releases
3735

@@ -66,30 +64,6 @@ This document may also be subject to pull-requests or changes by contributors wh
6664
* Limit the first line to 72 characters or less
6765
* Reference issues and pull requests liberally after the first line
6866

69-
### JavaScript Styleguide
70-
71-
All JavaScript must adhere to the style defined in the `.eslintrc.json` file.
72-
73-
### Tests Styleguide
74-
75-
- Fail tests first. How do you know if it is actually testing anything if the assert never failed?
76-
- Treat `describe` as a noun or situation (Situations usually start with "when").
77-
- Treat `it` as a statement about state or how an operation changes state. Usually, all `it` should start with "should".
78-
- Prefer fewer asserts per `it`.
79-
- Prefer one file for all specs of a javascript file, but, if it grows too much, split it into many files adding a sufix describing the behavior being tested in it (`file.behavior.js`)
80-
81-
#### Example
82-
83-
```js
84-
describe("a dog", () => {
85-
describe("when is happy", () => {
86-
it("should wags its tail", () => {
87-
expect(dog.tail.moving).to.be.true();
88-
});
89-
});
90-
});
91-
```
92-
9367
## Developer's Certificate of Origin
9468

9569
By making a contribution to this project, I certify that:

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: affected-projects
2+
on:
3+
pull_request:
4+
jobs:
5+
comment-affected:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
13+
uses: nrwl/nx-set-shas@v2
14+
with:
15+
main-branch-name: ${{github.event.pull_request.base.ref}}
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2.2.1
18+
with:
19+
version: "6.x"
20+
- name: Use Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '17.x'
24+
cache: 'pnpm'
25+
- name: Get pnpm store directory
26+
id: pnpm-cache
27+
run: |
28+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
29+
- uses: actions/cache@v3
30+
name: Setup pnpm cache
31+
with:
32+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
33+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34+
restore-keys: |
35+
${{ runner.os }}-pnpm-store-
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Affected report
39+
id: affected-report
40+
run: echo "::set-output name=report::$(./scripts/commands/affected-report.sh origin/${{github.event.pull_request.base.ref}})"
41+
- name: Comment affected
42+
uses: unsplash/comment-on-pr@v1.3.0
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
msg: ${{ steps.affected-report.outputs.report }}
47+
delete_prev_regex_msg: ${{ steps.affected-report.outputs.report }}
48+
check_for_duplicate_msg: false

0 commit comments

Comments
 (0)