fissionui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/dist/components/Button.tsx +11 -0
- package/dist/fusionui.d.ts +4 -0
- package/dist/fusionui.js +16 -0
- package/dist/fusionui.umd.cjs +1 -0
- package/package.json +47 -0
package/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# React + TypeScript + Vite
|
2
|
+
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
4
|
+
|
5
|
+
Currently, two official plugins are available:
|
6
|
+
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
9
|
+
|
10
|
+
## Expanding the ESLint configuration
|
11
|
+
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
13
|
+
|
14
|
+
- Configure the top-level `parserOptions` property like this:
|
15
|
+
|
16
|
+
```js
|
17
|
+
export default tseslint.config({
|
18
|
+
languageOptions: {
|
19
|
+
// other options...
|
20
|
+
parserOptions: {
|
21
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
22
|
+
tsconfigRootDir: import.meta.dirname,
|
23
|
+
},
|
24
|
+
},
|
25
|
+
})
|
26
|
+
```
|
27
|
+
|
28
|
+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
|
29
|
+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
|
30
|
+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
|
31
|
+
|
32
|
+
```js
|
33
|
+
// eslint.config.js
|
34
|
+
import react from 'eslint-plugin-react'
|
35
|
+
|
36
|
+
export default tseslint.config({
|
37
|
+
// Set the react version
|
38
|
+
settings: { react: { version: '18.3' } },
|
39
|
+
plugins: {
|
40
|
+
// Add the react plugin
|
41
|
+
react,
|
42
|
+
},
|
43
|
+
rules: {
|
44
|
+
// other rules...
|
45
|
+
// Enable its recommended rules
|
46
|
+
...react.configs.recommended.rules,
|
47
|
+
...react.configs['jsx-runtime'].rules,
|
48
|
+
},
|
49
|
+
})
|
50
|
+
```
|
package/dist/fusionui.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
import { Command as e } from "commander";
|
3
|
+
import i from "chalk";
|
4
|
+
import s from "node:fs";
|
5
|
+
import { dirname as m, resolve as t } from "node:path";
|
6
|
+
import { fileURLToPath as c } from "node:url";
|
7
|
+
const n = new e(), a = m(c(import.meta.url));
|
8
|
+
n.version("1.0.0").description("Configure Project to use Fission UI").command("init").action(p);
|
9
|
+
n.parse(process.argv);
|
10
|
+
function p() {
|
11
|
+
const r = t(a, "./components/Button.tsx"), o = t(process.cwd(), "./src/Button.tsx");
|
12
|
+
s.copyFileSync(r, o), console.log(i.green(`File copied to: ${o}`));
|
13
|
+
}
|
14
|
+
export {
|
15
|
+
p as default
|
16
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("commander"),require("chalk"),require("node:fs"),require("node:path"),require("node:url")):typeof define=="function"&&define.amd?define(["commander","chalk","node:fs","node:path","node:url"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.fusionui=n(e.commander,e.chalk,e.fs,e["node:path"],e["node:url"]))})(this,function(e,n,u,o,c){"use strict";var t=typeof document<"u"?document.currentScript:null;const r=new e.Command,s=o.dirname(c.fileURLToPath(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:t&&t.tagName.toUpperCase()==="SCRIPT"&&t.src||new URL("fusionui.umd.cjs",document.baseURI).href));r.version("1.0.0").description("Configure Project to use Fission UI").command("init").action(i),r.parse(process.argv);function i(){const f=o.resolve(s,"./components/Button.tsx"),d=o.resolve(process.cwd(),"./src/Button.tsx");u.copyFileSync(f,d),console.log(n.green(`File copied to: ${d}`))}return i});
|
package/package.json
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
{
|
2
|
+
"name": "fissionui",
|
3
|
+
"version": "0.0.0",
|
4
|
+
"type": "module",
|
5
|
+
"files": [
|
6
|
+
"dist"
|
7
|
+
],
|
8
|
+
"main": "./dist/fusionui.umd.cjs",
|
9
|
+
"module": "./dist/fusionui.js",
|
10
|
+
"exports": {
|
11
|
+
".": {
|
12
|
+
"import": "./dist/fusionui.js",
|
13
|
+
"require": "./dist/fusionui.umd.cjs"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"bin": "./dist/fusionui.js",
|
17
|
+
"scripts": {
|
18
|
+
"dev": "vite",
|
19
|
+
"build": "tsc -b && vite build",
|
20
|
+
"lint": "eslint .",
|
21
|
+
"preview": "vite preview",
|
22
|
+
"prepublish": "npm run build"
|
23
|
+
},
|
24
|
+
"dependencies": {
|
25
|
+
"@inquirer/prompts": "^7.3.2",
|
26
|
+
"chalk": "^5.4.1",
|
27
|
+
"commander": "^13.1.0",
|
28
|
+
"react": "^19.0.0",
|
29
|
+
"react-dom": "^19.0.0",
|
30
|
+
"vite-tsconfig-paths": "^5.1.4"
|
31
|
+
},
|
32
|
+
"devDependencies": {
|
33
|
+
"@eslint/js": "^9.19.0",
|
34
|
+
"@types/node": "^22.13.4",
|
35
|
+
"@types/react": "^19.0.8",
|
36
|
+
"@types/react-dom": "^19.0.3",
|
37
|
+
"@vitejs/plugin-react": "^4.3.4",
|
38
|
+
"eslint": "^9.19.0",
|
39
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
40
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
41
|
+
"globals": "^15.14.0",
|
42
|
+
"typescript": "~5.7.2",
|
43
|
+
"typescript-eslint": "^8.22.0",
|
44
|
+
"vite": "^6.1.0",
|
45
|
+
"vite-plugin-dts": "^4.5.0"
|
46
|
+
}
|
47
|
+
}
|