Skip to content

Commit 4dc64d8

Browse files
committed
REFACTOR: project structure
1 parent cecd32b commit 4dc64d8

16 files changed

+11
-11
lines changed

dist/web/index.js renamed to dist/player/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/player/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/script/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/script/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web/index.js.map

-1
This file was deleted.

rollup.config.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import vue from 'rollup-plugin-vue';
66
import copy from 'rollup-plugin-copy';
77

88
export default [{
9-
input: 'src/web/index.ts',
9+
input: 'src/player/index.ts',
1010
output: {
11-
file: 'dist/web/index.js',
11+
file: 'dist/player/index.js',
1212
format: 'iife',
1313
sourcemap: true,
1414
globals: {
@@ -17,7 +17,7 @@ export default [{
1717
},
1818
plugins: [
1919
typescript({
20-
tsconfig: './src/web/tsconfig.json',
20+
tsconfig: './src/player/tsconfig.json',
2121
}),
2222
vue(),
2323
resolve({
File renamed without changes.
File renamed without changes.

src/web/css-processor.ts renamed to src/player/css-processor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {AbstractDynamicCssRule, createDynamicCssRule, Filter, FilterType} from '../script/dynamic-css-rules';
1+
import {AbstractDynamicCssRule, createDynamicCssRule, Filter, FilterType} from '../common/dynamic-css-rules';
22

33
const dynamicCssClassPrefix = 'pup-';
44
const dynamicCssClassPattern = /^\.pup-(\w+)((?:-[^-]+)+)$/;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/script/assets.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export const assetsFolder = path.join(__dirname, '..', '..', 'assets');
44
export const defaultStylesCss = path.join(assetsFolder, 'captions.css');
55
export const indexHtml = path.join(assetsFolder, 'index.html');
66

7-
export const indexJs = path.join(__dirname, '..', 'web', 'index.js');
7+
export const indexJs = path.join(__dirname, '..', 'player', 'index.js');
88

99
export const nodeModules = path.join(__dirname, '..', '..', 'node_modules');

src/types/window.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Caption} from '../common/captions';
2-
import {Player} from '../web/player';
2+
import {Player} from '../player/player';
33
import {PlayerArgs} from '../common/player-args';
44

55
declare global {

test/web/css-processor.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expect} from 'chai';
2-
import {CssProcessor} from '../../src/web/css-processor';
2+
import {CssProcessor} from '../../src/player/css-processor';
33

44
describe('CssProcessor', () => {
55
it('parseFilter', () => {

0 commit comments

Comments
 (0)