Skip to content

Commit 0453c48

Browse files
authored
Merge pull request #26 from tsparticles/dev
v2.0.0
2 parents 1f7ed52 + 877d579 commit 0453c48

22 files changed

+1750
-1342
lines changed

.github/workflows/node.js-ci.yml

Lines changed: 73 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,83 @@
11
name: Node.js CI
2-
32
on:
43
push:
54
branches:
65
- main
76
pull_request:
7+
branches:
8+
- main
89

910
jobs:
1011
main:
11-
name: Nx Cloud - Main Job
12-
uses: nrwl/ci/.github/workflows/[email protected]
13-
with:
14-
number-of-agents: 3
15-
init-commands: |
16-
pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
17-
parallel-commands-on-agents: |
18-
pnpm exec nx affected --target=build --parallel=3
12+
runs-on: ubuntu-latest
13+
if: ${{ github.event_name != 'pull_request' }}
14+
steps:
15+
- uses: actions/checkout@v3
16+
name: Checkout [main]
17+
with:
18+
fetch-depth: 0
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: "16"
22+
- uses: pnpm/[email protected]
23+
name: Install pnpm
24+
id: pnpm-install
25+
with:
26+
version: 8
27+
run_install: false
28+
- name: Get pnpm version
29+
id: pnpm-version
30+
run: |
31+
echo "$(pnpm --version)"
32+
33+
- name: Get pnpm store directory
34+
id: pnpm-cache
35+
run: |
36+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
37+
38+
- uses: actions/cache@v3
39+
name: Setup pnpm cache
40+
with:
41+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+
restore-keys: |
44+
${{ runner.os }}-pnpm-store-
45+
- run: pnpm install --no-frozen-lockfile
46+
- run: pnpm run build
47+
pr:
48+
runs-on: ubuntu-latest
49+
if: ${{ github.event_name == 'pull_request' }}
50+
steps:
51+
- uses: actions/checkout@v3
52+
with:
53+
ref: ${{ github.event.pull_request.head.ref }}
54+
repository: ${{ github.event.pull_request.head.repo.full_name }}
55+
fetch-depth: 0
56+
- uses: actions/setup-node@v3
57+
with:
58+
node-version: "16"
59+
- uses: pnpm/[email protected]
60+
name: Install pnpm
61+
id: pnpm-install
62+
with:
63+
version: 8
64+
run_install: false
65+
- name: Get pnpm version
66+
id: pnpm-version
67+
run: |
68+
echo "$(pnpm --version)"
69+
70+
- name: Get pnpm store directory
71+
id: pnpm-cache
72+
run: |
73+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
1974
20-
agents:
21-
name: Nx Cloud - Agents
22-
uses: nrwl/ci/.github/workflows/[email protected]
23-
with:
24-
number-of-agents: 3
75+
- uses: actions/cache@v3
76+
name: Setup pnpm cache
77+
with:
78+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
79+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
80+
restore-keys: |
81+
${{ runner.os }}-pnpm-store-
82+
- run: pnpm install --no-frozen-lockfile
83+
- run: pnpm run build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ dist
33
.DS_Store
44
lerna-debug.log
55
.idea
6+
7+
.nx/cache

nx.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,17 @@
33
"build": {
44
"dependsOn": [
55
"^build"
6-
]
6+
],
7+
"cache": true
78
},
89
"build:ci": {
910
"dependsOn": [
1011
"^build:ci"
11-
]
12+
],
13+
"cache": true
1214
}
1315
},
1416
"extends": "@nrwl/workspace/presets/npm.json",
15-
"npmScope": "tsparticles-utils-root",
16-
"tasksRunnerOptions": {
17-
"default": {
18-
"runner": "nx-cloud",
19-
"options": {
20-
"cacheableOperations": [
21-
"build",
22-
"build:ci"
23-
],
24-
"accessToken": "ZTBkZDI4YTctNmIzNS00MzllLWFmNDktODg3MzM3NDljYmQ2fHJlYWQ="
25-
}
26-
}
27-
},
2817
"$schema": "./node_modules/nx/schemas/nx-schema.json",
2918
"namedInputs": {
3019
"default": [
@@ -35,5 +24,6 @@
3524
"production": [
3625
"default"
3726
]
38-
}
27+
},
28+
"nxCloudAccessToken": "ZTBkZDI4YTctNmIzNS00MzllLWFmNDktODg3MzM3NDljYmQ2fHJlYWQ="
3929
}

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22
"name": "tsparticles-utils-root",
33
"private": true,
44
"scripts": {
5-
"build": "lerna run build"
5+
"build": "lerna run build",
6+
"version:alpha": "lerna version prerelease --preid alpha --conventional-commits",
7+
"version:beta": "lerna version prerelease --preid beta --conventional-commits",
8+
"publish:alpha": "lerna publish from-package --pre-dist-tag alpha --preid alpha",
9+
"publish:beta": "lerna publish from-package --pre-dist-tag beta --preid beta"
610
},
711
"workspaces": [
812
"packages/*"
913
],
1014
"devDependencies": {
11-
"@nrwl/workspace": "^16.6.0",
12-
"lerna": "^7.1.4",
13-
"nx": "^16.6.0",
14-
"typescript": "^5.1.6",
15-
"nx-cloud": "^16.2.0"
15+
"@nrwl/workspace": "^17.1.3",
16+
"lerna": "^8.0.0",
17+
"nx": "^17.1.3",
18+
"typescript": "^5.3.2"
1619
}
1720
}

