Skip to content

Commit 26d2863

Browse files
pkp/pkp-lib#8919 WIP moving from webpack to vite
1 parent ca93bec commit 26d2863

9 files changed

+11068
-23445
lines changed

.eslintrc.cjs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution');
3+
4+
module.exports = {
5+
root: true,
6+
env: {
7+
node: true,
8+
},
9+
extends: [
10+
'plugin:vue/vue3-essential',
11+
'eslint:recommended',
12+
'@vue/eslint-config-prettier/skip-formatting',
13+
],
14+
globals: {
15+
$: true,
16+
pkp: true,
17+
},
18+
parserOptions: {
19+
ecmaVersion: 'latest',
20+
},
21+
rules: {
22+
'vue/multi-word-component-names': 'off',
23+
'no-unused-vars': [
24+
'error',
25+
{
26+
args: 'none',
27+
},
28+
],
29+
},
30+
};

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.js/index.html

Whitespace-only changes.

js/load.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* using the `@` symbol are aliased to `lib/ui-library/src`.
1010
*/
1111
import PkpLoad from '../lib/pkp/js/load.js';
12-
12+
import '@/styles/_global.less';
1313
// Import controllers used by OJS
1414
import Container from '@/components/Container/Container.vue';
1515
import AdvancedSearchReviewerContainer from '@/components/Container/AdvancedSearchReviewerContainer.vue';
@@ -67,7 +67,3 @@ window.pkp = Object.assign(PkpLoad, {
6767
SubmissionsPage,
6868
},
6969
});
70-
71-
// Required by the URN plugin
72-
window.pkp.Vue.component('field-text', FieldText);
73-
window.pkp.Vue.component('field-pub-id', FieldPubId);

0 commit comments

Comments
 (0)