Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dep changes to pixi-v7 branch #71

Merged
merged 44 commits into from
Sep 30, 2023
Merged

Conversation

mggower
Copy link
Collaborator

@mggower mggower commented Sep 14, 2023

No description provided.

@mggower mggower changed the base branch from feature/pixi-v7 to master September 28, 2023 18:54
src/index.ts Fixed Show fixed Hide fixed
src/index.ts Fixed Show fixed Hide fixed
package.json Outdated
"dist"
],
"source": "src/index.umd.ts",
"main": "./legacy/main.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather than name the umd directory legacy let's just name it umd (umd is just a different module format, but isn't necessarily legacy or meant to work only w/ older browsers. e.g. we introduced it to work w/ the code sandbox we were using to host examples b/c that was easier than getting it to work w/ npm directly). and it looks like the umd build output is index.js not main.js, so just need to be ./dist/umd/index.js

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, not positive, but I think types needs to be ./dist/index.d.ts.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally, rather than main/module, should we use get rid of main and module and just use exports? https://nodejs.org/api/packages.html#package-entry-points

package.json Outdated
@@ -2,13 +2,10 @@
"name": "@sayari/trellis",
"version": "0.7.0-rc.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be bumped to whatever the current rc tag is

package.json Outdated
"d3-color": "^3.1.0",
"d3-force": "^3.0.0",
"d3-hierarchy": "^3.1.2",
"d3-interpolate": "^3.0.1",
"fontfaceobserver": "^2.1.0",
"pixi.js-legacy": "^6.5.5"
"parcel": "^2.9.3",
"pixi.js": "^7.2.4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should only ship with one version of pixi, probably pixi.js-legacy. though note that I haven't checked if any of my new renderer stuff works w/ Canvas... if it doesn't/can't, then publishing this w/ the pixi-legacy canvas fallback isn't worth it.

package.json Outdated
"author": "James Conkling <[email protected]> jameslaneconkling.github.io",
"license": "ISC",
"dependencies": {
"@pixi/unsafe-eval": "^6.5.5",
"@pixi/events": "^6.5.10",
"@pixi/unsafe-eval": "^6.5.10",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to track the pixi.js version, 7.2.4

"examples:dev": "npm run clean && parcel examples/index.html",
"docs:dev": "npm run clean && parcel docs-src/index.html",
"docs:build": "rm -rf ./docs/ && parcel build ./docs-src/index.html --dist-dir docs/ --public-url https://sayari-analytics.github.io/trellis/ && cp ./docs-src/assets/og-image.png ./docs/"
},
"targets": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think we can get rid of targets. this is a parcel-specific thing, but again, parcel only comes in to play w/ the umd build, which just targets the single entrypoint file ./src/index.umd.ts

@jameslaneconkling jameslaneconkling merged commit 703b217 into master Sep 30, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants