Skip to content

Commit

Permalink
REFACTOR: project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hosuaby committed Jan 15, 2025
1 parent cecd32b commit 4dc64d8
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/web/index.js → dist/player/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/player/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/script/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/script/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/web/index.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import vue from 'rollup-plugin-vue';
import copy from 'rollup-plugin-copy';

export default [{
input: 'src/web/index.ts',
input: 'src/player/index.ts',
output: {
file: 'dist/web/index.js',
file: 'dist/player/index.js',
format: 'iife',
sourcemap: true,
globals: {
Expand All @@ -17,7 +17,7 @@ export default [{
},
plugins: [
typescript({
tsconfig: './src/web/tsconfig.json',
tsconfig: './src/player/tsconfig.json',
}),
vue(),
resolve({
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/web/css-processor.ts → src/player/css-processor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AbstractDynamicCssRule, createDynamicCssRule, Filter, FilterType} from '../script/dynamic-css-rules';
import {AbstractDynamicCssRule, createDynamicCssRule, Filter, FilterType} from '../common/dynamic-css-rules';

const dynamicCssClassPrefix = 'pup-';
const dynamicCssClassPattern = /^\.pup-(\w+)((?:-[^-]+)+)$/;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/script/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const assetsFolder = path.join(__dirname, '..', '..', 'assets');
export const defaultStylesCss = path.join(assetsFolder, 'captions.css');
export const indexHtml = path.join(assetsFolder, 'index.html');

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

export const nodeModules = path.join(__dirname, '..', '..', 'node_modules');
2 changes: 1 addition & 1 deletion src/types/window.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Caption} from '../common/captions';
import {Player} from '../web/player';
import {Player} from '../player/player';
import {PlayerArgs} from '../common/player-args';

declare global {
Expand Down
2 changes: 1 addition & 1 deletion test/web/css-processor.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect} from 'chai';
import {CssProcessor} from '../../src/web/css-processor';
import {CssProcessor} from '../../src/player/css-processor';

describe('CssProcessor', () => {
it('parseFilter', () => {
Expand Down

0 comments on commit 4dc64d8

Please sign in to comment.