@tsparticles/cli 1.4.1 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ jobs:
23
23
  name: Install pnpm
24
24
  id: pnpm-install
25
25
  with:
26
- version: 7
26
+ version: 8
27
27
  run_install: false
28
28
  - name: Get pnpm version
29
29
  id: pnpm-version
@@ -60,7 +60,7 @@ jobs:
60
60
  name: Install pnpm
61
61
  id: pnpm-install
62
62
  with:
63
- version: 7
63
+ version: 8
64
64
  run_install: false
65
65
  - name: Get pnpm version
66
66
  id: pnpm-version
@@ -1,77 +1,77 @@
1
1
  {
2
- "name": "@tsparticles/empty-template",
3
- "version": "1.0.0",
4
- "private": true,
5
- "author": "Matteo Bruni <matteo.bruni@me.com>",
6
- "description": "tsParticles empty template",
7
- "homepage": "https://particles.js.org",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/tsparticles/empty-template.git"
11
- },
12
- "keywords": [
13
- "front-end",
14
- "frontend",
15
- "tsparticles",
16
- "particles.js",
17
- "particlesjs",
18
- "particles",
19
- "particle",
20
- "canvas",
21
- "jsparticles",
22
- "xparticles",
23
- "particles-js",
24
- "particles-bg",
25
- "particles-bg-vue",
26
- "particles-ts",
27
- "particles.ts",
28
- "react-particles-js",
29
- "react-particles.js",
30
- "react-particles",
31
- "react",
32
- "reactjs",
33
- "vue-particles",
34
- "ngx-particles",
35
- "angular-particles",
36
- "particleground",
37
- "vue",
38
- "vuejs",
39
- "preact",
40
- "preactjs",
41
- "jquery",
42
- "angularjs",
43
- "angular",
44
- "typescript",
45
- "javascript",
46
- "animation",
47
- "web",
48
- "html5",
49
- "web-design",
50
- "webdesign",
51
- "css",
52
- "html",
53
- "css3",
54
- "animated",
55
- "background",
56
- "confetti",
57
- "canvas",
58
- "fireworks",
59
- "fireworks-js",
60
- "confetti-js",
61
- "confettijs",
62
- "fireworksjs",
63
- "canvas-confetti"
64
- ],
65
- "license": "MIT",
66
- "bugs": {
67
- "url": "https://github.com/tsparticles/empty-template/issues"
68
- },
69
- "main": "index.js",
70
- "jsdelivr": "tsparticles.empty.template.min.js",
71
- "unpkg": "tsparticles.empty.template.min.js",
72
- "module": "index.js",
73
- "types": "index.d.ts",
74
- "dependencies": {
75
- "tsparticles-engine": "^2.9.3"
76
- }
2
+ "name": "@tsparticles/empty-template",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "author": "Matteo Bruni <matteo.bruni@me.com>",
6
+ "description": "tsParticles empty template",
7
+ "homepage": "https://particles.js.org",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/tsparticles/empty-template.git"
11
+ },
12
+ "keywords": [
13
+ "front-end",
14
+ "frontend",
15
+ "tsparticles",
16
+ "particles.js",
17
+ "particlesjs",
18
+ "particles",
19
+ "particle",
20
+ "canvas",
21
+ "jsparticles",
22
+ "xparticles",
23
+ "particles-js",
24
+ "particles-bg",
25
+ "particles-bg-vue",
26
+ "particles-ts",
27
+ "particles.ts",
28
+ "react-particles-js",
29
+ "react-particles.js",
30
+ "react-particles",
31
+ "react",
32
+ "reactjs",
33
+ "vue-particles",
34
+ "ngx-particles",
35
+ "angular-particles",
36
+ "particleground",
37
+ "vue",
38
+ "vuejs",
39
+ "preact",
40
+ "preactjs",
41
+ "jquery",
42
+ "angularjs",
43
+ "angular",
44
+ "typescript",
45
+ "javascript",
46
+ "animation",
47
+ "web",
48
+ "html5",
49
+ "web-design",
50
+ "webdesign",
51
+ "css",
52
+ "html",
53
+ "css3",
54
+ "animated",
55
+ "background",
56
+ "confetti",
57
+ "canvas",
58
+ "fireworks",
59
+ "fireworks-js",
60
+ "confetti-js",
61
+ "confettijs",
62
+ "fireworksjs",
63
+ "canvas-confetti"
64
+ ],
65
+ "license": "MIT",
66
+ "bugs": {
67
+ "url": "https://github.com/tsparticles/empty-template/issues"
68
+ },
69
+ "main": "index.js",
70
+ "jsdelivr": "tsparticles.empty.template.min.js",
71
+ "unpkg": "tsparticles.empty.template.min.js",
72
+ "module": "index.js",
73
+ "types": "index.d.ts",
74
+ "dependencies": {
75
+ "tsparticles-engine": "^2.10.0"
76
+ }
77
77
  }
