Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LINT-86(Feedback): Refine bootstraping of linting #98

Merged
merged 18 commits into from
Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @feature-sliced/
azinit marked this conversation as resolved.
Show resolved Hide resolved

### Как работает?
CLI - Хранит в себе зависимости, необходимые для работы @feature-sliced/eslint-config.
При запуске, проверяется является ли проект Typescript-проектом:
- парсится файл package.json пользователя, и в случае обнаружения в нём пакетов @types/* или пакета typescript проект признаётся TS-проектом.

Далее запускается ui-prompt, который подтверждает у пользователя установку TS-пакетов, и установку в общем.
При согласии пользователя - запускается процесс установки, проверяется наличе устанавливаемых пакетов у пользователя, в случаю присутствия - пакет пропускается (фильтруется), если запущенно с force - все пакеты принудительно будут установлены.
27 changes: 27 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
Krakazybik marked this conversation as resolved.
Show resolved Hide resolved
"name": "@feature-sliced/eslint-cli",
"version": "0.0.0",
"description": "",
"main": "dist/cli.js",
"scripts": {
"build": "rollup -c rollup.conf.js",
"cli:run": "node src/index.js",
"cli:dev": "nodemon src/index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"clear": "^0.1.0",
"lodash": "^4.17.21",
"meow": "8.1.2",
"picocolors": "^1.0.0",
"prompts": "^2.4.2"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"rollup-plugin-terser": "^7.0.2",
"rollup": "^2.67.3"
}
}
Loading