[@portaljs/ckan][m] - fix build

This commit is contained in:
Luccas Mateus de Medeiros Gomes 2023-05-23 20:07:50 -03:00
parent c82bfdd847
commit b8f0a9e432
3 changed files with 138 additions and 11296 deletions

View File

@ -1,14 +1,17 @@
# PortalJS React Components
# PortalJS CKAN Library
**Storybook:** https://storybook.portaljs.org
**Docs**: https://portaljs.org/docs
This is a library intended for the use with a CKAN Backend, it is composed of:
- Types mapping the CKAN API Objects
- A CKAN object that makes API calls
- Components that are usually needed in a data portal(searching, pagination, listing etc)
## Usage
To install this package on your project:
```bash
npm i @portaljs/components
npm i @portaljs/ckan
```
> Note: React 18 is required.
@ -17,13 +20,5 @@ You'll also have to import the styles CSS file in your project:
```ts
// E.g.: Next.js => pages/_app.tsx
import '@portaljs/components/styles.css'
```
## Dev
Use Storybook to work on components by running:
```bash
npm run storybook
import '@portaljs/ckan/styles.css'
```

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,6 @@
"scripts": {
"build": "tsc && vite build && npm run build-tailwind",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify"
},
"peerDependencies": {
@ -23,6 +22,31 @@
"files": [
"dist"
],
"devDependencies": {
"@storybook/addon-essentials": "^7.0.7",
"@storybook/addon-interactions": "^7.0.7",
"@storybook/addon-links": "^7.0.7",
"@storybook/blocks": "^7.0.7",
"@storybook/react": "^7.0.7",
"@storybook/react-vite": "^7.0.7",
"@storybook/testing-library": "^0.0.14-next.2",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.38.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"json": "^11.0.0",
"postcss": "^8.4.23",
"prop-types": "^15.8.1",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.2",
"vite": "^4.3.2",
"vite-plugin-dts": "^2.3.0"
},
"main": "./dist/components.umd.js",
"module": "./dist/components.es.js",
"types": "./dist/index.d.ts",
@ -37,5 +61,10 @@
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"formik": "^2.2.9",
"swr": "^2.1.5",
"timeago.js": "^4.0.2"
}
}