Skip to content

Commit

Permalink
🎉 init: project
Browse files Browse the repository at this point in the history
  • Loading branch information
Rettend committed Oct 28, 2023
1 parent 3e76422 commit 6369023
Show file tree
Hide file tree
Showing 10 changed files with 4,047 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": [
"@antfu"
],
"rules": {
"no-console": "warn"
},
"ignorePatterns": [
"coverage",
"**/cache"
]
}
134 changes: 134 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# vitepress
docs/.vitepress/dist
docs/.vitepress/cache
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# eemoji
(๑•̀ㅂ•́)و✧ Add emojis to git commits

(๑•̀ㅂ•́)و✧ Add emojis to git commits
16 changes: 16 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/index',
],
clean: true,
declaration: true,
rollup: {
emitCJS: true,
},
externals: [
'consola',
'citty',
],
})
12 changes: 12 additions & 0 deletions eemoji.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"format": "{emoji} {type}: {subject}",
"emojis": {
"fix": "🔧",
"feat": "",
"docs": "📝",
"test": "🧪",
"refactor": "♻️",
"chore": "🗑️",
"init": "🎉"
}
}
61 changes: 61 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "eemoji",
"version": "0.1.0",
"packageManager": "pnpm@8.10.0",
"description": "(๑•̀ㅂ•́)و✧ Add emojis to git commits",
"author": "Rettend",
"license": "MIT",
"homepage": "https://github.com/Rettend/eemoji#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Rettend/eemoji.git"
},
"bugs": "https://github.com/Rettend/eemoji/issues",
"keywords": [
"commit",
"emoji"
],
"bin": {
"eemoji": "./dist/index.mjs"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "unbuild && node ./dist/index.mjs",
"stub": "unbuild --stub",
"test": "vitest --ui --coverage",
"lint": "eslint .",
"lint:fix": "pnpm run lint --fix",
"typecheck": "tsc --noEmit",
"release": "unbuild && bumpp && pnpm publish"
},
"dependencies": {
"cosmiconfig": "^8.3.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@types/node": "^20.8.9",
"@vitest/coverage-istanbul": "^0.31.4",
"@vitest/ui": "^0.31.4",
"citty": "^0.1.4",
"consola": "^3.2.3",
"eslint": "^8.52.0",
"typescript": "^5.2.2",
"unbuild": "^1.2.1",
"vite": "^4.5.0",
"vitest": "^0.31.4"
}
}
Loading

0 comments on commit 6369023

Please sign in to comment.