@acuteinfo/common-screens 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.
@@ -0,0 +1,50 @@
1
+ import { defineConfig } from "rollup";
2
+
3
+ import typescript from "@rollup/plugin-typescript";
4
+ import postcss from "rollup-plugin-postcss";
5
+ import simplevars from "postcss-simple-vars";
6
+ import nested from "postcss-nested";
7
+ import nodePolyfills from "rollup-plugin-node-polyfills";
8
+ import resolve from "@rollup/plugin-node-resolve";
9
+ import commonjs from "@rollup/plugin-commonjs";
10
+ import terser from "@rollup/plugin-terser";
11
+
12
+ export default defineConfig({
13
+ input: "src/index.ts",
14
+ output: {
15
+ dir: "dist",
16
+ format: "es",
17
+ name: "common-screens",
18
+ sourcemap: true,
19
+ inlineDynamicImports: true,
20
+ },
21
+ external: [
22
+ "react",
23
+ "react-dom",
24
+ "react/jsx-runtime",
25
+ /^@mui/,
26
+ "notistack",
27
+ "react-i18next",
28
+ "i18next",
29
+ "clsx",
30
+ "json-rules-engine",
31
+ "react-query",
32
+ "regenerator-runtime/runtime",
33
+ "react-router-dom",
34
+ "@acuteinfo/common-base",
35
+ "crypto-js",
36
+ "otp-input-react",
37
+ ],
38
+ plugins: [
39
+ // resolve(),
40
+ // commonjs(),
41
+ nodePolyfills(),
42
+ typescript({ tsconfig: "tsconfig.json" }),
43
+ // terser(),
44
+ postcss({
45
+ minimize: true,
46
+ extensions: [".css"],
47
+ plugins: [simplevars(), nested()],
48
+ }),
49
+ ],
50
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationDir": "./dist",
5
+ "target": "ESNext",
6
+ "lib": ["dom", "dom.iterable", "esnext"],
7
+ "allowJs": true,
8
+ "skipLibCheck": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "strict": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "module": "ESNext",
14
+ "moduleResolution": "node",
15
+ "resolveJsonModule": true,
16
+ "isolatedModules": true,
17
+ "noEmit": true,
18
+ "jsx": "react-jsx",
19
+ "noImplicitAny": false,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "baseUrl": "src",
22
+ "allowUmdGlobalAccess": true
23
+ },
24
+ "include": ["src"]
25
+ }