@@ -1,110 +1,110 @@
1
1
  {
2
- "name": "@tsparticles/empty-template",
3
- "version": "1.0.0",
4
- "private": true,
5
- "description": "tsParticles empty template",
6
- "homepage": "https://particles.js.org",
7
- "scripts": {
8
- "build": "tsparticles-cli build",
9
- "build:ci": "tsparticles-cli build --ci",
10
- "version": "tsparticles-cli build -d && git add package.dist.json",
11
- "prepack": "pnpm run build"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/tsparticles/empty-template.git"
16
- },
17
- "keywords": [
18
- "front-end",
19
- "frontend",
20
- "tsparticles",
21
- "particles.js",
22
- "particlesjs",
23
- "particles",
24
- "particle",
25
- "canvas",
26
- "jsparticles",
27
- "xparticles",
28
- "particles-js",
29
- "particles-bg",
30
- "particles-bg-vue",
31
- "particles-ts",
32
- "particles.ts",
33
- "react-particles-js",
34
- "react-particles.js",
35
- "react-particles",
36
- "react",
37
- "reactjs",
38
- "vue-particles",
39
- "ngx-particles",
40
- "angular-particles",
41
- "particleground",
42
- "vue",
43
- "vuejs",
44
- "preact",
45
- "preactjs",
46
- "jquery",
47
- "angularjs",
48
- "angular",
49
- "typescript",
50
- "javascript",
51
- "animation",
52
- "web",
53
- "html5",
54
- "web-design",
55
- "webdesign",
56
- "css",
57
- "html",
58
- "css3",
59
- "animated",
60
- "background",
61
- "confetti",
62
- "canvas",
63
- "fireworks",
64
- "fireworks-js",
65
- "confetti-js",
66
- "confettijs",
67
- "fireworksjs",
68
- "canvas-confetti",
69
- "tsparticles-preset"
70
- ],
71
- "publishConfig": {
72
- "directory": "dist",
73
- "linkDirectory": true
74
- },
75
- "author": "Matteo Bruni <matteo.bruni@me.com>",
76
- "license": "MIT",
77
- "bugs": {
78
- "url": "https://github.com/tsparticles/empty-template/issues"
79
- },
80
- "main": "dist/cjs/index.js",
81
- "module": "dist/esm/index.js",
82
- "types": "dist/types/index.d.ts",
83
- "prettier": "@tsparticles/prettier-config",
84
- "devDependencies": {
85
- "@babel/core": "^7.21.4",
86
- "@tsparticles/cli": "^1.3.3",
87
- "@tsparticles/eslint-config": "^1.11.0",
88
- "@tsparticles/prettier-config": "^1.9.0",
89
- "@tsparticles/tsconfig": "^1.12.0",
90
- "@tsparticles/webpack-plugin": "^1.13.0",
91
- "@types/webpack-env": "^1.18.0",
92
- "@typescript-eslint/eslint-plugin": "^5.59.0",
93
- "@typescript-eslint/parser": "^5.59.0",
94
- "babel-loader": "^9.1.2",
95
- "browserslist": "^4.21.5",
96
- "copyfiles": "^2.4.1",
97
- "eslint": "^8.38.0",
98
- "eslint-config-prettier": "^8.8.0",
99
- "prettier": "^2.8.7",
100
- "rimraf": "^5.0.0",
101
- "terser-webpack-plugin": "^5.3.7",
102
- "typescript": "^5.0.4",
103
- "webpack": "^5.79.0",
104
- "webpack-bundle-analyzer": "^4.8.0",
105
- "webpack-cli": "^5.0.1"
106
- },
107
- "dependencies": {
108
- "tsparticles-engine": "^2.9.3"
109
- }
2
+ "name": "@tsparticles/empty-template",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "description": "tsParticles empty template",
6
+ "homepage": "https://particles.js.org",
7
+ "scripts": {
8
+ "build": "tsparticles-cli build",
9
+ "build:ci": "tsparticles-cli build --ci",
10
+ "version": "tsparticles-cli build -d && git add package.dist.json",
11
+ "prepack": "pnpm run build"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/tsparticles/empty-template.git"
16
+ },
17
+ "keywords": [
18
+ "front-end",
19
+ "frontend",
20
+ "tsparticles",
21
+ "particles.js",
22
+ "particlesjs",
23
+ "particles",
24
+ "particle",
25
+ "canvas",
26
+ "jsparticles",
27
+ "xparticles",
28
+ "particles-js",
29
+ "particles-bg",
30
+ "particles-bg-vue",
31
+ "particles-ts",
32
+ "particles.ts",
33
+ "react-particles-js",
34
+ "react-particles.js",
35
+ "react-particles",
36
+ "react",
37
+ "reactjs",
38
+ "vue-particles",
39
+ "ngx-particles",
40
+ "angular-particles",
41
+ "particleground",
42
+ "vue",
43
+ "vuejs",
44
+ "preact",
45
+ "preactjs",
46
+ "jquery",
47
+ "angularjs",
48
+ "angular",
49
+ "typescript",
50
+ "javascript",
51
+ "animation",
52
+ "web",
53
+ "html5",
54
+ "web-design",
55
+ "webdesign",
56
+ "css",
57
+ "html",
58
+ "css3",
59
+ "animated",
60
+ "background",
61
+ "confetti",
62
+ "canvas",
63
+ "fireworks",
64
+ "fireworks-js",
65
+ "confetti-js",
66
+ "confettijs",
67
+ "fireworksjs",
68
+ "canvas-confetti",
69
+ "tsparticles-preset"
70
+ ],
71
+ "publishConfig": {
72
+ "directory": "dist",
73
+ "linkDirectory": true
74
+ },
75
+ "author": "Matteo Bruni <matteo.bruni@me.com>",
76
+ "license": "MIT",
77
+ "bugs": {
78
+ "url": "https://github.com/tsparticles/empty-template/issues"
79
+ },
80
+ "main": "dist/cjs/index.js",
81
+ "module": "dist/esm/index.js",
82
+ "types": "dist/types/index.d.ts",
83
+ "prettier": "@tsparticles/prettier-config",
84
+ "devDependencies": {
85
+ "@babel/core": "^7.22.1",
86
+ "@tsparticles/cli": "1.5.1",
87
+ "@tsparticles/eslint-config": "^1.12.1",
88
+ "@tsparticles/prettier-config": "^1.10.0",
89
+ "@tsparticles/tsconfig": "^1.13.0",
90
+ "@tsparticles/webpack-plugin": "^1.14.1",
91
+ "@types/webpack-env": "^1.18.1",
92
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
93
+ "@typescript-eslint/parser": "^5.59.8",
94
+ "babel-loader": "^9.1.2",
95
+ "browserslist": "^4.21.7",
96
+ "copyfiles": "^2.4.1",
97
+ "eslint": "^8.42.0",
98
+ "eslint-config-prettier": "^8.8.0",
99
+ "prettier": "^2.8.8",
100
+ "rimraf": "^5.0.1",
101
+ "terser-webpack-plugin": "^5.3.9",
102
+ "typescript": "^5.1.3",
103
+ "webpack": "^5.85.0",
104
+ "webpack-bundle-analyzer": "^4.8.0",
105
+ "webpack-cli": "^5.0.1"
106
+ },
107
+ "dependencies": {
108
+ "tsparticles-engine": "^2.10.1"
109
+ }
110
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "tsparticles-cli": "dist/cli.js"
@@ -10,31 +10,32 @@
10
10
  },
