@hug/hospitality 0.0.4-alpha.15 → 0.0.4-alpha.16
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/fesm2022/core.mjs +31 -0
- package/fesm2022/core.mjs.map +1 -0
- package/{material/form-field/form-field.provider.ts → fesm2022/form-field.mjs} +8 -2
- package/fesm2022/form-field.mjs.map +1 -0
- package/fesm2022/hug-hospitality.mjs +4 -0
- package/fesm2022/hug-hospitality.mjs.map +1 -0
- package/fesm2022/tokens.mjs +5053 -0
- package/fesm2022/tokens.mjs.map +1 -0
- package/material/core/directives/components-styling.directive.d.ts +8 -0
- package/material/form-field/form-field.provider.d.ts +2 -0
- package/package.json +93 -93
- package/tokens/{index.ts → index.d.ts} +8 -16
- package/.editorconfig +0 -18
- package/.eslintignore +0 -47
- package/.eslintrc.json +0 -6
- package/.github/ISSUE_TEMPLATE/1-bug-report.yml +0 -57
- package/.github/ISSUE_TEMPLATE/2-feature-request.yml +0 -26
- package/.github/ISSUE_TEMPLATE/3-doc-issue.yml +0 -26
- package/.github/workflows/ci_release.yml +0 -17
- package/.husky/commit-msg +0 -3
- package/.husky/pre-commit +0 -17
- package/.vscode/extensions.json +0 -6
- package/.vscode/settings.json +0 -33
- package/CODE_OF_CONDUCT.md +0 -135
- package/CONTRIBUTING.md +0 -289
- package/DEVELOPER.md +0 -37
- package/material/core/directives/components-styling.directive.ts +0 -20
- package/material/core/ng-package.json +0 -7
- package/material/form-field/ng-package.json +0 -7
- package/ng-package.json +0 -10
- package/tokens/ng-package.json +0 -7
- package/tokens/tokens.json +0 -5042
- package/tsconfig.json +0 -16
- /package/{index.ts → index.d.ts} +0 -0
- /package/material/core/{index.ts → index.d.ts} +0 -0
- /package/material/form-field/{index.ts → index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.mjs","sources":["../../tokens/index.ts","../../tokens/tokens.ts"],"sourcesContent":["import rawTokens from './tokens.json';\n\nexport interface Token {\n id: string;\n name: string;\n type: string;\n value: string | number;\n}\n\nexport interface TokenSystem {\n id?: string;\n name: string;\n type: string;\n reference: Token[];\n _referenceValue:\n | string\n | {\n weight: number;\n size: number;\n lineHeight: number;\n font: string;\n };\n}\n\nexport interface Tokens {\n references: Token[];\n systems: {\n light: TokenSystem[];\n dark: TokenSystem[];\n } | TokenSystem[];\n}\n\nconst tokens: {\n colors: Tokens;\n typographies: Tokens;\n} = rawTokens;\n\nexport { tokens };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,MAAM,GAGR;;ACnCJ;;AAEG;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type HySizeType = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
3
|
+
export declare class ComponentsStylingDirective {
|
|
4
|
+
hySize: import("@angular/core").InputSignal<HySizeType | null>;
|
|
5
|
+
hyAppearance: import("@angular/core").InputSignal<string | null>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsStylingDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentsStylingDirective, " [hy-size], [hy-appearance] ", never, { "hySize": { "alias": "hy-size"; "required": false; "isSignal": true; }; "hyAppearance": { "alias": "hy-appearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@hug/hospitality",
|
|
3
|
+
"version": "0.0.4-alpha.16",
|
|
4
|
+
"description": "Hospitality Design System",
|
|
5
|
+
"homepage": "https://github.com/dsi-hug/hospitality",
|
|
6
|
+
"license": "GPL-3.0-only",
|
|
7
|
+
"author": "HUG - Hôpitaux Universitaires Genève",
|
|
8
|
+
"contributors": [
|
|
9
|
+
"badisi (https://github.com/badisi)"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/dsi-hug/hospitality.git"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public",
|
|
17
|
+
"tag": "latest"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"TODO:"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
"./material/button": {
|
|
24
|
+
"sass": "./material/button/button.scss"
|
|
18
25
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"ncu": "npx npm-check-updates -i --format=group --packageFile '{,projects/**/}package.json'",
|
|
24
|
-
"prepare": "husky || true",
|
|
25
|
-
"lint": "eslint . --fix",
|
|
26
|
-
"lint:ci": "eslint .",
|
|
27
|
-
"build": "ng-packagr -p ng-package.json -c tsconfig.json",
|
|
28
|
-
"release": "npm publish"
|
|
26
|
+
"./material/dialog": {
|
|
27
|
+
"sass": "./material/dialog/dialog.scss"
|
|
29
28
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"./material/dialog": {
|
|
35
|
-
"sass": "./material/dialog/dialog.scss"
|
|
36
|
-
},
|
|
37
|
-
"./material/form-field": {
|
|
38
|
-
"sass": "./material/form-field/form-field.scss"
|
|
39
|
-
},
|
|
40
|
-
"./material/theme": {
|
|
41
|
-
"sass": "./material/theme/theme.scss"
|
|
42
|
-
},
|
|
43
|
-
"./tokens": {
|
|
44
|
-
"style": "./tokens/tokens.css"
|
|
45
|
-
}
|
|
29
|
+
"./material/form-field": {
|
|
30
|
+
"sass": "./material/form-field/form-field.scss",
|
|
31
|
+
"types": "./material/form-field/index.d.ts",
|
|
32
|
+
"default": "./fesm2022/form-field.mjs"
|
|
46
33
|
},
|
|
47
|
-
"
|
|
48
|
-
|
|
34
|
+
"./material/theme": {
|
|
35
|
+
"sass": "./material/theme/theme.scss"
|
|
49
36
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
"./tokens": {
|
|
38
|
+
"style": "./tokens/tokens.css",
|
|
39
|
+
"types": "./tokens/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/tokens.mjs"
|
|
54
41
|
},
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
"@angular/compiler-cli": "^19.2.17",
|
|
58
|
-
"@angular/core": "^19.2.17",
|
|
59
|
-
"@angular/forms": "^19.2.17",
|
|
60
|
-
"@angular/material": "^19.2.19",
|
|
61
|
-
"ng-packagr": "^19.2.2",
|
|
62
|
-
"@commitlint/cli": "^20.2.0",
|
|
63
|
-
"@commitlint/config-conventional": "^20.2.0",
|
|
64
|
-
"@hug/eslint-config": "^20.3.3",
|
|
65
|
-
"husky": "^9.1.7",
|
|
66
|
-
"lint-staged": "^16.2.7"
|
|
42
|
+
"./package.json": {
|
|
43
|
+
"default": "./package.json"
|
|
67
44
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
"rules": {
|
|
73
|
-
"type-enum": [
|
|
74
|
-
2,
|
|
75
|
-
"always",
|
|
76
|
-
[
|
|
77
|
-
"build",
|
|
78
|
-
"chore",
|
|
79
|
-
"ci",
|
|
80
|
-
"docs",
|
|
81
|
-
"feat",
|
|
82
|
-
"fix",
|
|
83
|
-
"perf",
|
|
84
|
-
"refactor",
|
|
85
|
-
"revert",
|
|
86
|
-
"style",
|
|
87
|
-
"test",
|
|
88
|
-
"deps"
|
|
89
|
-
]
|
|
90
|
-
]
|
|
91
|
-
}
|
|
45
|
+
".": {
|
|
46
|
+
"types": "./index.d.ts",
|
|
47
|
+
"default": "./fesm2022/hug-hospitality.mjs"
|
|
92
48
|
},
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
49
|
+
"./material/core": {
|
|
50
|
+
"types": "./material/core/index.d.ts",
|
|
51
|
+
"default": "./fesm2022/core.mjs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@angular/material": "^19.x"
|
|
56
|
+
},
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"@angular/material": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"commitlint": {
|
|
63
|
+
"extends": [
|
|
64
|
+
"@commitlint/config-conventional"
|
|
65
|
+
],
|
|
66
|
+
"rules": {
|
|
67
|
+
"type-enum": [
|
|
68
|
+
2,
|
|
69
|
+
"always",
|
|
70
|
+
[
|
|
71
|
+
"build",
|
|
72
|
+
"chore",
|
|
73
|
+
"ci",
|
|
74
|
+
"docs",
|
|
75
|
+
"feat",
|
|
76
|
+
"fix",
|
|
77
|
+
"perf",
|
|
78
|
+
"refactor",
|
|
79
|
+
"revert",
|
|
80
|
+
"style",
|
|
81
|
+
"test",
|
|
82
|
+
"deps"
|
|
96
83
|
]
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"lint-staged": {
|
|
88
|
+
"**/*.{js,ts,html,json}": [
|
|
89
|
+
"npm run lint"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"engines": {
|
|
93
|
+
"yarn": "Please use Npm instead of Yarn."
|
|
94
|
+
},
|
|
95
|
+
"packageManager": "npm@11.7.0",
|
|
96
|
+
"module": "fesm2022/hug-hospitality.mjs",
|
|
97
|
+
"typings": "index.d.ts",
|
|
98
|
+
"sideEffects": false,
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"tslib": "^2.3.0"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import rawTokens from './tokens.json';
|
|
2
|
-
|
|
3
1
|
export interface Token {
|
|
4
2
|
id: string;
|
|
5
3
|
name: string;
|
|
6
4
|
type: string;
|
|
7
5
|
value: string | number;
|
|
8
6
|
}
|
|
9
|
-
|
|
10
7
|
export interface TokenSystem {
|
|
11
8
|
id?: string;
|
|
12
9
|
name: string;
|
|
13
10
|
type: string;
|
|
14
11
|
reference: Token[];
|
|
15
|
-
_referenceValue:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
font: string;
|
|
22
|
-
};
|
|
12
|
+
_referenceValue: string | {
|
|
13
|
+
weight: number;
|
|
14
|
+
size: number;
|
|
15
|
+
lineHeight: number;
|
|
16
|
+
font: string;
|
|
17
|
+
};
|
|
23
18
|
}
|
|
24
|
-
|
|
25
19
|
export interface Tokens {
|
|
26
20
|
references: Token[];
|
|
27
21
|
systems: {
|
|
@@ -29,10 +23,8 @@ export interface Tokens {
|
|
|
29
23
|
dark: TokenSystem[];
|
|
30
24
|
} | TokenSystem[];
|
|
31
25
|
}
|
|
32
|
-
|
|
33
|
-
const tokens: {
|
|
26
|
+
declare const tokens: {
|
|
34
27
|
colors: Tokens;
|
|
35
28
|
typographies: Tokens;
|
|
36
|
-
}
|
|
37
|
-
|
|
29
|
+
};
|
|
38
30
|
export { tokens };
|
package/.editorconfig
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 4
|
|
8
|
-
end_of_line = lf
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
trim_trailing_whitespace = true
|
|
11
|
-
|
|
12
|
-
[*.ts]
|
|
13
|
-
quote_type = single
|
|
14
|
-
ij_typescript_use_double_quotes = false
|
|
15
|
-
|
|
16
|
-
[*.md]
|
|
17
|
-
max_line_length = off
|
|
18
|
-
trim_trailing_whitespace = false
|
package/.eslintignore
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# Compiled output
|
|
4
|
-
/dist
|
|
5
|
-
/tmp
|
|
6
|
-
/out-tsc
|
|
7
|
-
/bazel-out
|
|
8
|
-
|
|
9
|
-
# Node
|
|
10
|
-
node_modules
|
|
11
|
-
npm-debug.log
|
|
12
|
-
yarn-error.log
|
|
13
|
-
|
|
14
|
-
# IDEs and editors
|
|
15
|
-
.idea/
|
|
16
|
-
.project
|
|
17
|
-
.classpath
|
|
18
|
-
.c9/
|
|
19
|
-
*.launch
|
|
20
|
-
.settings/
|
|
21
|
-
*.sublime-workspace
|
|
22
|
-
|
|
23
|
-
# Visual Studio Code
|
|
24
|
-
.vscode/*
|
|
25
|
-
!.vscode/settings.json
|
|
26
|
-
!.vscode/tasks.json
|
|
27
|
-
!.vscode/launch.json
|
|
28
|
-
!.vscode/extensions.json
|
|
29
|
-
.history/*
|
|
30
|
-
|
|
31
|
-
# Miscellaneous
|
|
32
|
-
/.angular/cache
|
|
33
|
-
.sass-cache/
|
|
34
|
-
/connect.lock
|
|
35
|
-
/coverage
|
|
36
|
-
/libpeerconnection.log
|
|
37
|
-
testem.log
|
|
38
|
-
/typings
|
|
39
|
-
|
|
40
|
-
# System files
|
|
41
|
-
.DS_Store
|
|
42
|
-
Thumbs.db
|
|
43
|
-
|
|
44
|
-
# Capacitor/Cordova
|
|
45
|
-
capacitor.config.ts
|
|
46
|
-
/android
|
|
47
|
-
/ios
|
package/.eslintrc.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
name: 🐞 Bug report
|
|
2
|
-
description: Report a bug in the library
|
|
3
|
-
title: '[BUG] <title>'
|
|
4
|
-
labels: [bug, needs triage]
|
|
5
|
-
|
|
6
|
-
body:
|
|
7
|
-
- type: checkboxes
|
|
8
|
-
attributes:
|
|
9
|
-
label: Is there an existing issue for this?
|
|
10
|
-
description: |
|
|
11
|
-
Please search open and closed issues before submitting a new one.
|
|
12
|
-
Existing issues often contain information about workarounds, resolution or progress updates.
|
|
13
|
-
options:
|
|
14
|
-
- label: I have searched the existing issues
|
|
15
|
-
required: true
|
|
16
|
-
|
|
17
|
-
- type: input
|
|
18
|
-
attributes:
|
|
19
|
-
label: Library version
|
|
20
|
-
description: Please make sure you have installed the latest version and verified it is still an issue.
|
|
21
|
-
placeholder: latest
|
|
22
|
-
validations:
|
|
23
|
-
required: true
|
|
24
|
-
|
|
25
|
-
- type: textarea
|
|
26
|
-
attributes:
|
|
27
|
-
label: Description
|
|
28
|
-
description: A clear & concise description of what you're experiencing.
|
|
29
|
-
validations:
|
|
30
|
-
required: true
|
|
31
|
-
|
|
32
|
-
- type: textarea
|
|
33
|
-
attributes:
|
|
34
|
-
label: Steps to reproduce
|
|
35
|
-
description: |
|
|
36
|
-
Issues that don't have enough info and can't be reproduced will be closed.
|
|
37
|
-
Please provide the steps to reproduce the behavior and if applicable create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
|
|
38
|
-
in a [new repository](https://github.com/new), a [gist](https://gist.github.com) or a [live demo](https://stackblitz.com).
|
|
39
|
-
validations:
|
|
40
|
-
required: false
|
|
41
|
-
|
|
42
|
-
- type: textarea
|
|
43
|
-
attributes:
|
|
44
|
-
label: Environment
|
|
45
|
-
description: |
|
|
46
|
-
examples:
|
|
47
|
-
- **OS Name**: macOS Monterey (version 12.6.1)
|
|
48
|
-
- **System Model Name**: MacBook Pro (16-inch, 2019)
|
|
49
|
-
- **npm**: **`npm -v`**: 7.6.3
|
|
50
|
-
- **Node.js**: **`node -v`**: 13.14.0
|
|
51
|
-
value: |
|
|
52
|
-
- **OS Name**:
|
|
53
|
-
- **System Model Name**:
|
|
54
|
-
- **npm**:
|
|
55
|
-
- **Node.js**:
|
|
56
|
-
validations:
|
|
57
|
-
required: false
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: 🚀 Feature request
|
|
2
|
-
description: Suggest a feature for the library
|
|
3
|
-
title: '[FEATURE] <title>'
|
|
4
|
-
labels: [enhancement, needs triage]
|
|
5
|
-
|
|
6
|
-
body:
|
|
7
|
-
- type: textarea
|
|
8
|
-
attributes:
|
|
9
|
-
label: Description
|
|
10
|
-
description: A clear and concise description of the problem or missing capability.
|
|
11
|
-
validations:
|
|
12
|
-
required: true
|
|
13
|
-
|
|
14
|
-
- type: textarea
|
|
15
|
-
attributes:
|
|
16
|
-
label: Proposed solution
|
|
17
|
-
description: If you have a solution in mind, please describe it.
|
|
18
|
-
validations:
|
|
19
|
-
required: true
|
|
20
|
-
|
|
21
|
-
- type: textarea
|
|
22
|
-
attributes:
|
|
23
|
-
label: Alternatives considered
|
|
24
|
-
description: Have you considered any alternative solutions or workarounds?
|
|
25
|
-
validations:
|
|
26
|
-
required: false
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: 📚 Docs enhancement
|
|
2
|
-
description: File an enhancement or report an issue in the library's documentation
|
|
3
|
-
title: '[DOCS] <title>'
|
|
4
|
-
labels: [documentation, needs triage]
|
|
5
|
-
|
|
6
|
-
body:
|
|
7
|
-
- type: checkboxes
|
|
8
|
-
attributes:
|
|
9
|
-
label: Documentation can be submitted with pull requests
|
|
10
|
-
options:
|
|
11
|
-
- label: I know that I can edit the docs myself but prefer to file this issue instead
|
|
12
|
-
required: true
|
|
13
|
-
|
|
14
|
-
- type: input
|
|
15
|
-
attributes:
|
|
16
|
-
label: Docs URL
|
|
17
|
-
description: The URL of the page you'd like to see an enhancement to or report a problem from.
|
|
18
|
-
validations:
|
|
19
|
-
required: false
|
|
20
|
-
|
|
21
|
-
- type: textarea
|
|
22
|
-
attributes:
|
|
23
|
-
label: Description
|
|
24
|
-
description: A clear and concise description of the enhancement or problem.
|
|
25
|
-
validations:
|
|
26
|
-
required: true
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name: Release library
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [created]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
ci_release:
|
|
9
|
-
uses: dsi-hug/actions/.github/workflows/action.yml@v3
|
|
10
|
-
secrets:
|
|
11
|
-
NPM_TOKEN: ${{ secrets.DSI_HUG_NPM_TOKEN }}
|
|
12
|
-
with:
|
|
13
|
-
working-directory: .
|
|
14
|
-
lint: true
|
|
15
|
-
test: false
|
|
16
|
-
build: true
|
|
17
|
-
release: true
|
package/.husky/commit-msg
DELETED
package/.husky/pre-commit
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
printf "> Validating user email... "
|
|
2
|
-
gitUserEmail="$(git config user.email)"
|
|
3
|
-
if [[ $gitUserEmail =~ ^.*@(hcuge|hug).ch$ ]] ; then
|
|
4
|
-
printf "\n"
|
|
5
|
-
printf "For privacy, git user email should not end with @hcuge.ch or @hug.ch\n"
|
|
6
|
-
printf "Received: %s\n" $gitUserEmail
|
|
7
|
-
printf "\n"
|
|
8
|
-
printf "You can fix this with the following command:\n"
|
|
9
|
-
printf "git config --global user.email <your_email>\n"
|
|
10
|
-
exit 1
|
|
11
|
-
else
|
|
12
|
-
printf "OK\n"
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
printf "> Linting staged files... "
|
|
16
|
-
npx --no -- lint-staged --quiet
|
|
17
|
-
printf "OK\n"
|
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files.eol": "\n",
|
|
3
|
-
"files.watcherExclude": {
|
|
4
|
-
"**/dist/**": true,
|
|
5
|
-
"**/tmp/**": true
|
|
6
|
-
},
|
|
7
|
-
"search.exclude": {
|
|
8
|
-
"**/node_modules": true,
|
|
9
|
-
"**/dist": true,
|
|
10
|
-
"**/tmp": true
|
|
11
|
-
},
|
|
12
|
-
"workbench.iconTheme": "material-icon-theme",
|
|
13
|
-
"material-icon-theme.folders.theme": "none",
|
|
14
|
-
"material-icon-theme.opacity": 0.6,
|
|
15
|
-
"[javascript]": {
|
|
16
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
17
|
-
},
|
|
18
|
-
"[ts]": {
|
|
19
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
20
|
-
},
|
|
21
|
-
"editor.codeActionsOnSave": {
|
|
22
|
-
"source.fixAll.eslint": "explicit"
|
|
23
|
-
},
|
|
24
|
-
"editor.formatOnSave": true,
|
|
25
|
-
"eslint.format.enable": true,
|
|
26
|
-
"html.format.wrapAttributes": "force-aligned",
|
|
27
|
-
"html.format.wrapLineLength": 120,
|
|
28
|
-
"npm.exclude": "**/{dist,tmp}{,/**}",
|
|
29
|
-
"npm.packageManager": "npm",
|
|
30
|
-
"npm.scriptExplorerExclude": [
|
|
31
|
-
"install"
|
|
32
|
-
]
|
|
33
|
-
}
|