This commit is contained in:
joneff 2022-02-03 12:05:24 +02:00 коммит произвёл Иван Жеков
Родитель 7d95514120
Коммит d78592a0d0
10 изменённых файлов: 4964 добавлений и 6214 удалений

39
.commitlintrc.json Normal file
Просмотреть файл

@ -0,0 +1,39 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
100
],
"type-case": [
1,
"always",
[
"lower-case",
"upper-case"
]
],
"type-enum": [
2,
"always",
[
"build",
"ci",
"chore",
"docs",
"feat",
"fix",
"infra",
"perf",
"refactor",
"revert",
"style",
"test",
"WIP"
]
]
}
}

Просмотреть файл

@ -13,6 +13,6 @@ max_line_length = off
indent_style = space
indent_size = 4
[{package.json,.travis.yml}]
[{package.json,lerna.json}]
indent_style = space
indent_size = 2

2
.eslintignore Normal file
Просмотреть файл

@ -0,0 +1,2 @@
**/node_modules
**/dist

73
.eslintrc.json Normal file
Просмотреть файл

@ -0,0 +1,73 @@
{
"root": true,
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"no-unexpected-multiline": "error",
"block-scoped-var": "error",
"complexity": [ 1, 15 ],
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "smart"],
"no-alert": "error",
"no-caller": "error",
"no-console": "error",
"no-else-return": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implicit-coercion": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-native-reassign": "error",
"no-new": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-useless-call": "error",
"array-bracket-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "error",
"comma-style": "error",
"consistent-this": ["error", "that"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"jsx-quotes": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"max-params": ["error", 4],
"no-multiple-empty-lines": ["error", {"max": 2}],
"no-nested-ternary": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"semi": [ "error", "always" ],
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-infix-ops": ["error", {"int32Hint": false} ],
"arrow-body-style": "error",
"no-confusing-arrow": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-var": "error",
"yoda": ["error", "never", { "exceptRange": true }]
}
}

4
.husky/commit-msg Executable file
Просмотреть файл

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx commitlint -e

4
.husky/pre-commit Executable file
Просмотреть файл

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run eslint

7
.husky/pre-push Executable file
Просмотреть файл

@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run eslint
npm run build
git diff --exit-code --quiet -- packages/ || (echo -e '\\033[0;31mERROR: Package content is out of date' && exit 1)

Просмотреть файл

@ -1,25 +1,29 @@
{
"lerna": "2.11.0",
"packages": [
"packages/*"
],
"version": "independent",
"command": {
"bootstrap": {
"concurrency": 1,
"npmClientArgs": ["--no-package-lock"]
},
"clean": {
"yes": true
},
"version": {
"allowBranch": ["master", "develop"],
"noPush": true
},
"publish": {
"loglevel": "verbose",
"message": "chore(release): publish packages",
"yes": true
}
"lerna": "4.0.0",
"packages": [
"packages/*"
],
"version": "0.1.2",
"command": {
"bootstrap": {
"concurrency": 1,
"npmClientArgs": [
"--no-package-lock"
]
},
"clean": {
"yes": true
},
"version": {
"allowBranch": ["master", "develop"],
"noPush": true
},
"publish": {
"concurrency": 1,
"loglevel": "silly",
"message": "chore(release): %s",
"verifyAccess": false,
"yes": true
}
}
}

10965
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,26 +1,32 @@
{
"version": "0.0.0",
"scripts": {
"setup": "npm install && npx husky install && npm run bootstrap",
"bootstrap": "lerna bootstrap",
"build": "lerna run build",
"eslint": "eslint \"**/*.js\"",
"migrate": "node scripts/migrate-icons.js && node scripts/update-icon-list.js",
"prepare-packages": "gulp pkg-svg && gulp pkg-font",
"prepare-packages": "lerna run build",
"serve": "npx http-server",
"update": "npx npm-check-updates --upgrade"
},
"devDependencies": {
"@progress/kendo-theme-tasks": "^0.7.0",
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@commitlint/core": "^16.1.0",
"@progress/kendo-theme-tasks": "^1.13.1",
"ansi-colors": "^4.1.1",
"fs-extra": "^9.0.0",
"glob": "^7.1.6",
"gulp": "^4.0.2",
"gulplog": "^1.0.0",
"http-server": "^0.12.3",
"husky": "^4.2.5",
"lerna": "^3.20.2",
"lodash": "^4.17.20",
"node-sass": "^4.14.1",
"eslint": "^8.8.0",
"fs-extra": "^10.0.0",
"glob": "^7.2.0",
"http-server": "^14.1.0",
"husky": "^7.0.4",
"lerna": "^4.0.0",
"lodash": "^4.17.21",
"node-sass": "^7.0.1",
"svg-parser": "^2.0.4",
"svg2ttf": "^5.0.0",
"svgo": "^1.3.2",
"svgpath": "^2.2.3"
"svg2ttf": "^6.0.3",
"svgo": "^2.8.0",
"svgpath": "^2.5.0"
}
}