Skip to content

Commit

Permalink
Flatten build data
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Nov 1, 2023
1 parent 0c51815 commit 0f9da6a
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 109 deletions.
File renamed without changes.
File renamed without changes.
198 changes: 101 additions & 97 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,99 +1,103 @@
{
"name": "@xola/ui-kit",
"version": "2.1.25",
"description": "Xola UI Kit",
"license": "MIT",
"files": [
"build"
],
"main": "build/ui-kit.umd.js",
"module": "build/ui-kit.mjs",
"types": "index.d.ts",
"scripts": {
"prepare": "node scripts/prepare",
"start": "npm run storybook",
"dev": "npm run storybook",
"storybook": "storybook dev -p 6006 --no-open",
"format": "prettier -l --write src",
"lint": "xola-lint src",
"lint:fix": "xola-lint src --ignore src/stories --fix=true",
"lint:report": "xola-lint --reporter=json src > eslint_report.json",
"test": "jest",
"build": "npm run prepare && npx tsc && vite build",
"build:storybook": "npm run prepare && storybook build"
},
"dependencies": {
"@headlessui/react": "^1.4.0",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/line-clamp": "^0.3.1",
"@tippyjs/react": "^4.2.6",
"clsx": "^1.1.1",
"dayjs": "^1.10.7",
"downshift": "^6.1.5",
"get-user-locale": "^1.4.0",
"google-libphonenumber": "^3.2.22",
"nouislider-react": "^3.4.1",
"prop-types": "^15.7.2",
"react-day-picker": "^7.4.10",
"react-hot-toast": "^2.1.0",
"react-hotkeys-hook": "^3.4.0",
"react-json-view": "^1.21.3",
"react-select": "^5.7.0",
"storybook-addon-designs": "^6.3.1",
"tailwind-merge": "^2.0.0",
"tippy.js": "^6.3.1",
"vite-plugin-dts": "^3.6.3"
},
"devDependencies": {
"@babel/core": "^7.14.8",
"@storybook/addon-actions": "^7.5.2",
"@storybook/addon-essentials": "^7.5.2",
"@storybook/addon-interactions": "^7.5.2",
"@storybook/addon-links": "^7.5.2",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addons": "^7.5.2",
"@storybook/blocks": "^7.5.2",
"@storybook/react": "^7.5.2",
"@storybook/react-vite": "^7.5.2",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^7.5.2",
"@xola/jslint": "^2.1.2",
"autoprefixer": "^10.4.5",
"chromatic": "^6.11.4",
"jest": "^27.2.0",
"lodash": "^4.17.21",
"postcss": "^8.4.5",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"storybook": "^7.5.2",
"storybook-css-modules-preset": "^1.1.1",
"tailwindcss": "^3.1.8",
"typescript": "~4.7",
"vite": "^3.2.7"
},
"peerDependencies": {
"autoprefixer": "^10.3.1",
"lodash": "^4.17.21",
"postcss": "^8.3.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tailwindcss": "^3.0.18"
},
"engines": {
"node": ">=16"
},
"prettier": {
"semi": true,
"printWidth": 120,
"trailingComma": "all",
"singleQuote": false,
"bracketSpacing": true,
"useTabs": false,
"arrowParens": "always",
"bracketSameLine": false,
"tabWidth": 4
}
"name": "@xola/ui-kit",
"version": "2.1.25",
"description": "Xola UI Kit",
"license": "MIT",
"files": [
"build",
"index.d.ts",
"index.css",
"tailwind.config.js",
"postcss.config.js"
],
"main": "build/ui-kit.umd.js",
"module": "build/ui-kit.mjs",
"types": "build/index.d.ts",
"scripts": {
"prepare": "node scripts/prepare",
"start": "npm run storybook",
"dev": "npm run storybook",
"storybook": "storybook dev -p 6006 --no-open",
"format": "prettier -l --write src",
"lint": "xola-lint src",
"lint:fix": "xola-lint src --ignore src/stories --fix=true",
"lint:report": "xola-lint --reporter=json src > eslint_report.json",
"test": "jest",
"build": "npm run prepare && npx tsc && vite build",
"build:storybook": "npm run prepare && storybook build"
},
"dependencies": {
"@headlessui/react": "^1.4.0",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/line-clamp": "^0.3.1",
"@tippyjs/react": "^4.2.6",
"clsx": "^1.1.1",
"dayjs": "^1.10.7",
"downshift": "^6.1.5",
"get-user-locale": "^1.4.0",
"google-libphonenumber": "^3.2.22",
"nouislider-react": "^3.4.1",
"prop-types": "^15.7.2",
"react-day-picker": "^7.4.10",
"react-hot-toast": "^2.1.0",
"react-hotkeys-hook": "^3.4.0",
"react-json-view": "^1.21.3",
"react-select": "^5.7.0",
"storybook-addon-designs": "^6.3.1",
"tailwind-merge": "^2.0.0",
"tippy.js": "^6.3.1",
"vite-plugin-dts": "^3.6.3"
},
"devDependencies": {
"@babel/core": "^7.14.8",
"@storybook/addon-actions": "^7.5.2",
"@storybook/addon-essentials": "^7.5.2",
"@storybook/addon-interactions": "^7.5.2",
"@storybook/addon-links": "^7.5.2",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addons": "^7.5.2",
"@storybook/blocks": "^7.5.2",
"@storybook/react": "^7.5.2",
"@storybook/react-vite": "^7.5.2",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^7.5.2",
"@xola/jslint": "^2.1.2",
"autoprefixer": "^10.4.5",
"chromatic": "^6.11.4",
"jest": "^27.2.0",
"lodash": "^4.17.21",
"postcss": "^8.4.5",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"storybook": "^7.5.2",
"storybook-css-modules-preset": "^1.1.1",
"tailwindcss": "^3.1.8",
"typescript": "~4.7",
"vite": "^3.2.7"
},
"peerDependencies": {
"autoprefixer": "^10.3.1",
"lodash": "^4.17.21",
"postcss": "^8.3.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tailwindcss": "^3.0.18"
},
"engines": {
"node": ">=16"
},
"prettier": {
"semi": true,
"printWidth": 120,
"trailingComma": "all",
"singleQuote": false,
"bracketSpacing": true,
"useTabs": false,
"arrowParens": "always",
"bracketSameLine": false,
"tabWidth": 4
}
}
File renamed without changes.
14 changes: 4 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,12 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"types": [
"vite/client",
"node"
],
"paths": {
"@/*": [
"./src/*"
]
}
"jsx": "react-jsx"
},
"include": [
"./src"
],
"exclude": [
"./src/stories"
]
}
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const dependencies = Object.keys(pkg.dependencies);
const devDependencies = Object.keys(pkg.devDependencies);

export default defineConfig({
plugins: [react(), dts({ include: ["src"] })],
plugins: [dts({ rollupTypes: true, copyDtsFiles: true })],
build: {
copyPublicDir: false,
outDir: "build",

lib: {
entry: resolve(__dirname, "src/index.js"),
entry: resolve(__dirname, "src/index.ts"),
name: "XolaUIKit",
},

Expand Down

0 comments on commit 0f9da6a

Please sign in to comment.