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

Commit

Permalink
Merge pull request #243 from data-provider/release
Browse files Browse the repository at this point in the history
Release v4.0.0
  • Loading branch information
javierbrea committed May 27, 2022
2 parents a051173 + b88810b commit 9d0ba0d
Show file tree
Hide file tree
Showing 518 changed files with 31,749 additions and 72,492 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/.tmp
/mocks/*/public
/mocks/*/build
/packages/*/dist
/packages/*/coverage
105 changes: 105 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2018,
requireConfigFile: false,
},
plugins: ["prettier", "@nrwl/nx"],
extends: ["prettier"],
rules: {
"prettier/prettier": [
2,
{
printWidth: 99,
parser: "flow",
},
],
"no-shadow": [2, { builtinGlobals: true, hoist: "all" }],
"no-undef": 2,
"no-unused-vars": [2, { vars: "all", args: "after-used", ignoreRestSiblings: false }],
"@nrwl/nx/enforce-module-boundaries": [
2,
{
allow: [],
depConstraints: [
{
sourceTag: "type:specs",
onlyDependOnLibsWithTags: ["type:mock"],
},
{
sourceTag: "type:example",
onlyDependOnLibsWithTags: ["type:lib"],
},
{
sourceTag: "type:mock",
onlyDependOnLibsWithTags: ["type:lib"],
},
{
sourceTag: "type:lib",
onlyDependOnLibsWithTags: ["type:lib"],
},
{
sourceTag: "type:app",
onlyDependOnLibsWithTags: ["type:lib"],
},
{
sourceTag: "type:test",
onlyDependOnLibsWithTags: [
"type:lib",
"type:app",
"type:mock",
"type:specs",
"type:example",
],
},
],
},
],
},
overrides: [
{
files: ["packages/*/test/**/*.js", "test/*/src/**/*.js"],
globals: {
jest: true,
beforeAll: true,
beforeEach: true,
afterEach: true,
afterAll: true,
describe: true,
expect: true,
it: true,
},
},
{
files: ["test/*/cypress/**/*.js"],
globals: {
Cypress: true,
cy: true,
before: true,
beforeEach: true,
afterEach: true,
after: true,
describe: true,
expect: true,
it: true,
},
},
{
files: ["scripts/**/*.js", "**/*.mjs"],
parser: "@babel/eslint-parser",
parserOptions: {
sourceType: "module",
allowImportExportEverywhere: true,
requireConfigFile: false,
},
globals: {
module: true,
},
},
],
};
28 changes: 1 addition & 27 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ The following is a set of guidelines for contributing to this project. These are
* [Pull Requests](#pull-requests)
* [Styleguides](#styleguides)
* [Git Commit Messages](#git-commit-messages)
* [JavaScript Styleguide](#javascript-styleguide)
* [Tests Styleguide](#tests-styleguide)
* [Developer's certificate of origin](#developers-certificate-of-origin)

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

1. **No `--force` pushes** or modifying the Git history in any way.
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.
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.

### Releases

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

### JavaScript Styleguide

All JavaScript must adhere to the style defined in the `.eslintrc.json` file.

### Tests Styleguide

- Fail tests first. How do you know if it is actually testing anything if the assert never failed?
- Treat `describe` as a noun or situation (Situations usually start with "when").
- Treat `it` as a statement about state or how an operation changes state. Usually, all `it` should start with "should".
- Prefer fewer asserts per `it`.
- 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`)

#### Example

```js
describe("a dog", () => {
describe("when is happy", () => {
it("should wags its tail", () => {
expect(dog.tail.moving).to.be.true();
});
});
});
```

## Developer's Certificate of Origin

By making a contribution to this project, I certify that:
Expand Down
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/affected-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: affected-projects
on:
pull_request:
jobs:
comment-affected:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
main-branch-name: ${{github.event.pull_request.base.ref}}
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: "6.x"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '17.x'
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Affected report
id: affected-report
run: echo "::set-output name=report::$(./scripts/commands/affected-report.sh origin/${{github.event.pull_request.base.ref}})"
- name: Comment affected
uses: unsplash/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: ${{ steps.affected-report.outputs.report }}
delete_prev_regex_msg: ${{ steps.affected-report.outputs.report }}
check_for_duplicate_msg: false
Loading

0 comments on commit 9d0ba0d

Please sign in to comment.