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 7 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 - все пакеты принудительно будут установлены.
30 changes: 30 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
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 packages/cli/cli.js",
"cli:dev": "nodemon packages/cli/cli.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"lodash": "^4.17.21",
"meow": "^10.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": "^2.67.3",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-polyfill-node": "^0.8.0",
"rollup-plugin-terser": "^7.0.2"
azinit marked this conversation as resolved.
Show resolved Hide resolved
}
}
Loading