Skip to content

Commit

Permalink
Chore: Implement toolchain with extension-scripts (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Jan 9, 2023
1 parent 339bf11 commit ca3ec13
Show file tree
Hide file tree
Showing 8 changed files with 18,715 additions and 9,890 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ jobs:
run: npm install -g npm@8
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Documention
run: npm run docs
- name: Test
run: npm test
28,377 changes: 18,689 additions & 9,688 deletions package-lock.json

Large diffs are not rendered by default.

79 changes: 21 additions & 58 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,25 @@
"contributors": [
"Ivan Popelyshev <[email protected]>"
],
"source": "./src/index.ts",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./lib/index.d.ts",
"bundle": "./dist/pixi-layers.js",
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.js",
"types": "./lib/index.d.ts"
}
},
"namespace": "PIXI.layers",
"extensionConfig": {
"lint": ["src"],
"namespace": "PIXI.layers",
"docsName": "PixiJS Layers",
"docsCopyright": "Copyright &copy; 2015 - 2022 Ivan Popelyshev",
"docsTitle": "PixiJS Layers API Documentation",
"docsDescription": "Documentation for PixiJS Layers library",
"docsKeyword": "docs, documentation, pixi, pixijs, rendering, pixi-layers, display, pixi-display, javascript, jsdoc"
},
"homepage": "http://www.pixijs.com/",
"bugs": "https://github.com/pixijs/pixi-layers/issues",
"license": "MIT",
Expand All @@ -27,29 +33,17 @@
"url": "https://github.com/pixijs/pixi-layers.git"
},
"scripts": {
"clean": "rimraf dist/* lib/*",
"start": "run-s watch",
"watch": "rollup -cw",
"examples": "http-server . -o examples -s",
"prebuild": "run-s clean lint types",
"build": "rollup -c",
"postbuild": "run-s build:types",
"prebuild:types": "rimraf lib/**.d.ts",
"build:types": "tsc --outDir lib --declaration --emitDeclarationOnly",
"postbuild:types": "node ./scripts/fix-types",
"lint": "eslint ./src",
"types": "tsc -noEmit",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"postversion": "run-s build",
"postpublish": "run-s deploy && git push && git push --tags",
"prepack": "clean-package",
"postpack": "clean-package restore",
"predocs": "rimraf docs/**",
"docs": "webdoc -c webdoc.json -r README.md",
"predeploy": "run-s docs",
"deploy": "gh-pages -d . -s \"{dist,examples,docs}/**\" -f"
"clean": "xs clean",
"start": "xs serve",
"watch": "xs watch",
"build": "xs build",
"lint": "xs lint",
"lint:fix": "xs lint --fix",
"types": "xs types",
"release": "xs release",
"docs": "xs docs",
"test": "xs build,docs",
"deploy": "xs deploy"
},
"publishConfig": {
"access": "public"
Expand All @@ -58,31 +52,11 @@
"node": ">=16",
"npm": ">=8"
},
"clean-package": {
"indent": 2,
"remove": [
"clean-package",
"scripts",
"engines",
"devDependencies",
"eslintConfig",
"source",
"eslintConfig"
]
},
"files": [
"dist/",
"lib/",
"global.d.ts"
],
"eslintConfig": {
"rules": {
"@typescript-eslint/triple-slash-reference": 0
},
"extends": [
"@pixi/eslint-config"
]
},
"peerDependencies": {
"@pixi/canvas-renderer": "^7.0.0",
"@pixi/core": "^7.0.0",
Expand All @@ -92,17 +66,6 @@
"@pixi/canvas-renderer": "^7.0.0",
"@pixi/core": "^7.0.0",
"@pixi/display": "^7.0.0",
"@pixi/eslint-config": "^4.0.1",
"@pixi/webdoc-template": "^1.5.4",
"@webdoc/cli": "^2.2.0",
"clean-package": "^1.0.1",
"eslint": "^7.21.0",
"gh-pages": "^4.0.0",
"http-server": "^14.1.1",
"npm-run-all": "^4.1.5",
"rimraf": "^2.5.3",
"rollup": "^2.50.5",
"rollup-plugin-esbuild": "^4.10.1",
"typescript": "^4.3.2"
"@pixi/extension-scripts": "^1.4.0"
}
}
73 changes: 0 additions & 73 deletions rollup.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/fix-types.js

This file was deleted.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable spaced-comment */
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../global.d.ts" />

import { applyDisplayMixin, applyContainerRenderMixin, applyParticleMixin } from './DisplayMixin';
Expand Down
15 changes: 2 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"extends": "@pixi/extension-scripts/lib/configs/tsconfig.json",
"compilerOptions": {
"target": "ES2020",
"noImplicitAny": true,
"removeComments": true,
"strict": false,
"preserveConstEnums": true,
"sourceMap": true,
"inlineSources": true,
"esModuleInterop": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"paths": {
"@pixi/layers": [
Expand All @@ -18,10 +12,5 @@
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules/**/*",
"dist",
"lib"
]
}
45 changes: 0 additions & 45 deletions webdoc.json

This file was deleted.

0 comments on commit ca3ec13

Please sign in to comment.