11
11
  "prettier": "@tsparticles/prettier-config",
12
12
  "dependencies": {
13
- "@tsparticles/eslint-config": "^1.11.0",
14
- "@tsparticles/prettier-config": "^1.9.0",
15
- "@tsparticles/tsconfig": "^1.12.0",
16
- "@tsparticles/webpack-plugin": "^1.13.0",
17
- "@typescript-eslint/eslint-plugin": "^5.59.0",
18
- "@typescript-eslint/parser": "^5.59.0",
13
+ "@tsparticles/eslint-config": "^1.12.1",
14
+ "@tsparticles/prettier-config": "^1.10.0",
15
+ "@tsparticles/tsconfig": "^1.13.0",
16
+ "@tsparticles/webpack-plugin": "^1.14.1",
17
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
18
+ "@typescript-eslint/parser": "^5.59.8",
19
19
  "commander": "^10.0.1",
20
- "eslint": "^8.38.0",
20
+ "eslint": "^8.42.0",
21
21
  "eslint-config-prettier": "^8.8.0",
22
- "eslint-plugin-jsdoc": "^44.0.0",
22
+ "eslint-plugin-jsdoc": "^46.2.2",
23
23
  "eslint-plugin-tsdoc": "^0.2.17",
24
24
  "fs-extra": "^11.1.1",
25
25
  "klaw": "^4.1.0",
26
- "prettier": "^2.8.7",
26
+ "path-scurry": "^1.9.2",
27
+ "prettier": "^2.8.8",
27
28
  "prompts": "^2.4.2",
28
- "rimraf": "^5.0.0",
29
- "typescript": "^5.0.4",
30
- "webpack": "^5.79.0"
29
+ "rimraf": "^5.0.1",
30
+ "typescript": "^5.1.3",
31
+ "webpack": "^5.85.0"
31
32
  },
