Skip to content

Commit 4558ef7

Browse files
Move live2d to cubism2
1 parent 1be69ce commit 4558ef7

File tree

11 files changed

+35
-35
lines changed

11 files changed

+35
-35
lines changed

rollup.config.js

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,18 @@ function findCubismDir() {
1818

1919
const cubismDir = findCubismDir();
2020

21-
function banner() {
22-
return {
23-
name: 'banner',
24-
25-
renderChunk(code, chunk, outputOptions = {}) {
26-
return (
27-
`/*!
28-
* Live2D Widget
29-
* https://github.com/stevenjoezhang/live2d-widget
30-
*/
31-
` + code
32-
);
33-
},
34-
};
35-
}
36-
3721
export default {
3822
input: 'build/waifu-tips.js',
3923
output: {
4024
dir: 'dist/',
4125
format: 'esm',
4226
chunkFileNames: 'chunk/[name].js',
27+
sourcemap: true,
28+
banner: `/*!
29+
* Live2D Widget
30+
* https://github.com/stevenjoezhang/live2d-widget
31+
*/
32+
`
4333
},
4434
plugins: [
4535
alias({
@@ -54,7 +44,6 @@ export default {
5444
}
5545
]
5646
}),
57-
banner(),
5847
terser(),
5948
],
6049
context: 'this',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/live2d/index.js renamed to src/cubism2/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import MatrixStack from './utils/MatrixStack.js';
55
import LAppLive2DManager from './LAppLive2DManager.js';
66
import logger from '../logger.js';
77

8-
class Model {
8+
class Cubism2Model {
99
constructor() {
1010
this.live2DMgr = new LAppLive2DManager();
1111

@@ -311,4 +311,4 @@ class Model {
311311
}
312312
}
313313

314-
export default Model;
314+
export default Cubism2Model;
File renamed without changes.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
export { default as registerDrag } from './drag.js';
77
export { default as logger, LogLevel } from './logger.js';
8-
export { default as Model } from './live2d/index.js';
8+
export { default as Cubism2Model } from './cubism2/index.js';
99
export { default as tools, Tools } from './tools.js';
1010

1111
export * from './message.js';

0 commit comments

Comments
 (0)