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

feat: create new Slickgrid-Vue package to support VueJS framework #1753

Merged
merged 36 commits into from
Dec 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8fa95d2
feat: add new Slickgrid-Vue to add VueJS support
ghiscoding Dec 2, 2024
2d325ef
chore: skip eslint rule
ghiscoding Dec 3, 2024
dacb848
chore: add slickgrid-vue as references path
ghiscoding Dec 3, 2024
7636aec
chore: add all universal dependencies to the workspace
ghiscoding Dec 3, 2024
16c4a82
chore: add CJS build and exports
ghiscoding Dec 3, 2024
6024a92
chore: cleanup code
ghiscoding Dec 3, 2024
c0b5745
chore: rollback universal dependencies in root package
ghiscoding Dec 3, 2024
a6d452e
chore: try to use released universal version to see if it builds
ghiscoding Dec 3, 2024
03deab4
chore: add back workspace in slickgrid-vue
ghiscoding Dec 3, 2024
7bdf68a
chore: use Vue Cypress config not the vanilla one
ghiscoding Dec 3, 2024
879b7e6
chore: use correct Cypress config filename
ghiscoding Dec 3, 2024
62f0c12
chore: remove Cypress project recording key
ghiscoding Dec 3, 2024
22af5e1
chore: disable Cypress recording
ghiscoding Dec 3, 2024
7fbc51c
chore: servor to serve html
ghiscoding Dec 3, 2024
96f6555
chore: use http base path
ghiscoding Dec 3, 2024
13e17d1
chore: add back universal workspace
ghiscoding Dec 3, 2024
43f8fd1
chore: add back hashtag in Cypress base path
ghiscoding Dec 3, 2024
5eb27bd
chore: add back local dep workspace
ghiscoding Dec 3, 2024
6fe2bbf
chore: fix reference path
ghiscoding Dec 3, 2024
cd72a35
chore: test with link path instead of workspace
ghiscoding Dec 3, 2024
a5fd3f1
chore: test with link path instead of workspace
ghiscoding Dec 3, 2024
ead8221
chore: add license and vite path resolve
ghiscoding Dec 3, 2024
6b5e8b7
chore: add missing slickgrid-vue build in test workflow
ghiscoding Dec 3, 2024
36d6798
chore: run correct framework build path
ghiscoding Dec 3, 2024
0ac22ce
chore: remove unnecessary Vite path resolve
ghiscoding Dec 3, 2024
7a7d0e8
chore: use Vite preview to run Vue http server demo
ghiscoding Dec 3, 2024
b8c1581
chore: remove servor from Vue and tweak all npm scripts
ghiscoding Dec 3, 2024
13c38cd
chore: add dev watch for slickgrid-vue development
ghiscoding Dec 3, 2024
fb32e5d
chore: add Renovate deps group for VueJS
ghiscoding Dec 3, 2024
b1dc2a3
chore: reenable import file extensions & add Prettier
ghiscoding Dec 4, 2024
def1d86
chore: remove invalid description prop in CI workflow
ghiscoding Dec 4, 2024
441f369
docs: add Slickgrid-Vue docs
ghiscoding Dec 4, 2024
229abee
chore: fix some Vue build issues and cleanup code
ghiscoding Dec 4, 2024
39a10e2
docs: update all Vue example links
ghiscoding Dec 5, 2024
64b001d
docs: add Slickgrid-Vue to Readme
ghiscoding Dec 5, 2024
bc768f7
chore: tweak build & exports a little more
ghiscoding Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add CJS build and exports
  • Loading branch information
ghiscoding committed Dec 3, 2024
commit 16c4a82813b2e44d498da8ea6bd7074dc63f8e9a
3 changes: 3 additions & 0 deletions frameworks/slickgrid-vue/clone-dts.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { readFileSync, writeFileSync } from 'node:fs';

writeFileSync('dist/index.d.cts', readFileSync('dist/index.d.ts'));
20 changes: 14 additions & 6 deletions frameworks/slickgrid-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "slickgrid-vue",
"version": "0.1.0",
"type": "module",
"description": "Slickgrid-Vue",
"module": "./dist/index.js",
"type": "module",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
@@ -21,8 +25,10 @@
"keywords": [
"vue",
"vue3",
"component",
"library"
"plugin",
"datagrid",
"datatable",
"slickgrid"
],
"publishConfig": {
"access": "public"
@@ -32,11 +38,13 @@
"url": "https://ko-fi.com/ghiscoding"
},
"scripts": {
"are-types-wrong": "pnpx @arethetypeswrong/cli --pack .",
"clean": "rimraf dist",
"dev": "vite build --watch",
"dev:init": "vite build",
"build": "vue-tsc --p ./tsconfig.app.json && vite build --sourcemap",
"build": "pnpm clean && vue-tsc --p ./tsconfig.app.json && vite build --sourcemap && pnpm clone:dts",
"preview": "vite preview",
"clone:dts": "node clone-dts.mjs",
"type-check": "vue-tsc --build --force"
},
"dependencies": {
1 change: 1 addition & 0 deletions frameworks/slickgrid-vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Column } from '@slickgrid-universal/common';
import { Editors, Filters } from '@slickgrid-universal/common';
export * from '@slickgrid-universal/common';

import SlickgridVue from './components/SlickgridVue.vue';
import { SlickRowDetailView } from './extensions/slickRowDetailView.js';
import type { GridOption, RowDetailView, SlickgridVueInstance } from './models/index.js';
11 changes: 8 additions & 3 deletions frameworks/slickgrid-vue/vite.config.ts
Original file line number Diff line number Diff line change
@@ -14,14 +14,13 @@ export default defineConfig({
copyPublicDir: false,
lib: {
entry: resolve(__dirname, 'src/index.ts'),
formats: ['es'],
fileName: 'index',
formats: ['es', 'cjs'],
fileName: format => format === 'cjs' ? 'index.cjs' : 'index.mjs',
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
external: [
'vue',
'@formkit/tempo',
'@slickgrid-universal/common',
'@slickgrid-universal/custom-footer-component',
@@ -34,7 +33,13 @@ export default defineConfig({
'i18next',
'i18next-vue',
'sortablejs',
'vue',
],
output: {
globals: {
vue: 'Vue',
},
},
},
},
});
Loading