Skip to content

Commit

Permalink
feat: ✨ devmoji package
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 13, 2020
1 parent dade671 commit e7e2b61
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 0 deletions.
43 changes: 43 additions & 0 deletions packages/devmoji/.eslintrc.js
@@ -0,0 +1,43 @@
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint"
],
env: {
node: true,
browser: false,
jest: true
},
plugins: ["@typescript-eslint", "prettier", "jest", "import"],
parserOptions: {
ecmaVersion: 2019, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
project: "./tsconfig.json",
impliedStrict: true
},
rules: {
"prettier/prettier": "warn",
"lines-between-class-members": [
"error",
"always",
{ exceptAfterSingleLine: true }
],
"@typescript-eslint/explicit-function-return-type": "off",
"jest/expect-expect": [
"error",
{
assertFunctionNames: ["expect", "request.get.expect"]
}
]
}
}
7 changes: 7 additions & 0 deletions packages/devmoji/.prettierrc
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"useTabs": false,
"printWidth": 80
}
11 changes: 11 additions & 0 deletions packages/devmoji/README.md
@@ -0,0 +1,11 @@
# `devmoji`

> TODO: description
## Usage

```
const devmoji = require('devmoji');
// TODO: DEMONSTRATE API
```
5 changes: 5 additions & 0 deletions packages/devmoji/jest.config.js
@@ -0,0 +1,5 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testPathIgnorePatterns: ["/lib/", "/node_modules/"]
}
48 changes: 48 additions & 0 deletions packages/devmoji/package.json
@@ -0,0 +1,48 @@
{
"name": "devmoji",
"version": "0.0.0",
"description": "Enhance your conventional commits with gitmoji",
"keywords": [
"gitmoji",
"emoji",
"git-commit",
"commitlint"
],
"author": "Folke Lemaitre <folke.lemaitre@gmail.com>",
"homepage": "https://github.com/folke/devmoji#readme",
"license": "MIT",
"main": "lib/devmoji.js",
"files": [
"lib"
],
"publishConfig": {
"registry": "https://registry.yarnpkg.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/folke/devmoji.git"
},
"scripts": {},
"dependencies": {
"commander": "^4.1.0",
"node-emoji": "^1.10.0"
},
"devDependencies": {
"@types/jest": "^24.0.25",
"@types/node": "^13.1.6",
"@types/node-emoji": "^1.8.1",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jest": "^23.4.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^24.9.0",
"prettier": "^1.19.1",
"rimraf": "^3.0.0",
"ts-jest": "^24.3.0",
"ts-node": "^8.6.1",
"typescript": "^3.7.4"
}
}
Empty file added packages/devmoji/src/devmoji.ts
Empty file.
11 changes: 11 additions & 0 deletions packages/devmoji/tsconfig.build.json
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"noEmit": false,
"outDir": "lib",
"rootDir": "src",
"skipLibCheck": false
},
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}
13 changes: 13 additions & 0 deletions packages/devmoji/tsconfig.json
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"declaration": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"importHelpers": true,
"module": "commonjs",
"strict": true,
"target": "ES2015",
"plugins": []
}
}

0 comments on commit e7e2b61

Please sign in to comment.