-
-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ποΈ Transform project into a monorepo (#1235)
* ποΈ Define monorepo architecture * π Extract `gitmojis` as an isolated package * π Extract `website` as an isolated package * π Clean-up root package.json * β Install `turbo` * π§ Setup turborepo * π· Use `turbo` in `ci` workflow * π· Update `npm-publish` workflow with `turbo` * β»οΈ Migrate yarn from `classic` to `berry` * π Update contributing guide * π¨ Update readme * π Add readme file for `gitmojis` package * π Move `public` folder to `website` package
- Loading branch information
1 parent
8d467e9
commit 1ccef5a
Showing
133 changed files
with
10,446 additions
and
6,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.yarn/releases/** binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn run flow && yarn run test | ||
yarn turbo flow && yarn turbo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"*.json": ["prettier --write *.json"], | ||
"*.md": ["prettier --write *.md"] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarnPath: .yarn/releases/yarn-3.3.1.cjs | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,180 +1,24 @@ | ||
{ | ||
"name": "gitmojis", | ||
"version": "3.13.0", | ||
"name": "gitmoji", | ||
"private": true, | ||
"engines": { | ||
"node": "16" | ||
}, | ||
"description": "An emoji guide for your commit messages.", | ||
"private": false, | ||
"main": "src/data/gitmojis.json", | ||
"files": [ | ||
"src/data/gitmojis.json" | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"build": "next build", | ||
"dev": "next dev", | ||
"flow": "flow", | ||
"lint": "eslint src && prettier --check src/**/*.{js,json,css}", | ||
"postbuild": "next-sitemap", | ||
"start": "next start", | ||
"test": "jest --coverage", | ||
"validate:gitmojis": "jsonlint ./src/data/gitmojis.json -V ./src/data/schema.json", | ||
"prepublishOnly": "npm run validate:gitmojis", | ||
"prepare": "husky install" | ||
"prepare": "husky install", | ||
"dev": "yarn turbo dev" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.19.6", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/preset-react": "^7.18.6", | ||
"clipboard": "^2.0.4", | ||
"eslint": "^8.26.0", | ||
"eslint-config-next": "^13.0.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-import-resolver-alias": "^1.1.2", | ||
"eslint-plugin-flowtype": "^8.0.3", | ||
"eslint-plugin-jest": "^27.1.3", | ||
"eslint-plugin-react": "^7.31.10", | ||
"flow-bin": "^0.196.0", | ||
"focus-trap-react": "^10.0.0", | ||
"husky": "^8.0.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.0.1", | ||
"jest-environment-jsdom": "^29.0.1", | ||
"jest-fetch-mock": "^3.0.3", | ||
"jsonlint": "^1.6.3", | ||
"lint-staged": "^13.0.0", | ||
"next": "^13.0.0", | ||
"next-pwa": "^5.4.4", | ||
"next-sitemap": "^2.1.5", | ||
"next-themes": "^0.2.0", | ||
"prettier": "2.8.1", | ||
"prop-types": "^15.8.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-test-renderer": "^18.2.0" | ||
}, | ||
"author": { | ||
"name": "carloscuesta", | ||
"email": "[email protected]", | ||
"url": "https://carloscuesta.me" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/carloscuesta/gitmoji/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/carloscuesta/gitmoji.git" | ||
}, | ||
"homepage": "https://gitmoji.dev", | ||
"keywords": [ | ||
"gitmoji", | ||
"emoji", | ||
"carloscuesta", | ||
"commit" | ||
], | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx}": [ | ||
"eslint --cache --fix", | ||
"prettier --write src/**/*.{js,json,css}", | ||
"git add" | ||
] | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx}" | ||
], | ||
"testMatch": [ | ||
"**/*.(spec).(js)" | ||
], | ||
"moduleNameMapper": { | ||
"^.+\\.css$": "identity-obj-proxy", | ||
"src/(.*)$": "<rootDir>/src/$1" | ||
}, | ||
"testEnvironment": "jsdom" | ||
"turbo": "^1.6.3" | ||
}, | ||
"volta": { | ||
"node": "16.15.0" | ||
}, | ||
"eslintConfig": { | ||
"parser": "@babel/eslint-parser", | ||
"env": { | ||
"jest": true, | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:flowtype/recommended", | ||
"plugin:react/recommended", | ||
"prettier", | ||
"plugin:@next/next/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 12, | ||
"sourceType": "module", | ||
"requireConfigFile": false, | ||
"babelOptions": { | ||
"presets": [ | ||
"next/babel", | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
] | ||
} | ||
}, | ||
"plugins": [ | ||
"react", | ||
"flowtype" | ||
], | ||
"rules": { | ||
"flowtype/require-valid-file-annotation": [ | ||
2, | ||
"always", | ||
{ | ||
"annotationStyle": "line" | ||
} | ||
], | ||
"react/react-in-jsx-scope": "off", | ||
"@next/next/no-img-element": "off", | ||
"react/no-unknown-property": ["error", { "ignore": ["jsx", "global"] }] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.spec.js", | ||
"stubs.js", | ||
"**/__mocks__/*.js" | ||
], | ||
"rules": { | ||
"flowtype/require-valid-file-annotation": 0 | ||
} | ||
} | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect", | ||
"flowVersion": "detect" | ||
}, | ||
"import/resolver": { | ||
"alias": { | ||
"map": [ | ||
[ | ||
"src", | ||
"./src" | ||
] | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"dependencies": {} | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"./src/*.json": ["prettier --write ./src/*.json"] | ||
} |
Oops, something went wrong.
1ccef5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gitmoji β ./
gitmoji-carloscuesta.vercel.app
gitmoji.dev
gitmoji-git-master-carloscuesta.vercel.app