Skip to content

Commit

Permalink
feat: Change of the bundler tool due to compatibility failure
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick committed Sep 9, 2021
1 parent 3d29e71 commit a4a40b6
Show file tree
Hide file tree
Showing 16 changed files with 28,698 additions and 14,945 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules/
node_modules
.DS_Store
dist
dist-ssr
*.local
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["johnsoncodehk.volar"]
}
13 changes: 13 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
exclude: ['babel-plugin-transform-exponentiation-operator'],
},
],
],
plugins: [
['@babel/transform-runtime'],
],
};
1 change: 0 additions & 1 deletion dist/v-money-spinner.js

This file was deleted.

24 changes: 23 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>v-money-spinner</title><script src="https://unpkg.com/@popperjs/core@2"></script><script src="https://unpkg.com/tippy.js@6"></script><meta name="description" content="A component with input spinner and currency mask."><link href="/index.css" rel="stylesheet"></head><body><noscript>We're sorry but v-money-spinner doesn't work properly without JavaScript enabled. Please enable it to continue.</noscript><div id="app"></div><script src="/v-money-spinner.js"></script></body></html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>v-money-spinner</title>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>


<meta name="description" content="A component with input spinner and currency mask.">


</head>
<body>

<noscript>
We're sorry but v-money-spinner doesn't work properly without JavaScript enabled. Please enable it to continue.
</noscript>
<div id="app"></div>
<script src="/v-money-spinner.js"></script></body>
</html>
15,042 changes: 15,041 additions & 1 deletion docs/v-money-spinner.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VMoneySpinner</title>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/docs/index.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
server: {
command: './node_modules/vite/bin/vite.js --host=127.0.0.1 --port=12345',
port: 12345,
},
launch: {
// dumpio: true,
headless: process.env.HEADLESS !== 'false',
slowMo: 35,
product: 'chrome',
},
browserContext: 'default',
};
18 changes: 18 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const tsPreset = require('ts-jest/jest-preset');
const puppeteerPreset = require('jest-puppeteer/jest-preset');

module.exports = {
...tsPreset,
...puppeteerPreset,
globals: {},
testEnvironment: 'jsdom',
transform: {
'^.+\\.vue$': 'vue-jest',
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
moduleFileExtensions: ['vue', 'js', 'json', 'jsx', 'ts', 'tsx', 'node'],
modulePaths: [
'<rootDir>',
],
};
Loading

0 comments on commit a4a40b6

Please sign in to comment.