https://github.com/crashmax-dev/tailwind-plugin
https://github.com/crashmax-dev/tailwind-plugin
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/crashmax-dev/tailwind-plugin
- Owner: crashmax-dev
- Created: 2024-05-14T11:07:31.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T17:39:06.000Z (about 2 years ago)
- Last Synced: 2025-04-06T08:31:50.211Z (about 1 year ago)
- Language: TypeScript
- Size: 1.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue 3 Template
## Requirements
> Node.js 20.12+, PNPM 9+
## Stack
- PNPM
- Turborepo
- Vite
- Vue
- Storybook
## Scripts
- `pnpm i --frozen-lockfile` — Install node dependencies
- `pnpm dev` — Running playground (http://localhost:5173) and storybook (http://localhost:6006)
- `pnpm build` — Building apps and packages
- `pnpm build:packages` — Building all packages
- `pnpm lint` — Check the linting
- `pnpm lint:fix` — Linting and fixing
## CI
- Q: How do i publish packages to NPM?
- A: Add the code below to [.github/workflows/ci.yml](.github/workflows/ci.yml) and add `NPM_TOKEN` to the GitHub repository secrets.
```yaml
- name: Publish packages to NPM
shell: bash
run: |
echo "//registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}"" > ~/.npmrc
pnpm -r --filter='./packages/*' publish --access public --provenance
```
and create a configuration for `vite.config.ts`
```ts
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
export default defineConfig({
plugins: [dts()],
build: {
target: 'esnext',
sourcemap: true,
minify: false,
emptyOutDir: false,
lib: {
entry: './src/index.ts',
name: 'utils',
fileName: 'index'
},
rollupOptions: {
output: {
exports: 'named'
}
}
}
})
```
and you will need to specify the export in the package.json file
```json
{
"files": ["dist"],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
}
}
```