@dvukovic/style-guide 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -1
- package/.eslintrc.js +0 -26
- package/.github/workflows/defalt.yml +0 -49
- package/.prettierignore +0 -1
- package/.prettierrc.js +0 -4
- package/.release-it.json +0 -15
- package/.stylelintrc.js +0 -4
- package/.yarnrc.yml +0 -1
- package/CHANGELOG.md +0 -8
- package/cspell.config.js +0 -17
- package/src/__tests__/Dockerfile +0 -8
- package/src/__tests__/component.tsx +0 -14
- package/src/__tests__/db.sql +0 -4
- package/src/__tests__/schema.prisma +0 -14
- package/src/__tests__/script.js +0 -6
- package/src/__tests__/script.sh +0 -3
- package/src/__tests__/script.test.js +0 -13
- package/src/__tests__/structure.xml +0 -7
- package/src/__tests__/style.css +0 -74
- package/src/__tests__/typed.ts +0 -5
- package/tsconfig.json +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvukovic/style-guide",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"src/eslint",
|
|
6
|
+
"src/cspell",
|
|
7
|
+
"src/prettier",
|
|
8
|
+
"src/stylelint"
|
|
9
|
+
],
|
|
4
10
|
"scripts": {
|
|
5
11
|
"lint": "yarn lint:prettier && yarn lint:eslint && yarn lint:stylelint && yarn lint:spell",
|
|
6
12
|
"lint:eslint": "eslint . --ext .js,.ts,.tsx",
|
package/.eslintrc.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** @type {import("@types/eslint").ESLint.ConfigData} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
root: true,
|
|
4
|
-
parser: "@typescript-eslint/parser",
|
|
5
|
-
ignorePatterns: ["node_modules"],
|
|
6
|
-
extends: [
|
|
7
|
-
"./src/eslint/configs/core.js",
|
|
8
|
-
"./src/eslint/configs/node.js",
|
|
9
|
-
"./src/eslint/configs/mobx.js",
|
|
10
|
-
"./src/eslint/configs/react.js",
|
|
11
|
-
"./src/eslint/configs/next.js",
|
|
12
|
-
],
|
|
13
|
-
parserOptions: {
|
|
14
|
-
project: "./tsconfig.json",
|
|
15
|
-
},
|
|
16
|
-
overrides: [
|
|
17
|
-
{
|
|
18
|
-
files: ["*.ts", ".js"],
|
|
19
|
-
extends: ["./src/eslint/configs/react-typescript.js"],
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
files: ["*.test.ts", "*.test.js"],
|
|
23
|
-
extends: ["./src/eslint/configs/jest.js"],
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: Default
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
pull_request:
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
lint:
|
|
12
|
-
name: Lint
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- name: Enable Corepack
|
|
16
|
-
run: corepack enable
|
|
17
|
-
- uses: actions/checkout@v4
|
|
18
|
-
- uses: actions/setup-node@v4
|
|
19
|
-
with:
|
|
20
|
-
registry-url: "https://registry.npmjs.org"
|
|
21
|
-
node-version: 20.x
|
|
22
|
-
cache: yarn
|
|
23
|
-
- run: yarn
|
|
24
|
-
- run: yarn lint
|
|
25
|
-
|
|
26
|
-
release:
|
|
27
|
-
name: Release
|
|
28
|
-
needs: [lint]
|
|
29
|
-
if: github.ref == 'refs/heads/master'
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
steps:
|
|
32
|
-
- name: Enable Corepack
|
|
33
|
-
run: corepack enable
|
|
34
|
-
- uses: actions/checkout@v4
|
|
35
|
-
- uses: actions/setup-node@v4
|
|
36
|
-
with:
|
|
37
|
-
registry-url: "https://registry.npmjs.org"
|
|
38
|
-
node-version: 20.x
|
|
39
|
-
cache: yarn
|
|
40
|
-
- name: git config
|
|
41
|
-
run: |
|
|
42
|
-
git config user.name "${GITHUB_ACTOR}"
|
|
43
|
-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
|
44
|
-
- run: yarn
|
|
45
|
-
- run: yarn release --ci
|
|
46
|
-
env:
|
|
47
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
48
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
49
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/.prettierignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
CHANGELOG.md
|
package/.prettierrc.js
DELETED
package/.release-it.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
|
|
3
|
-
"github": {
|
|
4
|
-
"release": true
|
|
5
|
-
},
|
|
6
|
-
"plugins": {
|
|
7
|
-
"@release-it/conventional-changelog": {
|
|
8
|
-
"infile": "CHANGELOG.md",
|
|
9
|
-
"header": "# Changelog",
|
|
10
|
-
"preset": {
|
|
11
|
-
"name": "conventionalcommits"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
package/.stylelintrc.js
DELETED
package/.yarnrc.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodeLinker: node-modules
|
package/CHANGELOG.md
DELETED
package/cspell.config.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @type {import("cspell").FileSettings} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
useGitignore: true,
|
|
4
|
-
cache: {
|
|
5
|
-
useCache: true,
|
|
6
|
-
cacheLocation: "./node_modules/.cache/cspell",
|
|
7
|
-
},
|
|
8
|
-
dictionaryDefinitions: [
|
|
9
|
-
{
|
|
10
|
-
name: "shared",
|
|
11
|
-
path: "./src/cspell/base.txt",
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
caseSensitive: false,
|
|
15
|
-
ignorePaths: ["./src/cspell/base.txt"],
|
|
16
|
-
dictionaries: ["shared"],
|
|
17
|
-
}
|
package/src/__tests__/Dockerfile
DELETED
package/src/__tests__/db.sql
DELETED
package/src/__tests__/script.js
DELETED
package/src/__tests__/script.sh
DELETED
package/src/__tests__/style.css
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--orange-1: #ffa500;
|
|
3
|
-
--yellow-1: #f9b916;
|
|
4
|
-
--black: #000000;
|
|
5
|
-
--gray-1: #c6c6c6;
|
|
6
|
-
--gray-2: #515151;
|
|
7
|
-
--gray-3: #e5e5e5;
|
|
8
|
-
--gray-4: #f2f4f4;
|
|
9
|
-
--gray-5: #767676;
|
|
10
|
-
--green-1: #2aa83f;
|
|
11
|
-
--blue-1: #307cff;
|
|
12
|
-
--pink-1: #f6eeff;
|
|
13
|
-
--purple-1: #be16f9;
|
|
14
|
-
--purple-2: #7e30f5;
|
|
15
|
-
--purple-3: #312665;
|
|
16
|
-
--purple-4: #f6eeff;
|
|
17
|
-
--red-1: #fc3e1c;
|
|
18
|
-
--white: #ffffff;
|
|
19
|
-
--shadow-1: 0 4px 4px 0 rgb(0 0 0 / 8%);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.container {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
padding: 25px;
|
|
26
|
-
row-gap: 23px;
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.title {
|
|
31
|
-
font-size: 1.25rem;
|
|
32
|
-
font-weight: 500;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.infoContainer {
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.infoLink {
|
|
40
|
-
color: var(--gray-2);
|
|
41
|
-
text-decoration: underline;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.header {
|
|
45
|
-
align-items: center;
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: space-between;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.headerLeftSection {
|
|
51
|
-
align-items: center;
|
|
52
|
-
column-gap: 20px;
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: flex-start;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.map {
|
|
58
|
-
height: 550px;
|
|
59
|
-
width: 100%;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.mapContainer {
|
|
63
|
-
background-color: var(--white);
|
|
64
|
-
padding: 13px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.itemsContainer {
|
|
68
|
-
background-color: var(--white);
|
|
69
|
-
min-height: 200px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
a {
|
|
73
|
-
color: #ffffff;
|
|
74
|
-
}
|
package/src/__tests__/typed.ts
DELETED
package/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"jsx": "react",
|
|
4
|
-
"target": "es2016",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"noUncheckedIndexedAccess": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
},
|
|
12
|
-
"include": ["src/**/*", "*.js", ".*.js"]
|
|
13
|
-
}
|