-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- replaces destroy event with new afterDestroy - included additional ChartJS events
- Loading branch information
Showing
13 changed files
with
6,865 additions
and
4,921 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
node-version: [ 20 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Install | ||
run: pnpm install | ||
|
||
- name: Run tests | ||
run: pnpm test | ||
|
||
- name: Upload coverage to Coveralls | ||
run: cat ./coverage/lcov.info | pnpm coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,11 +1,16 @@ | ||
module.exports = { | ||
transform: { | ||
'^.+\\.vue$': 'vue3-jest', | ||
'^.+\\.vue$': '@vue/vue3-jest', | ||
'^.+\\js$': 'babel-jest' | ||
}, | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: { | ||
customExportConditions: ["node", "node-addons"], | ||
}, | ||
setupFiles: ['jest-canvas-mock'], | ||
collectCoverage: true, | ||
coverageReporters: ['lcov', 'text-summary'], | ||
coverageDirectory: 'coverage', | ||
coverageReporters: ['lcov', 'text'], | ||
coverageProvider: "v8", | ||
moduleFileExtensions: ['vue', 'js', 'json', 'jsx', 'ts', 'tsx', 'node'] | ||
} |
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,6 @@ | ||
{ | ||
"name": "@j-t-mcc/vue3-chartjs", | ||
"version": "1.3.0", | ||
"version": "2.0.0", | ||
"author": "Tyson McCarney <[email protected]> (https://tysonmccarney.com)", | ||
"description": "Vue3 wrapper for Chart.js", | ||
"license": "MIT", | ||
|
@@ -34,30 +34,32 @@ | |
"lint": "eslint lib/**" | ||
}, | ||
"peerDependencies": { | ||
"chart.js": "^3.7.0", | ||
"chart.js": "^4.0", | ||
"vue": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.12.11", | ||
"@vitejs/plugin-vue": "^1.1.4", | ||
"@vue/compiler-sfc": "^3.0.5", | ||
"@vue/test-utils": "^2.0.0-rc.18", | ||
"babel-jest": "^27.0.0", | ||
"chart.js": "^3.7.0", | ||
"chartjs-plugin-zoom": "^1.0.0-beta.5", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"@babel/core": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@vitejs/plugin-vue": "^1.10.2", | ||
"@vue/compiler-sfc": "^3.4.27", | ||
"@vue/test-utils": "^2.4.6", | ||
"@vue/vue3-jest": "^28.1.0", | ||
"babel-jest": "^28.1.3", | ||
"chart.js": "^4.4.3", | ||
"chartjs-plugin-zoom": "^1.2.1", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.10.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-vue": "^7.1.0", | ||
"jest": "^v27.0.0-alpha.4", | ||
"jest-canvas-mock": "^2.3.0", | ||
"eslint-plugin-promise": "^4.3.1", | ||
"eslint-plugin-vue": "^7.20.0", | ||
"jest": "^28.1.3", | ||
"jest-canvas-mock": "^2.5.2", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"prettier": "2.2.1", | ||
"vite": "^2.0.1", | ||
"vue": "^3.0.5", | ||
"vue3-jest": "^27.0.0-alpha.1" | ||
"vite": "^2.9.18", | ||
"vue": "^3.4.27" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
|
Oops, something went wrong.