Skip to content

Commit 9d0bc2f

Browse files
committed
Core: Vite integration
1 parent 72317ec commit 9d0bc2f

File tree

132 files changed

+1371
-1385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1371
-1385
lines changed

package-lock.json

Lines changed: 802 additions & 758 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dev/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/solid/licences.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rollup perpetual MIT 4.24.2 Rich Harri
55
solid-js perpetual MIT 1.9.3 Ryan Carniato
66
tsx perpetual MIT 4.19.2 Hiroki Osame [email protected]
77
typescript perpetual Apache-2.0 5.6.3 Microsoft Corp.
8-
vite perpetual MIT 6.0.1 Evan You
8+
vite perpetual MIT 6.2.1 Evan You
99
vite-plugin-dts perpetual MIT 3.6.0 qmhc
1010
vite-plugin-solid perpetual MIT 2.10.2 Alexandre Mouton-Brady <[email protected]>
1111
solid-js perpetual MIT 1.9.3 Ryan Carniato

packages/solid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"solid-js": "^1.9.3",
4545
"tsx": "^4.19.1",
4646
"typescript": "^5.6.3",
47-
"vite": "^6.0.1",
47+
"vite": "^6.2.1",
4848
"vite-plugin-dts": "^3.5.3",
4949
"vite-plugin-solid": "^2.10.2"
5050
},

packages/ts/declaration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
declare module '*.css';
1+
declare module '*.css?inline';
22
declare module 'd3-geo-projection'
33
declare module 'd3-interpolate-path'

packages/ts/licences.txt

