File tree Expand file tree Collapse file tree 4 files changed +27
-24
lines changed Expand file tree Collapse file tree 4 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 17
17
- name : Set up Node.js 18.x
18
18
uses : actions/setup-node@v4
19
19
with :
20
- node-version : 22 .x
20
+ node-version : 18 .x
21
21
cache : ' npm'
22
22
registry-url : ' https://registry.npmjs.org/'
23
23
27
27
- name : Build PlayCanvas Attribute Parser
28
28
run : npm run build
29
29
30
- - name : Build PlayCanvas Attribute Parser Types
31
- run : npm run build:types
32
-
33
- - name : Run Publint
34
- run : npm run publint
35
-
36
30
lint :
37
31
name : Lint
38
32
runs-on : ubuntu-latest
43
37
- name : Set up Node.js 18.x
44
38
uses : actions/setup-node@v4
45
39
with :
46
- node-version : 22 .x
40
+ node-version : 18 .x
47
41
cache : ' npm'
48
42
registry-url : ' https://registry.npmjs.org/'
49
43
63
57
- name : Set up Node.js 18.x
64
58
uses : actions/setup-node@v4
65
59
with :
66
- node-version : 22 .x
60
+ node-version : 18 .x
67
61
cache : ' npm'
68
62
registry-url : ' https://registry.npmjs.org/'
69
63
Original file line number Diff line number Diff line change 16
16
- name : Set up Node.js 18.x
17
17
uses : actions/setup-node@v4
18
18
with :
19
- node-version : 22 .x
19
+ node-version : 18 .x
20
20
cache : ' npm'
21
21
registry-url : ' https://registry.npmjs.org/'
22
22
28
28
env :
29
29
NODE_ENV : production
30
30
31
- - name : Build PlayCanvas Attribute Parser Types
32
- run : npm run build:types
31
+ - name : Run Publint
32
+ run : npm run publint
33
33
34
34
- name : Publish to npm
35
35
run : npm publish
Original file line number Diff line number Diff line change 1
1
# PlayCanvas Attribute Parser
2
2
3
+ [ ![ NPM Version] ( https://img.shields.io/npm/v/@playcanvas/attribute-parser )] ( https://www.npmjs.com/package/@playcanvas/attribute-parser )
4
+ [ ![ NPM Downloads] ( https://img.shields.io/npm/dw/@playcanvas/attribute-parser )] ( https://npmtrends.com/@playcanvas/attribute-parser )
5
+ [ ![ License] ( https://img.shields.io/npm/l/@playcanvas/attribute-parser )] ( https://github.com/playcanvas/attribute-parser/blob/main/LICENSE )
6
+ [ ![ Discord] ( https://img.shields.io/badge/Discord-5865F2?style=flat&logo=discord&logoColor=white&color=black )] ( https://discord.gg/RSaMRzg )
7
+ [ ![ Reddit] ( https://img.shields.io/badge/Reddit-FF4500?style=flat&logo=reddit&logoColor=white&color=black )] ( https://www.reddit.com/r/PlayCanvas )
8
+ [ ![ X] ( https://img.shields.io/badge/X-000000?style=flat&logo=x&logoColor=white&color=black )] ( https://x.com/intent/follow?screen_name=playcanvas )
9
+
10
+ | [ User Manual] ( https://developer.playcanvas.com ) | [ API Reference] ( https://api.playcanvas.com ) | [ Blog] ( https://blog.playcanvas.com ) | [ Forum] ( https://forum.playcanvas.com ) |
11
+
3
12
This is the official JSDoc attribute parser used in the PlayCanvas Editor.
4
13
5
14
It collects metadata from user scripts by parsing ` @attribute ` JSDoc annotations. These attributes enable the PlayCanvas Editor to expose UI controls and contextual information for your script properties.
Original file line number Diff line number Diff line change 34
34
" README.md" ,
35
35
" LICENSE.md"
36
36
],
37
- "dependencies" : {
38
- "@playcanvas/eslint-config" : " ^2.0.0" ,
39
- "@typescript/vfs" : " ^1.6.0" ,
40
- "eslint" : " ^9.0.0" ,
41
- "typescript" : " ^5.5.3"
42
- },
43
37
"devDependencies" : {
44
38
"@rollup/plugin-commonjs" : " 28.0.6" ,
45
39
"@rollup/plugin-node-resolve" : " 16.0.1" ,
51
45
"rollup" : " 4.46.2" ,
52
46
"publint" : " 0.3.12"
53
47
},
48
+ "dependencies" : {
49
+ "@playcanvas/eslint-config" : " ^2.0.0" ,
50
+ "@typescript/vfs" : " ^1.6.0" ,
51
+ "eslint" : " ^9.0.0" ,
52
+ "typescript" : " ^5.5.3"
53
+ },
54
54
"scripts" : {
55
- "test" : " mocha test/**/*.test.js --timeout 10000" ,
56
- "build" : " rollup -c" ,
55
+ "build" : " rollup -c && npm run build:types" ,
57
56
"build:types" : " tsc -p tsconfig.build.json" ,
58
- "watch" : " rollup -c -w" ,
59
- "lint" : " eslint src rollup.config.mjs" ,
60
- "lint:fix" : " eslint src rollup.config.mjs --fix" ,
57
+ "lint" : " eslint src rollup.config.mjs eslint.config.mjs" ,
58
+ "lint:fix" : " eslint src rollup.config.mjs eslint.config.mjs --fix" ,
59
+ "publint" : " publint" ,
60
+ "test" : " mocha test/**/*.test.js --timeout 10000" ,
61
61
"type:check" : " tsc --noEmit" ,
62
- "publint " : " publint "
62
+ "watch " : " rollup -c -w "
63
63
},
64
64
"engines" : {
65
65
"node" : " >=18.0.0"
You can’t perform that action at this time.
0 commit comments