taraskevizer 0.0.1

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.
@@ -0,0 +1,8 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "restricted",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
@@ -0,0 +1,19 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - "**"
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ version: 7
14
+ - uses: actions/setup-node@v3
15
+ with:
16
+ node-version: 16.x
17
+
18
+ - run: npm ci
19
+ - run: npm run build
@@ -0,0 +1,33 @@
1
+ name: Publish
2
+ on:
3
+ workflow_run:
4
+ workflows: ["CI"]
5
+ types:
6
+ - completed
7
+ push:
8
+ branches:
9
+ - "main"
10
+
11
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
12
+
13
+ jobs:
14
+ publish:
15
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v3
19
+ with:
20
+ version: 7
21
+ - uses: actions/setup-node@v3
22
+ with:
23
+ node-version: 16.x
24
+
25
+ - run: npm ci
26
+ - name: Create Release Pull Request or Publish
27
+ id: changesets
28
+ uses: changesets/action@v1
29
+ with:
30
+ publish: npm run release
31
+ env:
32
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,70 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <option name="OTHER_INDENT_OPTIONS">
4
+ <value>
5
+ <option name="USE_TAB_CHARACTER" value="true" />
6
+ </value>
7
+ </option>
8
+ <HTMLCodeStyleSettings>
9
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
10
+ <option name="HTML_QUOTE_STYLE" value="Single" />
11
+ <option name="HTML_ENFORCE_QUOTES" value="true" />
12
+ </HTMLCodeStyleSettings>
13
+ <JSCodeStyleSettings version="0">
14
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
15
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
16
+ <option name="USE_DOUBLE_QUOTES" value="false" />
17
+ <option name="FORCE_QUOTE_STYlE" value="true" />
18
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
19
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
20
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
21
+ </JSCodeStyleSettings>
22
+ <TypeScriptCodeStyleSettings version="0">
23
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
24
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
25
+ <option name="USE_DOUBLE_QUOTES" value="false" />
26
+ <option name="FORCE_QUOTE_STYlE" value="true" />
27
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
28
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
29
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
30
+ </TypeScriptCodeStyleSettings>
31
+ <VueCodeStyleSettings>
32
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
33
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
34
+ </VueCodeStyleSettings>
35
+ <codeStyleSettings language="HTML">
36
+ <option name="SOFT_MARGINS" value="80" />
37
+ <indentOptions>
38
+ <option name="INDENT_SIZE" value="2" />
39
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
40
+ <option name="TAB_SIZE" value="2" />
41
+ <option name="USE_TAB_CHARACTER" value="true" />
42
+ </indentOptions>
43
+ </codeStyleSettings>
44
+ <codeStyleSettings language="JavaScript">
45
+ <option name="SOFT_MARGINS" value="80" />
46
+ <indentOptions>
47
+ <option name="INDENT_SIZE" value="2" />
48
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
49
+ <option name="TAB_SIZE" value="2" />
50
+ <option name="USE_TAB_CHARACTER" value="true" />
51
+ </indentOptions>
52
+ </codeStyleSettings>
53
+ <codeStyleSettings language="TypeScript">
54
+ <option name="SOFT_MARGINS" value="80" />
55
+ <indentOptions>
56
+ <option name="INDENT_SIZE" value="2" />
57
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
58
+ <option name="TAB_SIZE" value="2" />
59
+ <option name="USE_TAB_CHARACTER" value="true" />
60
+ </indentOptions>
61
+ </codeStyleSettings>
62
+ <codeStyleSettings language="Vue">
63
+ <option name="SOFT_MARGINS" value="80" />
64
+ <indentOptions>
65
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
66
+ <option name="USE_TAB_CHARACTER" value="true" />
67
+ </indentOptions>
68
+ </codeStyleSettings>
69
+ </code_scheme>
70
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/taraskevizer.iml" filepath="$PROJECT_DIR$/.idea/taraskevizer.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myConfigurationMode" value="AUTOMATIC" />
5
+ <option name="myRunOnSave" value="true" />
6
+ <option name="myFilesPattern" value="{**/*,*}.{js,ts}" />
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,3 @@
1
+ src/dict.ts
2
+ json
3
+ dist
package/.prettierrc ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "singleQuote": true,
3
+ "semi": true,
4
+ "useTabs": true
5
+ }
@@ -0,0 +1,41 @@
1
+ type Alphabet = 0 | 1 | 2;
2
+ type J = 0 | 1 | 2;
3
+ type HtmlOptions = {
4
+ g: boolean;
5
+ };
6
+ type TaraskOptions = {
7
+ abc: Alphabet;
8
+ j: J;
9
+ html: false | HtmlOptions;
10
+ };
11
+ type Promisify<T> = T extends (...args: infer TArgs) => infer TReturn
12
+ ? (...args: TArgs) => Promise<TReturn>
13
+ : never;
14
+ type Tarask = (text: string, options: TaraskOptions) => string;
15
+ type TaraskAsync = Promisify<Tarask>;
16
+ type Dict = Record<string, RegExp>;
17
+ type AlphabetDependentDict = {
18
+ [key in Alphabet]?: Dict;
19
+ };
20
+
21
+ declare const taraskSync: Tarask;
22
+ declare const tarask: TaraskAsync;
23
+
24
+ declare const gobj: {
25
+ readonly г: 'ґ';
26
+ readonly Г: 'Ґ';
27
+ readonly ґ: 'г';
28
+ readonly Ґ: 'Г';
29
+ };
30
+
31
+ export {
32
+ AlphabetDependentDict,
33
+ Dict,
34
+ HtmlOptions,
35
+ Tarask,
36
+ TaraskAsync,
37
+ TaraskOptions,
38
+ gobj,
39
+ tarask,
40
+ taraskSync,
41
+ };