Skip to content

Commit

Permalink
Format codebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond committed Mar 7, 2024
1 parent 5dbba9e commit 50cf6c2
Show file tree
Hide file tree
Showing 827 changed files with 142,905 additions and 119,329 deletions.
52 changes: 26 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
version: 2
jobs:
build:
docker:
- image: cimg/node:lts
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install modules
command: yarn install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Test
command: npm test
- store_artifacts:
path: test-results.xml
build:
docker:
- image: cimg/node:lts
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install modules
command: yarn install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Test
command: npm test
- store_artifacts:
path: test-results.xml

#########################################################
## Disables Config (Comment/Remove to re-enable CircleCI)
#########################################################
workflows:
version: 2
build-and-test:
jobs:
- build:
filters:
branches:
ignore: /.*/
version: 2
build-and-test:
jobs:
- build:
filters:
branches:
ignore: /.*/
9 changes: 6 additions & 3 deletions .esdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"source": "./src",
"destination": "./docs",
"plugins": [
{"name": "esdoc-standard-plugin"},
{"name": "esdoc-ecmascript-proposal-plugin", "option": {"all": true}}
{ "name": "esdoc-standard-plugin" },
{
"name": "esdoc-ecmascript-proposal-plugin",
"option": { "all": true }
}
]
}
}
40 changes: 20 additions & 20 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:mocha/recommended",
"eslint-config-prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["mocha"],
"rules": {
"mocha/max-top-level-suites": ["warn", { "limit": 5 }],
"mocha/no-setup-in-describe": "warn",
"no-loss-of-precision": "warn"
}
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:mocha/recommended",
"eslint-config-prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["mocha"],
"rules": {
"mocha/max-top-level-suites": ["warn", { "limit": 5 }],
"mocha/no-setup-in-describe": "warn",
"no-loss-of-precision": "warn"
}
}
150 changes: 75 additions & 75 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
# with:
# node-version: ${{ env.NODE_VERSION }}
# cache: 'npm'

# - name: Cache node modules
# uses: actions/cache@v3
# with:
# path: node_modules
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-node-

# - name: Installing dependencies
# if: steps.cache.outputs.cache-hit != 'true'
# uses: borales/actions-yarn@v4
Expand All @@ -54,78 +54,78 @@ name: Build & Test
on: push

env:
NODE_VERSION: 18.x
NODE_VERSION: 18.x

jobs:
setup:
runs-on: ubuntu-latest
steps:
- run: echo "Triggered by ${{ github.event_name }} event."

- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Installing dependencies
if: steps.cache.outputs.cache-hit != 'true'
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile

- name: Lint
uses: borales/actions-yarn@v4
with:
cmd: lint

build:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build

test:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Test
uses: borales/actions-yarn@v4
with:
cmd: test
setup:
runs-on: ubuntu-latest
steps:
- run: echo "Triggered by ${{ github.event_name }} event."

- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Installing dependencies
if: steps.cache.outputs.cache-hit != 'true'
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile

- name: Lint
uses: borales/actions-yarn@v4
with:
cmd: lint

build:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build

test:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Test
uses: borales/actions-yarn@v4
with:
cmd: test
16 changes: 8 additions & 8 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
process.env.TZ = 'UTC';

module.exports = {
bail: true,
timeout: 20000,
exit: true,
require: [
'ts-node/register',
'mock-local-storage',
'jsdom-global/register'
]
bail: true,
timeout: 20000,
exit: true,
require: [
'ts-node/register',
'mock-local-storage',
'jsdom-global/register',
],
};
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"singleQuote": true,
"tabWidth": 4
"singleQuote": true,
"tabWidth": 4
}
38 changes: 18 additions & 20 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,32 @@
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-b",
"-t",
"20000",
"--colors",
"${workspaceFolder}/src/**/*.unit.js",
"-t",
"30000"
"-b",
"-t",
"20000",
"--colors",
"${workspaceFolder}/src/**/*.unit.js",
"-t",
"30000"
],
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
]
},
{
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
"name": "Launch Mocha Tests via Yarn",
"runtimeExecutable": "yarn",
"cwd": "${workspaceFolder}",
"runtimeArgs": ["test"],
"runtimeArgs": ["test"]
},
{
"type": "node",
"request": "launch",
"name": "Mocha: current file",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": ["-b", "-t", "0", "'${file}'"],
"console": "integratedTerminal",
}
"type": "node",
"request": "launch",
"name": "Mocha: current file",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": ["-b", "-t", "0", "'${file}'"],
"console": "integratedTerminal"
}
]
}
17 changes: 15 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,18 @@ author: The Form.io Developers
markdown: kramdown
highlighter: rouge
baseurl: /formio.js/
exclude: [package.json, package-lock.json, circle.yml, gulpfile.js, node_modules, bower_components, src, test, gulp, lib, config, tsconfig.json]

exclude:
[
package.json,
package-lock.json,
circle.yml,
gulpfile.js,
node_modules,
bower_components,
src,
test,
gulp,
lib,
config,
tsconfig.json,
]
Loading

0 comments on commit 50cf6c2

Please sign in to comment.