z-flux-react 1.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/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "z-flux-react",
3
+ "version": "1.0.0",
4
+ "description": "A web animation components library for react projects",
5
+ "license": "MIT",
6
+ "author": "Akinola Victor",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.mjs",
9
+ "types": "dist/index.d.ts",
10
+ "scripts": {
11
+ "build-lib2": "rollup -c",
12
+ "build": "rollup -c",
13
+ "build-lib": "rollup -c --bundleConfigAsCjs",
14
+ "git": "git add . && git commit -m 'updated...' && git push origin master",
15
+ "build-publish": "npm run build-lib2 && npm run git && npm publish"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/AkinolaVictor/z-flux-react"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/AkinolaVictor/z-flux-react"
23
+ },
24
+ "homepage": "https://z-flux.vercel.app/",
25
+ "keywords": [
26
+ "react",
27
+ "animation",
28
+ "web animation",
29
+ "web components",
30
+ "z-flux",
31
+ "flux",
32
+ "gsap",
33
+ "ui",
34
+ "components"
35
+ ],
36
+ "peerDependencies": {
37
+ "react": ">=16",
38
+ "react-dom": ">=16"
39
+ },
40
+ "dependencies": {
41
+ "@gsap/react": "^2.1.2",
42
+ "@types/react": "^19.2.14",
43
+ "gsap": "3.15.0"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.29.0",
47
+ "@babel/preset-react": "^7.28.5",
48
+ "@rollup/plugin-commonjs": "^29.0.2",
49
+ "@rollup/plugin-node-resolve": "^16.0.3",
50
+ "@rollup/plugin-typescript": "^12.3.0",
51
+ "@types/node": "^25.7.0",
52
+ "babel-loader": "^10.1.1",
53
+ "react": "^19.2.6",
54
+ "react-dom": "^19.2.6",
55
+ "rollup": "^2.80.0",
56
+ "rollup-plugin-babel": "^4.4.0",
57
+ "rollup-plugin-dts": "^4.2.3",
58
+ "rollup-plugin-peer-deps-external": "^2.2.4",
59
+ "rollup-plugin-postcss": "^4.0.2",
60
+ "rollup-plugin-terser": "^7.0.2",
61
+ "tslib": "^2.8.1",
62
+ "typescript": "^6.0.3"
63
+ }
64
+ }
@@ -0,0 +1,50 @@
1
+ import babel from "rollup-plugin-babel"
2
+ import resolve from "@rollup/plugin-node-resolve"
3
+ import external from "rollup-plugin-peer-deps-external"
4
+ // import postcss from "rollup-plugin-postcss"
5
+ import {terser} from "rollup-plugin-terser"
6
+ import commonjs from "@rollup/plugin-commonjs"
7
+ import typescript from "@rollup/plugin-typescript"
8
+ import dts from "rollup-plugin-dts"
9
+ const packageJson = require("./package.json")
10
+
11
+ export default [
12
+ {
13
+ input: "./src/index.ts",
14
+ output: [
15
+ {
16
+ file: packageJson.main,
17
+ format: "cjs",
18
+ sourcemap: true,
19
+ },
20
+ {
21
+ file: packageJson.module,
22
+ format: "esm",
23
+ // exports: "named",
24
+ sourcemap: true,
25
+ }
26
+ ],
27
+ plugins: [
28
+ // postcss({
29
+ // plugins: [],
30
+ // minimize: true
31
+ // }),
32
+ babel({
33
+ exclude: "node_modules/**",
34
+ presets: ["@babel/preset-react"],
35
+ }),
36
+ external(),
37
+ resolve(),
38
+ terser(),
39
+ commonjs(),
40
+ typescript({tsconfig: "./tsconfig.json"})
41
+ ],
42
+ external: ["react", "react-dom"]
43
+ },
44
+ {
45
+ input: "src/index.ts",
46
+ output: [{file: packageJson.types}],
47
+ plugins: [dts()],
48
+ external: [/\.css/]
49
+ }
50
+ ]
package/tsconfig.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ // "rootDir": "./src",
6
+ // "outDir": "./dist",
7
+ "target": "es6",
8
+ "lib": ["dom", "dom.iterable", "esnext"],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "module": "esnext",
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "noEmit": true,
21
+ "jsx": "react-jsx",
22
+ "ignoreDeprecations": "6.0",
23
+ "types": ["node"],
24
+
25
+
26
+
27
+
28
+ // Environment Settings
29
+ // See also https://aka.ms/tsconfig/module
30
+ // "types": [],
31
+ // For nodejs:
32
+ // and npm install -D @types/node
33
+
34
+ // Other Outputs
35
+ // "sourceMap": true,
36
+ // "declaration": true,
37
+ // "declarationMap": true,
38
+
39
+ // Stricter Typechecking Options
40
+ // "noUncheckedIndexedAccess": true,
41
+ // "exactOptionalPropertyTypes": true,
42
+
43
+ // Style Options
44
+ // "noImplicitReturns": true,
45
+ // "noImplicitOverride": true,
46
+ // "noUnusedLocals": true,
47
+ // "noUnusedParameters": true,
48
+ // "noPropertyAccessFromIndexSignature": true,
49
+
50
+ // Recommended Options
51
+ // "verbatimModuleSyntax": true,
52
+ // "noUncheckedSideEffectImports": true,
53
+ // "moduleDetection": "force",
54
+ },
55
+ "include": ["src"]
56
+ }
57
+
58
+ // npm i -D @rollup/plugin-commonjs @rollup/plugin-typescript rollup-plugin-dts