Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create vue2 charts #771

Merged
merged 11 commits into from Mar 23, 2022
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -21,5 +21,8 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install dependencies to legacy folder
working-directory: legacy
run: pnpm install
- name: Run tests
run: pnpm test
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -14,3 +14,9 @@ npm-debug.log*

# testing
coverage

# legacy builds
/legacy/index.cjs
/legacy/index.cjs.map
/legacy/index.js
/legacy/index.js.map
3 changes: 3 additions & 0 deletions legacy/.babelrc
@@ -0,0 +1,3 @@
{
"extends": "../.babelrc"
dangreen marked this conversation as resolved.
Show resolved Hide resolved
}
25 changes: 25 additions & 0 deletions legacy/jest.config.json
@@ -0,0 +1,25 @@
{
"testEnvironment": "jsdom",
"setupFiles": ["<rootDir>/../test/setup.js"],
"testMatch": ["<rootDir>/test/(*.)spec.(js|ts)"],
"moduleFileExtensions": ["js", "ts", "vue"],
"transform": {
"^.+\\.vue$": "@vue/vue2-jest",
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
"module": {
"type": "commonjs"
},
"env": {
"targets": {
"node": 12
}
}
}
]
},
"collectCoverage": true,
"collectCoverageFrom": ["<rootDir>/src/**/*"],
"coverageReporters": ["lcovonly", "text"]
}
21 changes: 21 additions & 0 deletions legacy/package.json
@@ -0,0 +1,21 @@
{
"publishConfig": {
"main": "./legacy/index.cjs",
"module": "./legacy/index.js"
},
dangreen marked this conversation as resolved.
Show resolved Hide resolved
"scripts": {
"unit": "jest -c jest.config.json"
},
"devDependencies": {
"@babel/core": "7.16.5",
"@swc/core": "1.2.120",
"@swc/jest": "0.2.15",
"@vue/test-utils": "1.3.0",
"@vue/vue2-jest": "27.0.0-alpha.4",
"babel-jest": "27.4.5",
"css-loader": "0.28.0",
"jest": "27.4.3",
"vue": "2.6.14",
"vue-template-compiler": "2.6.14"
}
}