32
33
  "devDependencies": {
33
- "@types/eslint": "^8.37.0",
34
+ "@types/eslint": "^8.40.0",
34
35
  "@types/fs-extra": "^11.0.1",
35
36
  "@types/klaw": "^3.0.3",
36
- "@types/node": "^18.15.11",
37
- "@types/prettier": "^2.7.2",
37
+ "@types/node": "^20.2.5",
38
+ "@types/prettier": "^2.7.3",
38
39
  "@types/prompts": "^2.4.4"
39
40
  },
40
41
  "description": "[![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)",
@@ -53,6 +54,7 @@
53
54
  "build:ts:cjs": "tsc -p src",
54
55
  "build": "pnpm run clear:dist && pnpm run prettify:src && pnpm run lint && pnpm run compile && pnpm run prettify:readme && chmod +x dist/cli.js && chmod +x dist/build/build.js && chmod +x dist/create/create.js && chmod +x dist/create/preset/preset.js",
55
56
  "build:ci": "pnpm run clear:dist && pnpm run prettify:ci:src && pnpm run lint:ci && pnpm run compile && pnpm run prettify:ci:readme",
56
- "clear:dist": "rimraf ./dist"
57
+ "clear:dist": "rimraf ./dist",
58
+ "version": "node scripts/postversion.js && git add files/empty-project/package.json"
57
59
  }
58
60
  }
@@ -0,0 +1,27 @@
1
+ const pkg = require("../package.json");
2
+ const fs = require("fs-extra");
3
+ const path = require("path");
4
+
5
+ const emptyProjectPkgPath = path.join(__dirname, "..", "files", "empty-project", "package.json");
6
+
7
+ (async () => {
8
+ await fs.readFile(emptyProjectPkgPath, "utf8", (err, data) => {
9
+ if (err) {
10
+ console.error(err);
11
+
12
+ return;
13
+ }
14
+
15
+ const obj = JSON.parse(data);
16
+
17
+ obj["devDependencies"]["@tsparticles/cli"] = pkg.version;
18
+
19
+ const result = JSON.stringify(obj, undefined, 2);
20
+
21
+ fs.writeFile(emptyProjectPkgPath, `${result}\n`, "utf8", (err) => {
22
+ if (err) {
23
+ console.error(err);
24
+ }
25
+ });
26
+ });
27
+ })();