Skip to content

Commit

Permalink
feat: initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Apr 14, 2023
0 parents commit 742e352
Show file tree
Hide file tree
Showing 14 changed files with 4,264 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
.vscode
.github
CHANGELOG.md
README.md
57 changes: 57 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = {
root: true,
extends: [
'plugin:unicorn/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:tailwindcss/recommended',
'prettier',
],
plugins: ['unicorn', 'tailwindcss', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
settings: {
tailwindcss: {
config: 'tailwind/default.config.ts',
},
},
overrides: [
{
files: ['*.vue'],
rules: {
'unicorn/prevent-abbreviations': 'off',
// 'unicorn/filename-case': 'off',
},
},
{
files: ['*.ts'],
rules: {
'unicorn/filename-case': 'error',
},
},
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',

'no-unused-vars': 'off',
'no-undef': 'off',

'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',

'unicorn/filename-case': 'off',
'unicorn/no-null': 'off',

// 'vue/require-expose': 'error',

// 'import/default': 'off',
// 'vue/script-setup-uses-vars': 'error',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/classnames-order': 'error',
},
}
51 changes: 51 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Dependencies
node_modules

# Logs
*.log*

# Temp directories
.temp
.tmp
.cache

# Yarn
**/.yarn/cache
**/.yarn/*state*

# Generated dirs
dist

# Nuxt
.nuxt
.output
.vercel_build_output
.build-*
.env
.netlify

# Env
.env

# Testing
reports
coverage
*.lcov
.nyc_output

# VSCode
.vscode

# Intellij idea
*.iml
.idea

# OSX
.DS_Store
.AppleDouble
.LSOverride
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
strict-peer-dependencies=false
shamefully-hoist=true
use-lockfile-v6=true
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
.vscode
.github
.nuxt
.output
CHANGELOG.md
README.md
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"htmlWhitespaceSensitivity": "ignore"
}
3 changes: 3 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}
78 changes: 78 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"name": "@shuriken-ui/tailwind",
"version": "0.0.0",
"license": "MIT",
"author": "Css Ninja <hello@cssninja.io> (https://cssninja.io)",
"repository": "shuriken-ui/tailwind",
"bugs": "https://github.com/shuriken-ui/tailwind/issues",
"homepage": "https://github.com/shuriken-ui/tailwind",
"keywords": [
"nuxt",
"nuxt3",
"ui",
"framework",
"library",
"components",
"tailwind",
"tailwindcss",
"design-system",
"module"
],
"type": "module",
"exports": {
".": "./src/index.ts",
"./preset": "./src/preset/index.ts",
"./config": "./src/tailwind.config.ts",
"./colors": "./src/colors.ts"
},
"files": [
"src"
],
"scripts": {
"lint": "run-s lint:eslint:fix lint:prettier:fix",
"lint:prettier": "prettier --check \"./**/*.(ts|vue|css|scss|md)\"",
"lint:prettier:fix": "prettier --write \"./**/*.(ts|vue|css|scss|md)\"",
"lint:eslint": "eslint -c .eslintrc.cjs --ext .vue,.ts .",
"lint:eslint:fix": "eslint -c .eslintrc.cjs --fix --ext .vue,.ts .",
"test": "run-p test:*",
"test:lint": "run-s lint:eslint lint:prettier",
"release": "run-s test release:*",
"release:standard-version": "standard-version",
"release:publish": "git push --follow-tags origin main && npm publish",
"prepare": "simple-git-hooks"
},
"dependencies": {
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
"defu": "^6.1.2",
"tailwindcss": "^3.3.1"
},
"devDependencies": {
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@types/node": "18.15.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"commitlint": "^17.5.1",
"eslint": "8.37.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-tailwindcss": "3.10.1",
"eslint-plugin-unicorn": "^46.0.0",
"lint-staged": "^13.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.7",
"simple-git-hooks": "^2.8.1",
"standard-version": "^9.5.0",
"typescript": "^5.0.2"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
"commit-msg": "pnpm commitlint -e -V "
},
"lint-staged": {
"*.ts?(x)": [
"eslint",
"prettier --parser=typescript --write"
]
}
}
Loading

0 comments on commit 742e352

Please sign in to comment.