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

pixi 5.3.8 changes and build #445

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions bundles/all-3.8/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
const { main } = require('@pixi-spine/rollup-config/main');
const { main } = require("@pixi-spine/rollup-config/main");

const results = main({
globals: {
'@pixi-spine/base': 'PIXI.spine',
'@pixi-spine/runtime-3.8': 'PIXI.spine38',
'@pixi-spine/loader-base': 'PIXI.spine',
'@pixi-spine/loader-3.8': 'PIXI.spine',
"@pixi-spine/base": "PIXI.spine",
"@pixi-spine/runtime-3.8": "PIXI.spine38",
"@pixi-spine/loader-base": "PIXI.spine",
"@pixi-spine/loader-3.8": "PIXI.spine",
},
});

// TODO: get sorted deps of all our @pixi-spine deps

const umdDeps = ['@pixi/app', '@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];
const umdDeps = ["pixi.js-legacy"];

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
const license1 =
"is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license";
const licenseSpine =
"is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license";

results.forEach((entry) => {
if (entry.output.banner) {
entry.output.banner = entry.output.banner.replace(license1, licenseSpine);
entry.output.banner = entry.output.banner.replace(
license1,
licenseSpine
);
}
if (entry.output.format === 'umd') {
entry.external = entry.external.filter((moduleName) => {
return moduleName.indexOf('@pixi-spine') !== 0;
}).concat(umdDeps);
if (entry.output.format === "umd") {
entry.external = entry.external
.filter((moduleName) => {
return moduleName.indexOf("@pixi-spine") !== 0;
})
.concat(umdDeps);
}
})
});

module.exports = results;
36 changes: 21 additions & 15 deletions bundles/all-4.0/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
const { main } = require('@pixi-spine/rollup-config/main');
const { main } = require("@pixi-spine/rollup-config/main");

const results = main({
globals: {
'@pixi-spine/base': 'PIXI.spine',
'@pixi-spine/runtime-4.0': 'PIXI.spine40',
'@pixi-spine/loader-base': 'PIXI.spine',
'@pixi-spine/loader-4.0': 'PIXI.spine',
"@pixi-spine/base": "PIXI.spine",
"@pixi-spine/runtime-4.0": "PIXI.spine40",
"@pixi-spine/loader-base": "PIXI.spine",
"@pixi-spine/loader-4.0": "PIXI.spine",
},
});

// TODO: get sorted deps of all our @pixi-spine deps

const umdDeps = ['@pixi/app', '@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];
const umdDeps = ["pixi.js-legacy"];

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
const license1 =
"is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license";
const licenseSpine =
"is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license";

results.forEach((entry) => {
if (entry.output.banner) {
entry.output.banner = entry.output.banner.replace(license1, licenseSpine);
entry.output.banner = entry.output.banner.replace(
license1,
licenseSpine
);
}
if (entry.output.format === 'umd') {
entry.external = entry.external.filter((moduleName) => {
return moduleName.indexOf('@pixi-spine') !== 0;
}).concat(umdDeps);
if (entry.output.format === "umd") {
entry.external = entry.external
.filter((moduleName) => {
return moduleName.indexOf("@pixi-spine") !== 0;
})
.concat(umdDeps);
}
})
});

module.exports = results;
40 changes: 23 additions & 17 deletions bundles/pixi-spine/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
const { main } = require('@pixi-spine/rollup-config/main');
const { main } = require("@pixi-spine/rollup-config/main");

const results = main({
globals: {
'@pixi-spine/base': 'PIXI.spine',
'@pixi-spine/runtime-3.7': 'PIXI.spine37',
'@pixi-spine/runtime-3.8': 'PIXI.spine38',
'@pixi-spine/runtime-4.0': 'PIXI.spine40',
'@pixi-spine/loader-base': 'PIXI.spine',
'@pixi-spine/loader-uni': 'PIXI.spine',
"@pixi-spine/base": "PIXI.spine",
"@pixi-spine/runtime-3.7": "PIXI.spine37",
"@pixi-spine/runtime-3.8": "PIXI.spine38",
"@pixi-spine/runtime-4.0": "PIXI.spine40",
"@pixi-spine/loader-base": "PIXI.spine",
"@pixi-spine/loader-uni": "PIXI.spine",
},
});

// TODO: get sorted deps of all our @pixi-spine deps

const umdDeps = ['@pixi/app', '@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];
const umdDeps = ["pixi.js-legacy"];

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
const license1 =
"is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license";
const licenseSpine =
"is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license";

results.forEach((entry) => {
if (entry.output.banner) {
entry.output.banner = entry.output.banner.replace(license1, licenseSpine);
entry.output.banner = entry.output.banner.replace(
license1,
licenseSpine
);
}
if (entry.output.format === 'umd') {
entry.external = entry.external.filter((moduleName) => {
return moduleName.indexOf('@pixi-spine') !== 0;
}).concat(umdDeps);
if (entry.output.format === "umd") {
entry.external = entry.external
.filter((moduleName) => {
return moduleName.indexOf("@pixi-spine") !== 0;
})
.concat(umdDeps);
}
})
});

module.exports = results;
12 changes: 1 addition & 11 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,7 @@
"namespace": "PIXI.spine",
"types": "./index.d.ts",
"peerDependencies": {
"@pixi/constants": "^6.1.0",
"@pixi/core": "^6.1.0",
"@pixi/display": "^6.1.0",
"@pixi/graphics": "^6.1.0",
"@pixi/math": "^6.1.0",
"@pixi/mesh": "^6.1.0",
"@pixi/mesh-extras": "^6.1.0",
"@pixi/settings": "^6.1.0",
"@pixi/runner": "^6.1.0",
"@pixi/sprite": "^6.1.0",
"@pixi/utils": "^6.1.0"
"pixi.js-legacy": "5.3.8"
},
"scripts": {
"build": "rollup -c node_modules/@pixi-spine/rollup-config/index.js --silent",
Expand Down
Loading