|
1 | 1 | {
|
2 | 2 | "name": "@dash-ui/react-layout",
|
3 |
| - "version": "0.2.0", |
| 3 | + "version": "0.3.0", |
4 | 4 | "homepage": "https://github.com/dash-ui/react-layout#readme",
|
5 | 5 | "repository": "github:dash-ui/react-layout",
|
6 | 6 | "bugs": "https://github.com/dash-ui/react-layout/issues",
|
| 7 | + "author": "Jared Lunde <[email protected]> (https://jaredLunde.com)", |
7 | 8 | "license": "MIT",
|
8 |
| - "description": "", |
| 9 | + "description": "Awesome layout primitives for React using dash-ui", |
9 | 10 | "keywords": [
|
10 | 11 | "react",
|
11 | 12 | "react component",
|
|
29 | 30 | ],
|
30 | 31 | "main": "dist/main/index.js",
|
31 | 32 | "module": "dist/module/index.js",
|
| 33 | + "unpkg": "dist/umd/dash-react-layout.js", |
32 | 34 | "source": "src/index.tsx",
|
33 | 35 | "types": "types/index.d.ts",
|
34 | 36 | "exports": {
|
35 | 37 | ".": {
|
36 | 38 | "browser": "./dist/module/index.js",
|
37 | 39 | "import": "./dist/esm/index.mjs",
|
38 | 40 | "require": "./dist/main/index.js",
|
39 |
| - "default": "./dist/main/index.js", |
| 41 | + "umd": "./dist/umd/dash-react-layout.js", |
40 | 42 | "source": "./src/index.tsx",
|
41 |
| - "types": "./types/index.d.ts" |
| 43 | + "types": "./types/index.d.ts", |
| 44 | + "default": "./dist/main/index.js" |
42 | 45 | },
|
43 | 46 | "./package.json": "./package.json",
|
44 | 47 | "./": "./"
|
|
50 | 53 | ],
|
51 | 54 | "sideEffects": false,
|
52 | 55 | "scripts": {
|
53 |
| - "build": "npm run build-esm && npm run build-main && npm run build-module && npm run build-types", |
54 |
| - "build-esm": "npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs", |
55 |
| - "build-main": "npm run compile -- -d dist/main --env-name main", |
56 |
| - "build-module": "npm run compile -- -d dist/module --env-name module", |
57 |
| - "build-types": "tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly", |
58 |
| - "check-types": "tsc --noEmit -p tsconfig.json", |
59 |
| - "compile": "babel src -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", |
60 |
| - "format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"", |
| 56 | + "build": "lundle build", |
| 57 | + "check-types": "lundle check-types", |
| 58 | + "dev": "lundle build -f module,cjs -w", |
| 59 | + "format": "prettier --write \"{,!(node_modules|dist|coverage)/**/}*.{ts,tsx,js,jsx,md,yml,json}\"", |
61 | 60 | "lint": "eslint . --ext .ts,.tsx",
|
62 | 61 | "prepublishOnly": "npm run lint && npm run test && npm run build && npm run format",
|
63 | 62 | "test": "jest",
|
64 |
| - "validate": "npm run check-types && npm run lint && npm run test -- --coverage" |
| 63 | + "validate": "lundle check-types && npm run lint && jest --coverage" |
65 | 64 | },
|
66 | 65 | "husky": {
|
67 | 66 | "hooks": {
|
68 |
| - "pre-commit": "npm run build-types && git add types && lint-staged" |
| 67 | + "pre-commit": "lundle check-types && lint-staged" |
69 | 68 | }
|
70 | 69 | },
|
71 | 70 | "lint-staged": {
|
72 | 71 | "**/*.{ts,tsx,js,jsx}": [
|
73 | 72 | "eslint",
|
74 | 73 | "prettier --write"
|
75 | 74 | ],
|
76 |
| - "**/*.{md,yml,json,eslintrc,prettierrc}": [ |
| 75 | + "**/*.{md,yml,json}": [ |
77 | 76 | "prettier --write"
|
78 | 77 | ]
|
79 | 78 | },
|
| 79 | + "eslintConfig": { |
| 80 | + "extends": [ |
| 81 | + "lunde" |
| 82 | + ], |
| 83 | + "overrides": [ |
| 84 | + { |
| 85 | + "files": [ |
| 86 | + "**/*.test.{ts,tsx}" |
| 87 | + ], |
| 88 | + "settings": { |
| 89 | + "import/resolver": { |
| 90 | + "node": { |
| 91 | + "moduleDirectory": [ |
| 92 | + "node_modules", |
| 93 | + "src/", |
| 94 | + "test/" |
| 95 | + ] |
| 96 | + }, |
| 97 | + "jest": { |
| 98 | + "jestConfigFile": "./package.json" |
| 99 | + } |
| 100 | + } |
| 101 | + } |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
| 105 | + "eslintIgnore": [ |
| 106 | + "node_modules", |
| 107 | + "coverage", |
| 108 | + "dist", |
| 109 | + "test", |
| 110 | + "*.config.js" |
| 111 | + ], |
| 112 | + "jest": { |
| 113 | + "moduleDirectories": [ |
| 114 | + "node_modules", |
| 115 | + "src", |
| 116 | + "test" |
| 117 | + ], |
| 118 | + "moduleNameMapper": { |
| 119 | + "^test-utils$": "<rootDir>/test/test-utils.tsx" |
| 120 | + }, |
| 121 | + "collectCoverageFrom": [ |
| 122 | + "**/src/**/*.{ts,tsx}" |
| 123 | + ], |
| 124 | + "setupFilesAfterEnv": [ |
| 125 | + "./test/setup.js" |
| 126 | + ], |
| 127 | + "snapshotResolver": "./test/resolve-snapshot.js", |
| 128 | + "snapshotSerializers": [ |
| 129 | + "@dash-ui/jest" |
| 130 | + ], |
| 131 | + "globals": { |
| 132 | + "__DEV__": true |
| 133 | + } |
| 134 | + }, |
| 135 | + "prettier": { |
| 136 | + "semi": false, |
| 137 | + "singleQuote": true, |
| 138 | + "jsxSingleQuote": true, |
| 139 | + "bracketSpacing": false |
| 140 | + }, |
80 | 141 | "devDependencies": {
|
81 |
| - "@babel/preset-react": "latest", |
82 |
| - "@dash-ui/jest": "^1.0.1", |
83 |
| - "@dash-ui/react": "^0.3.3", |
84 |
| - "@dash-ui/styles": "^0.4.6", |
85 |
| - "@essentials/benchmark": "^1.0.5", |
86 |
| - "@lunde/babel-preset-es": "latest", |
| 142 | + "@dash-ui/jest": "^1.1.0", |
| 143 | + "@dash-ui/react": "^0.5.0", |
| 144 | + "@dash-ui/styles": "^0.5.0", |
87 | 145 | "@testing-library/jest-dom": "latest",
|
88 |
| - "@testing-library/react": "^10.0.4", |
| 146 | + "@testing-library/react": "latest", |
89 | 147 | "@testing-library/react-hooks": "latest",
|
| 148 | + "@testing-library/user-event": "latest", |
90 | 149 | "@types/jest": "latest",
|
91 | 150 | "@types/react": "latest",
|
92 |
| - "@types/react-dom": "^16.9.7", |
93 |
| - "@typescript-eslint/eslint-plugin": "^2.30.0", |
94 |
| - "@typescript-eslint/parser": "^2.30.0", |
95 |
| - "babel-plugin-annotate-pure-calls": "^0.4.0", |
96 |
| - "babel-plugin-optimize-react": "latest", |
| 151 | + "@types/react-dom": "latest", |
| 152 | + "babel-jest": "latest", |
97 | 153 | "eslint": "latest",
|
98 |
| - "eslint-import-resolver-jest": "latest", |
99 |
| - "eslint-plugin-jest": "^23.9.0", |
100 |
| - "eslint-plugin-react": "latest", |
101 |
| - "eslint-plugin-react-hooks": "^4.0.0", |
| 154 | + "eslint-config-lunde": "latest", |
102 | 155 | "husky": "latest",
|
103 |
| - "jest": "^25.5.4", |
104 |
| - "jest-styled-components": "^7.0.2", |
105 |
| - "lint-staged": "^10.2.2", |
| 156 | + "jest": "latest", |
| 157 | + "lint-staged": "latest", |
| 158 | + "lundle": "latest", |
106 | 159 | "minify-css.macro": "^1.0.6",
|
107 |
| - "prettier": "^2.0.5", |
108 |
| - "pretty-format": "^25.4.0", |
| 160 | + "prettier": "latest", |
109 | 161 | "react": "latest",
|
110 | 162 | "react-dom": "latest",
|
111 | 163 | "react-test-renderer": "latest",
|
112 |
| - "ts-jest": "latest", |
113 | 164 | "typescript": "latest"
|
114 | 165 | },
|
115 | 166 | "dependencies": {
|
116 |
| - "@dash-ui/mq": "^0.1.5", |
117 |
| - "clsx": "^1.1.0" |
| 167 | + "@dash-ui/mq": "^0.2.0", |
| 168 | + "clsx": "^1.1.1" |
118 | 169 | },
|
119 | 170 | "peerDependencies": {
|
120 | 171 | "@dash-ui/react": ">=0.3.3",
|
|
0 commit comments