Skip to content

Commit

Permalink
Solid: Solid integration
Browse files Browse the repository at this point in the history
  • Loading branch information
hngngn authored and rokotyan committed Oct 28, 2024
1 parent 5276b4c commit 9cda548
Show file tree
Hide file tree
Showing 138 changed files with 7,553 additions and 2,475 deletions.
12 changes: 10 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"max-len": ["warn", { "code": 200, "tabWidth": 2, "ignoreTrailingComments": true, "ignoreComments": true, "ignoreUrls": true }],
"import-newlines/enforce": ["error", { "items": 12, "max-len": 150, "semi": false }]
},
"overrides": [{
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
Expand Down Expand Up @@ -127,5 +128,12 @@
}
]
}
}]
},
{
"files": ["*-solid.tsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
]
}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
https://user-images.githubusercontent.com/755708/205744216-5e9efd10-794b-4ce1-9aca-580c34fad193.mp4

🟨 **Unovis** is a modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript:
🟨 **Unovis** is a modular data visualization framework for React, Angular, Svelte, Vue, Solid and vanilla TypeScript or JavaScript:

* 📈 🗺 It has charts, maps, network graphs, and more!
* 🌳 Tree-shakable and supports individual component imports to reduce your bundle size;
Expand All @@ -12,7 +12,7 @@ Learn more about _Unovis_ on [unovis.dev](https://unovis.dev)
You can install the core of the library `@unovis/ts` and framework-specific packages (if you use React, Angular, or Svelte) from NPM:

```bash
npm install -P @unovis/ts @unovis/<react|angular|svelte|vue>
npm install -P @unovis/ts @unovis/<react|angular|svelte|vue|solid>
```

Now you can import components and create your first chart! Here's how to build a simple line chart uising Unovis and React:
Expand Down Expand Up @@ -58,6 +58,7 @@ Svelte and TypeScript.
* `packages/react` React components
* `packages/svelte` Svelte components
* `packages/vue` Vue components
* `packages/solid` Solid components
* `packages/website` Website, docs and examples

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'header-trim': [2, 'always'],
'type-enum': [2, 'always', [
'React', 'Angular', 'Vue', 'Svelte', 'Website', 'Dev', 'Shared',
'Core', 'Component', 'Container', 'Release', 'CI', 'Misc',
'Core', 'Component', 'Container', 'Release', 'CI', 'Misc', 'Solid',
]],
'subject-case': [2, 'always', 'sentence-case'],
'subject-empty': [2, 'never'],
Expand Down
3,742 changes: 3,273 additions & 469 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"packages/react",
"packages/svelte",
"packages/vue",
"packages/solid",
"packages/shared"
],
"engines": {
Expand All @@ -18,26 +19,29 @@
"scripts": {
"dev": "cd packages/dev && npm run dev",
"website": "cd packages/website && npm run start",
"build": "npm run build:ts && npm run build:react && npm run build:angular && npm run build:svelte && npm run build:vue && npm run build:website",
"build": "npm run build:ts && npm run build:react && npm run build:angular && npm run build:svelte && npm run build:vue && npm run build:solid && npm run build:website",
"build:ts": "cd packages/ts && npm run build",
"build:angular": "cd packages/angular && npm run build",
"build:react": "cd packages/react && npm run build",
"build:svelte": "cd packages/svelte && npm run build",
"build:vue": "cd packages/vue && npm run build",
"build:solid": "cd packages/solid && npm run build",
"build:website": "cd packages/website && npm run build",
"build:dev": "cd packages/dev && npm run build",
"publish:ts": "cd packages/ts && npm run build && npm run publish:dist",
"publish:angular": "cd packages/angular && npm run build && npm publish",
"publish:react": "cd packages/react && npm run build && npm run publish:dist",
"publish:svelte": "cd packages/svelte && npm run build && npm run publish:dist",
"publish:vue": "cd packages/vue && npm run build && npm run publish:dist",
"publish:all": "npm run publish:ts && npm run publish:angular && npm run publish:react && npm run publish:svelte && npm run publish:vue",
"publish:solid": "cd packages/solid && npm run build && npm run publish:dist",
"publish:all": "npm run publish:ts && npm run publish:angular && npm run publish:react && npm run publish:svelte && npm run publish:vue && npm run publish:solid",
"publish:ts:beta": "cd packages/ts && npm run build && npm run publish:dist -- --tag beta",
"publish:angular:beta": "cd packages/angular && npm run build && npm publish --tag beta",
"publish:react:beta": "cd packages/react && npm run build && npm run publish:dist -- --tag beta",
"publish:svelte:beta": "cd packages/svelte && npm run build && npm run publish:dist -- --tag beta",
"publish:vue:beta": "cd packages/vue && npm run build && npm run publish:dist -- --tag beta",
"publish:all:beta": "npm run publish:ts:beta && npm run publish:angular:beta && npm run publish:react:beta && npm run publish:svelte:beta && npm run publish:vue:beta",
"publish:solid:beta": "cd packages/solid && npm run build && npm run publish:dist -- --tag beta",
"publish:all:beta": "npm run publish:ts:beta && npm run publish:angular:beta && npm run publish:react:beta && npm run publish:svelte:beta && npm run publish:vue:beta && npm run publish:solid:beta",
"lint": "eslint ./ --ext .js,.jsx,.ts,.tsx,.svelte --ignore-path .gitignore",
"lint:fix": "eslint ./ --ext .js,.jsx,.ts,.tsx,.svelte --fix --ignore-path .gitignore",
"install:clean": "for p in packages/*; do rm -f $p/package-lock.json; rm -rf $p/node_modules; done; rm -rf node_modules; npm i",
Expand Down Expand Up @@ -68,4 +72,4 @@
"lint-staged": {
"*.{js,ts,jsx,tsx,svelte}": "eslint --quiet --cache --fix"
}
}
}
3 changes: 1 addition & 2 deletions packages/angular/licences.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ karma-jasmine-html-reporter perpetual MIT 1.7.0
ng-packagr perpetual MIT 12.2.7 David Herges <david@spektrakel.de>
rollup perpetual MIT 2.75.5 Rich Harris
rollup-plugin-typescript2 perpetual MIT 0.31.2 @ezolenko
ttypescript perpetual MIT 1.5.13 cevek
webpack perpetual MIT 5.76.0 Tobias Koppers @sokra
zone.js perpetual MIT 0.14.0 Brian Ford
@unovis/ts perpetual Apache-2.0 1.4.2 Nikita Rokotyan, F5 Inc. <nikita@f5.com> (https://rokotyan.com)
@unovis/ts perpetual Apache-2.0 1.4.4 Nikita Rokotyan, F5 Inc. <nikita@f5.com> (https://rokotyan.com)
@angular/common perpetual MIT 12.2.17 angular
@angular/compiler perpetual MIT 12.2.17 angular
@angular/core perpetual MIT 12.2.17 angular
7 changes: 6 additions & 1 deletion packages/dev/licences.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ fuse.js perpetual Apache-2.0 6.6.2
react perpetual MIT 18.3.1 n/a
react-dom perpetual MIT 18.3.1 n/a
react-router-dom perpetual MIT 6.25.0 Remix Software <hello@remix.run>
seedrandom perpetual MIT 3.0.5 David Bau
serve perpetual MIT 14.2.3 n/a
@percy/cli perpetual MIT 1.29.1 n/a
@percy/cypress perpetual MIT 3.1.3-beta.0 Perceptual Inc.
@pmmmwh/react-refresh-webpack-plugin perpetual MIT 0.5.15 Michael Mok
@types/react perpetual MIT 18.3.3 n/a
@types/react-dom perpetual MIT 18.3.0 n/a
@types/react-router perpetual MIT 5.1.20 n/a
@types/webpack-env perpetual MIT 1.18.5 n/a
cypress perpetual MIT 13.13.0 n/a
html-webpack-plugin perpetual MIT 5.6.0 Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)
react-refresh perpetual MIT 0.14.2 n/a
react-refresh-typescript perpetual MIT 2.0.9 n/a
Expand All @@ -19,4 +24,4 @@ typescript-plugin-css-modules perpetual MIT 4.2.3
webpack perpetual MIT 5.93.0 Tobias Koppers @sokra
webpack-cli perpetual MIT 5.1.4 n/a
webpack-dev-server perpetual MIT 4.15.2 Tobias Koppers @sokra
@unovis/ts perpetual Apache-2.0 1.4.2 Nikita Rokotyan, F5 Inc. <nikita@f5.com> (https://rokotyan.com)
@unovis/ts perpetual Apache-2.0 1.4.4 Nikita Rokotyan, F5 Inc. <nikita@f5.com> (https://rokotyan.com)
Loading

0 comments on commit 9cda548

Please sign in to comment.