Lines changed: 38 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,38 @@
1-
name license period license type installed version author
2-
---- -------------- ------------ ----------------- ------
3-
@emotion/css perpetual MIT 11.10.5 Kye Hohenberger
4-
@juggle/resize-observer perpetual Apache-2.0 3.3.1 Juggle
5-
@types/d3 perpetual MIT 7.4.0 n/a
6-
@types/d3-collection perpetual MIT 1.0.10 n/a
7-
@types/d3-sankey perpetual MIT 0.11.2 n/a
8-
@types/dagre perpetual MIT 0.7.50 n/a
9-
@types/geojson perpetual MIT 7946.0.8 n/a
10-
@types/leaflet perpetual MIT 1.7.6 n/a
11-
@types/supercluster perpetual MIT 5.0.2 n/a
12-
@types/three perpetual MIT 0.135.0 n/a
13-
@types/throttle-debounce perpetual MIT 5.0.0 n/a
14-
@types/topojson perpetual MIT 3.2.3 n/a
15-
@types/topojson-client perpetual MIT 3.1.0 n/a
16-
@types/topojson-specification perpetual MIT 1.0.2 n/a
17-
@unovis/dagre-layout perpetual MIT 0.8.8-2 Nikita Rokotyan ([email protected])
18-
@unovis/graphlibrary perpetual MIT 2.2.0-2 Nikita Rokotyan ([email protected])
19-
d3 perpetual ISC 7.2.1 Mike Bostock https://bost.ocks.org/mike
20-
d3-collection perpetual BSD-3-Clause 1.0.7 Mike Bostock http://bost.ocks.org/mike
21-
d3-geo-projection perpetual ISC 4.0.0 Mike Bostock https://bost.ocks.org/mike
22-
d3-interpolate-path perpetual BSD-3-Clause 2.2.3 Peter Beshai <[email protected]> (http://github.com/pbeshai)
23-
d3-sankey perpetual BSD-3-Clause 0.12.3 Mike Bostock https://bost.ocks.org/mike/
24-
elkjs perpetual EPL-2.0 0.8.2 Ulf Rüegg [email protected]
25-
geojson perpetual MIT 0.5.0 Casey Cesari
26-
leaflet perpetual BSD-2-Clause 1.7.1 n/a
27-
maplibre-gl perpetual BSD-3-Clause 2.1.9 n/a
28-
striptags perpetual MIT 3.2.0 Eric Norris (https://github.com/ericnorris)
29-
supercluster perpetual ISC 7.1.5 Vladimir Agafonkin
30-
three perpetual MIT 0.135.0 mrdoob
31-
throttle-debounce perpetual MIT 5.0.0 Ivan Nikolić <[email protected]> (http://ivannikolic.com)
32-
to-px perpetual MIT 1.1.0 Mikola Lysenko
33-
topojson-client perpetual ISC 3.1.0 Mike Bostock https://bost.ocks.org/mike
34-
tslib perpetual 0BSD 2.4.1 Microsoft Corp.
35-
@rollup/plugin-json perpetual MIT 4.1.0 rollup
36-
@types/to-px perpetual MIT 1.1.2 n/a
37-
@zerollup/ts-transform-paths perpetual MIT 1.7.18 Stefan Zerkalica [email protected]
38-
rimraf perpetual ISC 3.0.2 Isaac Z. Schlueter <[email protected]> (http://blog.izs.me/)
39-
rollup perpetual MIT 2.79.2 Rich Harris
40-
rollup-plugin-commonjs perpetual MIT 10.1.0 Rich Harris
41-
rollup-plugin-node-resolve perpetual MIT 5.2.0 Rich Harris <[email protected]>
42-
rollup-plugin-postcss perpetual MIT 4.0.2 EGOIST <[email protected]>
43-
rollup-plugin-rename-node-modules perpetual MIT 1.3.1 Lazyuki
44-
rollup-plugin-terser perpetual MIT 7.0.2 Bogdan Chadkin <[email protected]>
45-
rollup-plugin-typescript2 perpetual MIT 0.31.2 @ezolenko
46-
rollup-plugin-visualizer perpetual MIT 4.2.2 Denis Bardadym <[email protected]>
1+
name license period license type installed version author
2+
---- -------------- ------------ ----------------- ------
3+
@emotion/css perpetual MIT 11.10.5 Kye Hohenberger
4+
@juggle/resize-observer perpetual Apache-2.0 3.3.1 Juggle
5+
@types/d3 perpetual MIT 7.4.0 n/a
6+
@types/d3-collection perpetual MIT 1.0.10 n/a
7+
@types/d3-sankey perpetual MIT 0.11.2 n/a
8+
@types/dagre perpetual MIT 0.7.50 n/a
9+
@types/geojson perpetual MIT 7946.0.8 n/a
10+
@types/leaflet perpetual MIT 1.7.6 n/a
11+
@types/supercluster perpetual MIT 5.0.2 n/a
12+
@types/three perpetual MIT 0.135.0 n/a
13+
@types/throttle-debounce perpetual MIT 5.0.0 n/a
14+
@types/topojson perpetual MIT 3.2.3 n/a
15+
@types/topojson-client perpetual MIT 3.1.0 n/a
16+
@types/topojson-specification perpetual MIT 1.0.2 n/a
17+
@unovis/dagre-layout perpetual MIT 0.8.8-2 Nikita Rokotyan ([email protected])
18+
@unovis/graphlibrary perpetual MIT 2.2.0-2 Nikita Rokotyan ([email protected])
19+
d3 perpetual ISC 7.2.1 Mike Bostock https://bost.ocks.org/mike
20+
d3-collection perpetual BSD-3-Clause 1.0.7 Mike Bostock http://bost.ocks.org/mike
21+
d3-geo-projection perpetual ISC 4.0.0 Mike Bostock https://bost.ocks.org/mike
22+
d3-interpolate-path perpetual BSD-3-Clause 2.2.3 Peter Beshai <[email protected]> (http://github.com/pbeshai)
23+
d3-sankey perpetual BSD-3-Clause 0.12.3 Mike Bostock https://bost.ocks.org/mike/
24+
elkjs perpetual EPL-2.0 0.8.2 Ulf Rüegg [email protected]
25+
geojson perpetual MIT 0.5.0 Casey Cesari
26+
leaflet perpetual BSD-2-Clause 1.7.1 n/a
27+
maplibre-gl perpetual BSD-3-Clause 2.1.9 n/a
28+
striptags perpetual MIT 3.2.0 Eric Norris (https://github.com/ericnorris)
29+
supercluster perpetual ISC 7.1.5 Vladimir Agafonkin
30+
three perpetual MIT 0.135.0 mrdoob
31+
throttle-debounce perpetual MIT 5.0.0 Ivan Nikolić <[email protected]> (http://ivannikolic.com)
32+
to-px perpetual MIT 1.1.0 Mikola Lysenko
33+
topojson-client perpetual ISC 3.1.0 Mike Bostock https://bost.ocks.org/mike
34+
tslib perpetual 0BSD 2.4.1 Microsoft Corp.
35+
@types/to-px perpetual MIT 1.1.2 n/a
36+
lightningcss perpetual MPL-2.0 1.29.2 n/a
37+
vite perpetual MIT 6.2.1 Evan You
38+
vite-plugin-dts perpetual MIT 3.6.0 qmhc

packages/ts/package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,15 @@
3535
],
3636
"scripts": {
3737
"build": "sha=$(tar cf - ./src | shasum); if [[ $(echo $sha) == $(< .srcsha) ]] && [[ -d \"./lib\" ]]; then echo \"Lib Build Exists\"; else npm run forcebuild; echo $sha > .srcsha; fi",
38-
"forcebuild": "rimraf lib; rollup -c",
39-
"publish:dist": "rm -rf lib/.cache; cp ./{LICENSE,README.md,package.json} ./lib; cd ./lib; npm publish"
38+
"forcebuild": "vite build",
39+
"publish:dist": "rm -rf lib/.cache; cp ./{LICENSE,README.md,package.json} ./lib; cd ./lib; npm publish",
40+
"type:check": "tsc --noEmit"
4041
},
4142
"devDependencies": {
42-
"@rollup/plugin-json": "^4.1.0",
4343
"@types/to-px": "^1.1.2",
44-
"@zerollup/ts-transform-paths": "^1.7.18",
45-
"rimraf": "^3.0.2",
46-
"rollup": "^2.61.1",
47-
"rollup-plugin-commonjs": "^10.1.0",
48-
"rollup-plugin-node-resolve": "^5.2.0",
49-
"rollup-plugin-postcss": "^4.0.1",
50-
"rollup-plugin-rename-node-modules": "^1.3.1",
51-
"rollup-plugin-terser": "^7.0.2",
52-
"rollup-plugin-typescript2": "^0.31.1",
53-
"rollup-plugin-visualizer": "^4.2.2"
44+
"lightningcss": "^1.28.2",
45+
"vite": "^6.2.1",
46+
"vite-plugin-dts": "^3.5.3"
5447
},
5548
"dependencies": {
5649
"@emotion/css": "^11.7.1",

packages/ts/rollup.config.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

packages/ts/src/components.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Core
2-
export { ComponentCore } from 'core/component'
3-
export type { ComponentConfigInterface } from 'core/component/config'
4-
export { XYComponentCore } from 'core/xy-component'
5-
export type { XYComponentConfigInterface } from 'core/xy-component/config'
2+
export { ComponentCore } from '@/core/component'
3+
export type { ComponentConfigInterface } from '@/core/component/config'
4+
export { XYComponentCore } from '@/core/xy-component'
5+
export type { XYComponentConfigInterface } from '@/core/xy-component/config'
66

77
// Components
8-
export { Tooltip } from 'components/tooltip'
8+
export { Tooltip } from '@/components/tooltip'
99
export { Line } from './components/line'
1010
export { StackedBar } from './components/stacked-bar'
1111
export { GroupedBar } from './components/grouped-bar'
@@ -29,7 +29,7 @@ export { Donut } from './components/donut'
2929
export { FreeBrush } from './components/free-brush'
3030
export { XYLabels } from './components/xy-labels'
3131
export { NestedDonut } from './components/nested-donut'
32-
export { Annotations } from 'components/annotations'
32+
export { Annotations } from '@/components/annotations'
3333

3434
// Constants
3535
export * from './components/donut/constants'

packages/ts/src/components/annotations/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentConfigInterface, ComponentDefaultConfig } from 'core/component/config'
1+
import { ComponentConfigInterface, ComponentDefaultConfig } from '@/core/component/config'
22

33
// Types
44
import { AnnotationItem } from './types'

0 commit comments

Comments
 (0)