-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to NodeJS 20.x (and Vite) (#53)
* vite - new package.json. Front page loads * remove @statnett/vue-plotlty * front page looks OK * components converted * v1,v2 works * v3 mostly working * v4,v5,v6, v7, anim * calculators * V2 loads -- with some errors * V2 loads without errors :-) * upgrade Vite to 5.x, ESLint 9.x which deprecates @import and introduces @use instead * V1 viewer working =) * fix animation slider thumbgrabber * update github action to use new node
- Loading branch information
Showing
126 changed files
with
38,683 additions
and
37,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module.exports = { | ||
arrowParens: 'avoid', | ||
printWidth: 100, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
printWidth: 100, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
module.exports = { | ||
presets: ['@vue/cli-plugin-babel/preset'], | ||
presets: ['@babel/preset-env'], | ||
// For Jest not to be annoyed by 'import.meta.xxx' | ||
plugins: [ | ||
function () { | ||
return { | ||
visitor: { | ||
MetaProperty(path) { | ||
path.replaceWithSourceString('process') | ||
}, | ||
}, | ||
} | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
module.exports = { | ||
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel', | ||
testEnvironment: 'jsdom', | ||
moduleFileExtensions: ['js', 'ts', 'json', 'vue'], | ||
transform: { | ||
'^.+\\.ts$': 'ts-jest', | ||
'^.+\\.vue$': '@vue/vue2-jest', | ||
}, | ||
moduleNameMapper: { | ||
'^@/(.*)$': '<rootDir>/src/$1', | ||
// '^@shared(.*)$': '<rootDir>/shared$1', | ||
// '^@components(.*)$': '<rootDir>/shared/components$1', | ||
}, | ||
} |
Oops, something went wrong.