Skip to content

Commit 7702526

Browse files
committed
Moved to runtimes folder and added license
1 parent 217e273 commit 7702526

3 files changed

Lines changed: 43 additions & 12 deletions

File tree

plugins/spine/src/runtimes/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Spine Runtimes Software License v2.5
2+
3+
Copyright (c) 2013-2016, Esoteric Software
4+
All rights reserved.
5+
6+
You are granted a perpetual, non-exclusive, non-sublicensable, and
7+
non-transferable license to use, install, execute, and perform the Spine
8+
Runtimes software and derivative works solely for personal or internal
9+
use. Without the written permission of Esoteric Software (see Section 2 of
10+
the Spine Software License Agreement), you may not (a) modify, translate,
11+
adapt, or develop new applications using the Spine Runtimes or otherwise
12+
create derivative works or improvements of the Spine Runtimes or (b) remove,
13+
delete, alter, or obscure any trademarks or any copyright, trademark, patent,
14+
or other intellectual property or proprietary rights notices on or in the
15+
Software, including any copy thereof. Redistributions in binary or source
16+
form must include this license and terms.
17+
18+
THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE "AS IS" AND ANY EXPRESS OR
19+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
20+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
21+
EVENT SHALL ESOTERIC SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS INTERRUPTION, OR LOSS OF
24+
USE, DATA, OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27+
POSSIBILITY OF SUCH DAMAGE.

plugins/spine/webpack.config.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,36 @@ module.exports = {
2929
module: {
3030
rules: [
3131
{
32-
test: require.resolve('./src/spine-canvas.js'),
32+
test: require.resolve('./src/runtimes/spine-canvas.js'),
3333
use: 'imports-loader?this=>window'
3434
},
3535
{
36-
test: require.resolve('./src/spine-canvas.js'),
36+
test: require.resolve('./src/runtimes/spine-canvas.js'),
3737
use: 'exports-loader?spine'
3838
},
3939
{
40-
test: require.resolve('./src/spine-webgl.js'),
40+
test: require.resolve('./src/runtimes/spine-webgl.js'),
4141
use: 'imports-loader?this=>window'
4242
},
4343
{
44-
test: require.resolve('./src/spine-webgl.js'),
44+
test: require.resolve('./src/runtimes/spine-webgl.js'),
4545
use: 'exports-loader?spine'
4646
}
4747
]
4848
},
4949

5050
resolve: {
5151
alias: {
52-
'SpineCanvas': './spine-canvas.js',
53-
'SpineGL': './spine-webgl.js'
52+
'SpineCanvas': './runtimes/spine-canvas.js',
53+
'SpineGL': './runtimes/spine-webgl.js'
5454
},
5555
},
5656

5757
plugins: [
58+
new webpack.DefinePlugin({
59+
"typeof CANVAS_RENDERER": JSON.stringify(true),
60+
"typeof WEBGL_RENDERER": JSON.stringify(false)
61+
}),
5862
new CleanWebpackPlugin([ 'dist' ]),
5963
{
6064
apply: (compiler) => {

plugins/spine/webpack.dist.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ module.exports = {
3131
module: {
3232
rules: [
3333
{
34-
test: require.resolve('./src/spine-canvas.js'),
34+
test: require.resolve('./src/runtimes/spine-canvas.js'),
3535
use: 'imports-loader?this=>window'
3636
},
3737
{
38-
test: require.resolve('./src/spine-canvas.js'),
38+
test: require.resolve('./src/runtimes/spine-canvas.js'),
3939
use: 'exports-loader?spine'
4040
},
4141
{
42-
test: require.resolve('./src/spine-webgl.js'),
42+
test: require.resolve('./src/runtimes/spine-webgl.js'),
4343
use: 'imports-loader?this=>window'
4444
},
4545
{
46-
test: require.resolve('./src/spine-webgl.js'),
46+
test: require.resolve('./src/runtimes/spine-webgl.js'),
4747
use: 'exports-loader?spine'
4848
}
4949
]
5050
},
5151

5252
resolve: {
5353
alias: {
54-
'SpineCanvas': './spine-canvas.js',
55-
'SpineGL': './spine-webgl.js'
54+
'SpineCanvas': './runtimes/spine-canvas.js',
55+
'SpineGL': './runtimes/spine-webgl.js'
5656
},
5757
},
5858

0 commit comments

Comments
 (0)