Skip to content

Commit ca3ec13

Browse files
authored
Chore: Implement toolchain with extension-scripts (#94)
1 parent 339bf11 commit ca3ec13

File tree

8 files changed

+18715
-9890
lines changed

8 files changed

+18715
-9890
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ jobs:
2020
run: npm install -g npm@8
2121
- name: Install dependencies
2222
run: npm ci
23-
- name: Build
24-
run: npm run build
25-
- name: Documention
26-
run: npm run docs
23+
- name: Test
24+
run: npm test

package-lock.json

Lines changed: 18689 additions & 9688 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,25 @@
66
"contributors": [
77
"Ivan Popelyshev <[email protected]>"
88
],
9-
"source": "./src/index.ts",
109
"main": "./lib/index.js",
1110
"module": "./lib/index.mjs",
1211
"types": "./lib/index.d.ts",
13-
"bundle": "./dist/pixi-layers.js",
1412
"exports": {
1513
".": {
1614
"import": "./lib/index.mjs",
1715
"require": "./lib/index.js",
1816
"types": "./lib/index.d.ts"
1917
}
2018
},
21-
"namespace": "PIXI.layers",
19+
"extensionConfig": {
20+
"lint": ["src"],
21+
"namespace": "PIXI.layers",
22+
"docsName": "PixiJS Layers",
23+
"docsCopyright": "Copyright &copy; 2015 - 2022 Ivan Popelyshev",
24+
"docsTitle": "PixiJS Layers API Documentation",
25+
"docsDescription": "Documentation for PixiJS Layers library",
26+
"docsKeyword": "docs, documentation, pixi, pixijs, rendering, pixi-layers, display, pixi-display, javascript, jsdoc"
27+
},
2228
"homepage": "http://www.pixijs.com/",
2329
"bugs": "https://github.com/pixijs/pixi-layers/issues",
2430
"license": "MIT",
@@ -27,29 +33,17 @@
2733
"url": "https://github.com/pixijs/pixi-layers.git"
2834
},
2935
"scripts": {
30-
"clean": "rimraf dist/* lib/*",
31-
"start": "run-s watch",
32-
"watch": "rollup -cw",
33-
"examples": "http-server . -o examples -s",
34-
"prebuild": "run-s clean lint types",
35-
"build": "rollup -c",
36-
"postbuild": "run-s build:types",
37-
"prebuild:types": "rimraf lib/**.d.ts",
38-
"build:types": "tsc --outDir lib --declaration --emitDeclarationOnly",
39-
"postbuild:types": "node ./scripts/fix-types",
40-
"lint": "eslint ./src",
41-
"types": "tsc -noEmit",
42-
"release:patch": "npm version patch && npm publish",
43-
"release:minor": "npm version minor && npm publish",
44-
"release:major": "npm version major && npm publish",
45-
"postversion": "run-s build",
46-
"postpublish": "run-s deploy && git push && git push --tags",
47-
"prepack": "clean-package",
48-
"postpack": "clean-package restore",
49-
"predocs": "rimraf docs/**",
50-
"docs": "webdoc -c webdoc.json -r README.md",
51-
"predeploy": "run-s docs",
52-
"deploy": "gh-pages -d . -s \"{dist,examples,docs}/**\" -f"
36+
"clean": "xs clean",
37+
"start": "xs serve",
38+
"watch": "xs watch",
39+
"build": "xs build",
40+
"lint": "xs lint",
41+
"lint:fix": "xs lint --fix",
42+
"types": "xs types",
43+
"release": "xs release",
44+
"docs": "xs docs",
45+
"test": "xs build,docs",
46+
"deploy": "xs deploy"
5347
},
5448
"publishConfig": {
5549
"access": "public"
@@ -58,31 +52,11 @@
5852
"node": ">=16",
5953
"npm": ">=8"
6054
},
61-
"clean-package": {
62-
"indent": 2,
63-
"remove": [
64-
"clean-package",
65-
"scripts",
66-
"engines",
67-
"devDependencies",
68-
"eslintConfig",
69-
"source",
70-
"eslintConfig"
71-
]
72-
},
7355
"files": [
7456
"dist/",
7557
"lib/",
7658
"global.d.ts"
7759
],
78-
"eslintConfig": {
79-
"rules": {
80-
"@typescript-eslint/triple-slash-reference": 0
81-
},
82-
"extends": [
83-
"@pixi/eslint-config"
84-
]
85-
},
8660
"peerDependencies": {
8761
"@pixi/canvas-renderer": "^7.0.0",
8862
"@pixi/core": "^7.0.0",
@@ -92,17 +66,6 @@
9266
"@pixi/canvas-renderer": "^7.0.0",
9367
"@pixi/core": "^7.0.0",
9468
"@pixi/display": "^7.0.0",
95-
"@pixi/eslint-config": "^4.0.1",
96-
"@pixi/webdoc-template": "^1.5.4",
97-
"@webdoc/cli": "^2.2.0",
98-
"clean-package": "^1.0.1",
99-
"eslint": "^7.21.0",
100-
"gh-pages": "^4.0.0",
101-
"http-server": "^14.1.1",
102-
"npm-run-all": "^4.1.5",
103-
"rimraf": "^2.5.3",
104-
"rollup": "^2.50.5",
105-
"rollup-plugin-esbuild": "^4.10.1",
106-
"typescript": "^4.3.2"
69+
"@pixi/extension-scripts": "^1.4.0"
10770
}
10871
}

rollup.config.js

Lines changed: 0 additions & 73 deletions
This file was deleted.

scripts/fix-types.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable spaced-comment */
2+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
23
/// <reference path="../global.d.ts" />
34

45
import { applyDisplayMixin, applyContainerRenderMixin, applyParticleMixin } from './DisplayMixin';

tsconfig.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
{
2+
"extends": "@pixi/extension-scripts/lib/configs/tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES2020",
4-
"noImplicitAny": true,
5-
"removeComments": true,
4+
"strict": false,
65
"preserveConstEnums": true,
7-
"sourceMap": true,
8-
"inlineSources": true,
9-
"esModuleInterop": true,
10-
"moduleResolution": "node",
11-
"allowSyntheticDefaultImports": true,
126
"baseUrl": "./",
137
"paths": {
148
"@pixi/layers": [
@@ -18,10 +12,5 @@
1812
},
1913
"include": [
2014
"src/**/*"
21-
],
22-
"exclude": [
23-
"node_modules/**/*",
24-
"dist",
25-
"lib"
2615
]
2716
}

webdoc.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)