packages/eslint-config/CHANGELOG.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,89 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.0.0](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-21)
7+
8+
**Note:** Version bump only for package @tsparticles/eslint-config
9+
10+
11+
12+
13+
14+
# [2.0.0-beta.8](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-20)
15+
16+
**Note:** Version bump only for package @tsparticles/eslint-config
17+
18+
19+
20+
21+
22+
# [2.0.0-beta.7](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-14)
23+
24+
**Note:** Version bump only for package @tsparticles/eslint-config
25+
26+
27+
28+
29+
30+
# [2.0.0-beta.6](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-07)
31+
32+
**Note:** Version bump only for package @tsparticles/eslint-config
33+
34+
35+
36+
37+
38+
# [2.0.0-beta.5](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-01)
39+
40+
**Note:** Version bump only for package @tsparticles/eslint-config
41+
42+
43+
44+
45+
46+
# [2.0.0-beta.4](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-10-26)
47+
48+
49+
### Features
50+
51+
* added effects support ([d1e1743](https://github.com/tsparticles/utils/commit/d1e17431a2b1af081f62f0e52bc7436e3b83e863))
52+
53+
54+
55+
56+
57+
# [2.0.0-beta.3](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-10-22)
58+
59+
**Note:** Version bump only for package @tsparticles/eslint-config
60+
61+
62+
63+
64+
65+
# [2.0.0-beta.2](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-10-02)
66+
67+
**Note:** Version bump only for package @tsparticles/eslint-config
68+
69+
70+
71+
72+
73+
# [2.0.0-beta.1](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-08-26)
74+
75+
**Note:** Version bump only for package @tsparticles/eslint-config
76+
77+
78+
79+
80+
81+
# [2.0.0-beta.0](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-08-25)
82+
83+
**Note:** Version bump only for package @tsparticles/eslint-config
84+
85+
86+
87+
88+
689
# [1.20.0](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-08-08)
790

891

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/eslint-config",
3-
"version": "1.20.0",
3+
"version": "2.0.0",
44
"description": "tsParticles default ESLint Configuration",
55
"main": "eslint-config.js",
66
"license": "MIT",
@@ -11,15 +11,15 @@
1111
"access": "public"
1212
},
1313
"dependencies": {
14-
"@tsparticles/prettier-config": "^1.12.0",
15-
"@typescript-eslint/eslint-plugin": "^6.3.0",
16-
"@typescript-eslint/parser": "^6.3.0",
17-
"eslint": "^8.46.0",
14+
"@tsparticles/prettier-config": "^2.0.0",
15+
"@typescript-eslint/eslint-plugin": "^6.12.0",
16+
"@typescript-eslint/parser": "^6.12.0",
17+
"eslint": "^8.54.0",
1818
"eslint-config-prettier": "^9.0.0",
19-
"eslint-plugin-import": "^2.28.0",
20-
"eslint-plugin-jsdoc": "^46.4.6",
19+
"eslint-plugin-import": "^2.29.0",
20+
"eslint-plugin-jsdoc": "^46.9.0",
2121
"eslint-plugin-tsdoc": "^0.2.17",
22-
"prettier": "^3.0.1",
23-
"typescript": "^5.1.6"
22+
"prettier": "^3.1.0",
23+
"typescript": "^5.3.2"
2424
}
2525
}

packages/prettier-config/CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,62 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.0.0](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-21)
7+
8+
**Note:** Version bump only for package @tsparticles/prettier-config
9+
10+
11+
12+
13+
14+
# [2.0.0-beta.5](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-20)
15+
16+
**Note:** Version bump only for package @tsparticles/prettier-config
17+
18+
19+
20+
21+
22+
# [2.0.0-beta.4](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-11-14)
23+
24+
**Note:** Version bump only for package @tsparticles/prettier-config
25+
26+
27+
28+
29+
30+
# [2.0.0-beta.3](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-10-22)
31+
32+
**Note:** Version bump only for package @tsparticles/prettier-config
33+
34+
35+
36+
37+
38+
# [2.0.0-beta.2](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-10-02)
39+
40+
**Note:** Version bump only for package @tsparticles/prettier-config
41+
42+
43+
44+
45+
46+
# [2.0.0-beta.1](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-08-26)
47+
48+
**Note:** Version bump only for package @tsparticles/prettier-config
49+
50+
51+
52+
53+
54+
# [2.0.0-beta.0](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-08-25)
55+
56+
**Note:** Version bump only for package @tsparticles/prettier-config
57+
58+
59+
60+
61+
662
# [1.12.0](https://github.com/tsparticles/utils/compare/@tsparticles/[email protected]...@tsparticles/[email protected]) (2023-08-03)
763

864
**Note:** Version bump only for package @tsparticles/prettier-config

packages/prettier-config/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/prettier-config",
3-
"version": "1.12.0",
3+
"version": "2.0.0",
44
"description": "tsParticles default Prettier Configuration",
55
"main": "prettier-config.json",
66
"license": "MIT",
@@ -12,6 +12,7 @@
1212
"access": "public"
1313
},
1414
"dependencies": {
15-
"prettier": "^3.0.1"
15+
"prettier": "^3.1.0",
16+
"prettier-plugin-multiline-arrays": "^3.0.1"
1617
}
1718
}

packages/prettier-config/prettier-config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "http://json.schemastore.org/prettierrc",
33
"printWidth": 120,
44
"endOfLine": "lf",
5+
"plugins": ["prettier-plugin-multiline-arrays"],
56
"overrides": [
67
{
78
"files": [
@@ -19,13 +20,13 @@
1920
"tabWidth": 4,
2021
"arrowParens": "avoid"
2122
}
22-
}, {
23+
},
24+
{
2325
"files": "*.riot",
2426
"options": {
2527
"parser": "mdx",
26-
"jsxBracketSameLine": true
28+
"bracketSameLine": true
2729
}
2830
}
2931
]
3032
}
31-

0 commit comments

Comments
 (0)