toiljs 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.
Files changed (86) hide show
  1. package/.babelrc +13 -0
  2. package/.gitattributes +2 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  4. package/.github/ISSUE_TEMPLATE/bug_report.yml +90 -0
  5. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  6. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  7. package/.github/PULL_REQUEST_TEMPLATE.md +43 -0
  8. package/.github/changelog-config.json +45 -0
  9. package/.github/dependabot.yml +27 -0
  10. package/.github/workflows/ci.yml +191 -0
  11. package/.idea/codeStyles/Project.xml +54 -0
  12. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  13. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  14. package/.idea/modules.xml +8 -0
  15. package/.idea/prettier.xml +6 -0
  16. package/.idea/toiljs.iml +8 -0
  17. package/.idea/vcs.xml +6 -0
  18. package/.prettierrc.json +12 -0
  19. package/.vscode/settings.json +10 -0
  20. package/CHANGELOG.md +5 -0
  21. package/LICENSE +188 -0
  22. package/README.md +1 -0
  23. package/as-pect.asconfig.json +34 -0
  24. package/as-pect.config.js +65 -0
  25. package/eslint.config.js +48 -0
  26. package/examples/basic/.prettierrc +1 -0
  27. package/examples/basic/client/404.tsx +14 -0
  28. package/examples/basic/client/layout.tsx +14 -0
  29. package/examples/basic/client/routes/about.tsx +13 -0
  30. package/examples/basic/client/routes/blog/[id].tsx +14 -0
  31. package/examples/basic/client/routes/docs/[...slug].tsx +15 -0
  32. package/examples/basic/client/routes/index.tsx +13 -0
  33. package/examples/basic/client/routes/io.tsx +28 -0
  34. package/examples/basic/eslint.config.js +3 -0
  35. package/examples/basic/package.json +24 -0
  36. package/examples/basic/toil.config.ts +7 -0
  37. package/examples/basic/tsconfig.json +4 -0
  38. package/package.json +141 -0
  39. package/presets/eslint.js +77 -0
  40. package/presets/no-uint8array-tostring.js +201 -0
  41. package/presets/prettier.json +11 -0
  42. package/presets/tsconfig.json +37 -0
  43. package/src/backend/index.ts +167 -0
  44. package/src/cli/create.ts +272 -0
  45. package/src/cli/index.ts +161 -0
  46. package/src/cli/ui.ts +79 -0
  47. package/src/client/channel.ts +146 -0
  48. package/src/client/index.ts +12 -0
  49. package/src/client/match.ts +39 -0
  50. package/src/client/runtime.tsx +190 -0
  51. package/src/compiler/config.ts +115 -0
  52. package/src/compiler/generate.ts +91 -0
  53. package/src/compiler/index.ts +49 -0
  54. package/src/compiler/plugin.ts +26 -0
  55. package/src/compiler/routes.ts +70 -0
  56. package/src/compiler/vite.ts +90 -0
  57. package/src/io/BinaryReader.ts +344 -0
  58. package/src/io/BinaryWriter.ts +385 -0
  59. package/src/io/FastMap.ts +127 -0
  60. package/src/io/FastSet.ts +96 -0
  61. package/src/io/index.ts +11 -0
  62. package/src/io/lengths.ts +14 -0
  63. package/src/io/types.ts +18 -0
  64. package/src/logger/index.ts +22 -0
  65. package/src/server/index.ts +11 -0
  66. package/src/server/main.ts +13 -0
  67. package/src/shared/index.ts +10 -0
  68. package/std/client/index.d.ts +15 -0
  69. package/std/client/package.json +3 -0
  70. package/test/channel.test.ts +21 -0
  71. package/test/io.test.ts +85 -0
  72. package/test/placeholder.test.ts +9 -0
  73. package/test/routes.test.ts +42 -0
  74. package/tests/server/example.spec.ts +7 -0
  75. package/toilconfig.json +30 -0
  76. package/tsconfig.backend.json +13 -0
  77. package/tsconfig.base.json +35 -0
  78. package/tsconfig.cli.json +13 -0
  79. package/tsconfig.client.json +14 -0
  80. package/tsconfig.compiler.json +13 -0
  81. package/tsconfig.io.json +12 -0
  82. package/tsconfig.json +22 -0
  83. package/tsconfig.logger.json +12 -0
  84. package/tsconfig.server.json +10 -0
  85. package/tsconfig.shared.json +12 -0
  86. package/vitest.config.ts +22 -0
package/.babelrc ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "sourceType": "module",
3
+ "presets": [
4
+ ["@babel/preset-env", {
5
+ "targets": {
6
+ "esmodules": true
7
+ },
8
+ "bugfixes": true,
9
+ "modules": false
10
+ }],
11
+ "@babel/preset-typescript"
12
+ ]
13
+ }
package/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
@@ -0,0 +1,90 @@
1
+ name: Bug Report
2
+ description: Report a bug in toiljs
3
+ title: "[Bug]: "
4
+ labels: ["bug", "triage"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for taking the time to report a bug.
10
+
11
+ **Security Notice**: If this is a security vulnerability, DO NOT create a public issue. Report it privately via [GitHub Security Advisories](https://github.com/dacely-cloud/toiljs/security/advisories/new).
12
+
13
+ - type: textarea
14
+ id: description
15
+ attributes:
16
+ label: Bug Description
17
+ description: A clear and concise description of the bug.
18
+ placeholder: Describe the bug...
19
+ validations:
20
+ required: true
21
+
22
+ - type: textarea
23
+ id: reproduction
24
+ attributes:
25
+ label: Steps to Reproduce
26
+ description: Steps to reproduce the behavior.
27
+ placeholder: |
28
+ 1. ...
29
+ 2. ...
30
+ 3. ...
31
+ validations:
32
+ required: true
33
+
34
+ - type: textarea
35
+ id: expected
36
+ attributes:
37
+ label: Expected Behavior
38
+ description: What did you expect to happen?
39
+ validations:
40
+ required: true
41
+
42
+ - type: textarea
43
+ id: actual
44
+ attributes:
45
+ label: Actual Behavior
46
+ description: What actually happened?
47
+ validations:
48
+ required: true
49
+
50
+ - type: input
51
+ id: version
52
+ attributes:
53
+ label: toiljs Version
54
+ description: What version of toiljs are you using?
55
+ placeholder: "0.0.1"
56
+ validations:
57
+ required: true
58
+
59
+ - type: input
60
+ id: node-version
61
+ attributes:
62
+ label: Node.js Version
63
+ description: What version of Node.js are you using?
64
+ placeholder: "22.0.0"
65
+ validations:
66
+ required: true
67
+
68
+ - type: textarea
69
+ id: code
70
+ attributes:
71
+ label: Code Example
72
+ description: Minimal code that reproduces the issue.
73
+ render: typescript
74
+
75
+ - type: textarea
76
+ id: logs
77
+ attributes:
78
+ label: Relevant Logs
79
+ description: Please copy and paste any relevant log output.
80
+ render: shell
81
+
82
+ - type: checkboxes
83
+ id: terms
84
+ attributes:
85
+ label: Checklist
86
+ options:
87
+ - label: I have searched existing issues to ensure this bug hasn't been reported
88
+ required: true
89
+ - label: This is NOT a security vulnerability (those should be reported privately)
90
+ required: true
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Security Vulnerability
4
+ url: https://github.com/dacely-cloud/toiljs/security/advisories/new
5
+ about: Report a security vulnerability privately. DO NOT create a public issue for security vulnerabilities.
6
+ - name: Toil Website
7
+ url: https://toil.org/
8
+ about: Visit the Toil homepage for documentation and support.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,43 @@
1
+ ## Description
2
+ <!-- Brief description of the changes in this PR -->
3
+
4
+ ## Type of Change
5
+ <!-- Mark the relevant option with an "x" -->
6
+
7
+ - [ ] Bug fix (non-breaking change that fixes an issue)
8
+ - [ ] New feature (non-breaking change that adds functionality)
9
+ - [ ] Breaking change (fix or feature that would cause existing functionality to change)
10
+ - [ ] Performance improvement
11
+ - [ ] Refactoring (no functional changes)
12
+ - [ ] Documentation update
13
+ - [ ] CI/CD changes
14
+ - [ ] Dependencies update
15
+
16
+ ## Checklist
17
+
18
+ ### Build & Tests
19
+ - [ ] `npm install` completes without errors
20
+ - [ ] `npm test` passes all tests
21
+
22
+ ### Code Quality
23
+ - [ ] Code follows the project's coding standards
24
+ - [ ] No new compiler warnings introduced
25
+ - [ ] Error handling is appropriate
26
+
27
+ ### Documentation
28
+ - [ ] Code comments added for complex logic
29
+ - [ ] Public APIs are documented
30
+ - [ ] README updated (if applicable)
31
+
32
+ ### Security
33
+ - [ ] No sensitive data (keys, credentials) committed
34
+ - [ ] No new security vulnerabilities introduced
35
+
36
+ ## Testing
37
+ <!-- Describe how you tested these changes -->
38
+
39
+ ## Related Issues
40
+ <!-- Link any related issues: Fixes #123, Relates to #456 -->
41
+
42
+ ---
43
+ By submitting this PR, I confirm that my contribution is made under the terms of the project's license.
@@ -0,0 +1,45 @@
1
+ {
2
+ "categories": [
3
+ {
4
+ "title": "### Breaking Changes",
5
+ "labels": ["breaking", "breaking-change", "BREAKING-CHANGE"]
6
+ },
7
+ {
8
+ "title": "### Features",
9
+ "labels": ["feature", "feat", "enhancement"]
10
+ },
11
+ {
12
+ "title": "### Bug Fixes",
13
+ "labels": ["bug", "fix", "bugfix"]
14
+ },
15
+ {
16
+ "title": "### Performance",
17
+ "labels": ["performance", "perf"]
18
+ },
19
+ {
20
+ "title": "### Documentation",
21
+ "labels": ["documentation", "docs"]
22
+ },
23
+ {
24
+ "title": "### Dependencies",
25
+ "labels": ["dependencies", "deps"]
26
+ },
27
+ {
28
+ "title": "### Other Changes",
29
+ "labels": []
30
+ }
31
+ ],
32
+ "sort": {
33
+ "order": "ASC",
34
+ "on_property": "mergedAt"
35
+ },
36
+ "template": "#{{CHANGELOG}}",
37
+ "pr_template": "- #{{TITLE}} (#{{NUMBER}}) by @#{{AUTHOR}}",
38
+ "empty_template": "- No changes",
39
+ "max_tags_to_fetch": 200,
40
+ "max_pull_requests": 200,
41
+ "max_back_track_time_days": 365,
42
+ "tag_resolver": {
43
+ "method": "semver"
44
+ }
45
+ }
@@ -0,0 +1,27 @@
1
+ version: 2
2
+
3
+ updates:
4
+ - package-ecosystem: 'npm'
5
+ directory: '/'
6
+ schedule:
7
+ interval: 'daily'
8
+ time: '06:00'
9
+ timezone: 'America/Toronto'
10
+ open-pull-requests-limit: 10
11
+ rebase-strategy: 'auto'
12
+
13
+ groups:
14
+ production-deps:
15
+ dependency-type: 'production'
16
+ update-types: ['minor', 'patch']
17
+ dev-deps:
18
+ dependency-type: 'development'
19
+ update-types: ['minor', 'patch']
20
+
21
+ commit-message:
22
+ prefix: '⬆️'
23
+ include: scope
24
+
25
+ labels:
26
+ - 'dependencies'
27
+ - 'npm'
@@ -0,0 +1,191 @@
1
+ name: CI for TOILJS
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+
12
+ permissions:
13
+ contents: write
14
+ id-token: write
15
+
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v6
19
+ with:
20
+ fetch-depth: 0
21
+
22
+ - name: Setup Node.js
23
+ uses: actions/setup-node@v6
24
+ with:
25
+ node-version: '24.x'
26
+ registry-url: 'https://registry.npmjs.org'
27
+
28
+ - name: Update npm
29
+ run: npm install -g npm@latest
30
+
31
+ - name: Install dependencies
32
+ run: npm install
33
+
34
+ - name: Build the project
35
+ run: npm run build
36
+
37
+ - name: Determine npm tag
38
+ id: npm_tag
39
+ run: |
40
+ VERSION="${{ github.ref_name }}"
41
+ if [[ "$VERSION" == *"-alpha"* ]]; then
42
+ echo "tag=alpha" >> $GITHUB_OUTPUT
43
+ elif [[ "$VERSION" == *"-beta"* ]]; then
44
+ echo "tag=beta" >> $GITHUB_OUTPUT
45
+ elif [[ "$VERSION" == *"-rc"* ]]; then
46
+ echo "tag=rc" >> $GITHUB_OUTPUT
47
+ else
48
+ echo "tag=latest" >> $GITHUB_OUTPUT
49
+ fi
50
+ echo "Determined npm tag: $(cat $GITHUB_OUTPUT | grep tag | cut -d= -f2)"
51
+
52
+ - name: Publish to npm
53
+ run: npm publish --access public --tag ${{ steps.npm_tag.outputs.tag }}
54
+ env:
55
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56
+
57
+ release:
58
+ runs-on: ubuntu-latest
59
+ needs: publish
60
+
61
+ permissions:
62
+ contents: write
63
+
64
+ steps:
65
+ - name: Checkout code
66
+ uses: actions/checkout@v6
67
+ with:
68
+ fetch-depth: 0
69
+
70
+ - name: Determine if prerelease
71
+ id: prerelease
72
+ run: |
73
+ VERSION="${{ github.ref_name }}"
74
+ if [[ "$VERSION" == *"-alpha"* ]] || [[ "$VERSION" == *"-beta"* ]] || [[ "$VERSION" == *"-rc"* ]]; then
75
+ echo "is_prerelease=true" >> $GITHUB_OUTPUT
76
+ else
77
+ echo "is_prerelease=false" >> $GITHUB_OUTPUT
78
+ fi
79
+
80
+ - name: Generate changelog
81
+ id: changelog
82
+ uses: mikepenz/release-changelog-builder-action@v6
83
+ with:
84
+ ignorePreReleases: ${{ steps.prerelease.outputs.is_prerelease == 'false' }}
85
+ configurationJson: |
86
+ {
87
+ "categories": [
88
+ {
89
+ "title": "### Breaking Changes",
90
+ "labels": ["breaking", "breaking-change", "BREAKING-CHANGE"]
91
+ },
92
+ {
93
+ "title": "### Features",
94
+ "labels": ["feature", "feat", "enhancement"]
95
+ },
96
+ {
97
+ "title": "### Bug Fixes",
98
+ "labels": ["bug", "fix", "bugfix"]
99
+ },
100
+ {
101
+ "title": "### Performance",
102
+ "labels": ["performance", "perf"]
103
+ },
104
+ {
105
+ "title": "### Documentation",
106
+ "labels": ["documentation", "docs"]
107
+ },
108
+ {
109
+ "title": "### Dependencies",
110
+ "labels": ["dependencies", "deps"]
111
+ },
112
+ {
113
+ "title": "### Other Changes",
114
+ "labels": []
115
+ }
116
+ ],
117
+ "sort": {
118
+ "order": "ASC",
119
+ "on_property": "mergedAt"
120
+ },
121
+ "template": "#{{CHANGELOG}}",
122
+ "pr_template": "- #{{TITLE}} ([##{{NUMBER}}](#{{URL}})) by @#{{AUTHOR}}",
123
+ "empty_template": "- No changes",
124
+ "max_tags_to_fetch": 200,
125
+ "max_pull_requests": 200,
126
+ "max_back_track_time_days": 365,
127
+ "tag_resolver": {
128
+ "method": "semver"
129
+ }
130
+ }
131
+ env:
132
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133
+
134
+ - name: Update CHANGELOG.md
135
+ env:
136
+ CHANGELOG_CONTENT: ${{ steps.changelog.outputs.changelog }}
137
+ run: |
138
+ TAG="${{ github.ref_name }}"
139
+ DATE=$(date +%Y-%m-%d)
140
+ NEW_HEADER="## [$TAG] - $DATE"
141
+
142
+ # Write changelog content to temp file using env var (avoids shell escaping)
143
+ printf '%s\n' "$CHANGELOG_CONTENT" > /tmp/new_entry.md
144
+
145
+ if [ -f CHANGELOG.md ]; then
146
+ # Create new file with entry inserted after header line
147
+ {
148
+ head -n 1 CHANGELOG.md
149
+ echo ""
150
+ echo "$NEW_HEADER"
151
+ echo ""
152
+ cat /tmp/new_entry.md
153
+ echo ""
154
+ tail -n +2 CHANGELOG.md
155
+ } > /tmp/CHANGELOG_NEW.md
156
+ mv /tmp/CHANGELOG_NEW.md CHANGELOG.md
157
+ else
158
+ # Create new CHANGELOG.md
159
+ {
160
+ echo "# Changelog"
161
+ echo ""
162
+ echo "All notable changes to this project will be documented in this file."
163
+ echo ""
164
+ echo "This changelog is automatically generated from merged pull requests."
165
+ echo ""
166
+ echo "$NEW_HEADER"
167
+ echo ""
168
+ cat /tmp/new_entry.md
169
+ } > CHANGELOG.md
170
+ fi
171
+
172
+ rm -f /tmp/new_entry.md
173
+
174
+ - name: Commit changelog
175
+ run: |
176
+ git config user.name "github-actions[bot]"
177
+ git config user.email "github-actions[bot]@users.noreply.github.com"
178
+ git add CHANGELOG.md
179
+ git diff --staged --quiet || git commit -m "docs: update CHANGELOG.md for ${{ github.ref_name }}"
180
+ git push origin HEAD:main || echo "No changes to push or push failed"
181
+
182
+ - name: Create GitHub Release
183
+ uses: softprops/action-gh-release@v2
184
+ with:
185
+ tag_name: ${{ github.ref_name }}
186
+ name: Release ${{ github.ref_name }}
187
+ body: ${{ steps.changelog.outputs.changelog }}
188
+ prerelease: ${{ steps.prerelease.outputs.is_prerelease == 'true' }}
189
+ generate_release_notes: false
190
+ env:
191
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,54 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <HTMLCodeStyleSettings>
4
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
+ </HTMLCodeStyleSettings>
6
+ <JSCodeStyleSettings version="0">
7
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
9
+ <option name="USE_DOUBLE_QUOTES" value="false" />
10
+ <option name="FORCE_QUOTE_STYlE" value="true" />
11
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
12
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
13
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
14
+ </JSCodeStyleSettings>
15
+ <TypeScriptCodeStyleSettings version="0">
16
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
17
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
18
+ <option name="USE_DOUBLE_QUOTES" value="false" />
19
+ <option name="FORCE_QUOTE_STYlE" value="true" />
20
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
21
+ <option name="USE_EXPLICIT_JS_EXTENSION" value="ALWAYS_JS" />
22
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
23
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
24
+ </TypeScriptCodeStyleSettings>
25
+ <VueCodeStyleSettings>
26
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
27
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
28
+ </VueCodeStyleSettings>
29
+ <codeStyleSettings language="HTML">
30
+ <option name="SOFT_MARGINS" value="100" />
31
+ <indentOptions>
32
+ <option name="CONTINUATION_INDENT_SIZE" value="4" />
33
+ </indentOptions>
34
+ </codeStyleSettings>
35
+ <codeStyleSettings language="JSON">
36
+ <indentOptions>
37
+ <option name="INDENT_SIZE" value="4" />
38
+ </indentOptions>
39
+ </codeStyleSettings>
40
+ <codeStyleSettings language="JavaScript">
41
+ <option name="SOFT_MARGINS" value="100" />
42
+ </codeStyleSettings>
43
+ <codeStyleSettings language="TypeScript">
44
+ <option name="SOFT_MARGINS" value="100" />
45
+ </codeStyleSettings>
46
+ <codeStyleSettings language="Vue">
47
+ <option name="SOFT_MARGINS" value="100" />
48
+ <indentOptions>
49
+ <option name="INDENT_SIZE" value="4" />
50
+ <option name="TAB_SIZE" value="4" />
51
+ </indentOptions>
52
+ </codeStyleSettings>
53
+ </code_scheme>
54
+ </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,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </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/toiljs.iml" filepath="$PROJECT_DIR$/.idea/toiljs.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myConfigurationMode" value="AUTOMATIC" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
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
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </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="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,12 @@
1
+ {
2
+ "printWidth": 100,
3
+ "trailingComma": "all",
4
+ "tabWidth": 4,
5
+ "semi": true,
6
+ "singleQuote": true,
7
+ "quoteProps": "as-needed",
8
+ "bracketSpacing": true,
9
+ "bracketSameLine": true,
10
+ "arrowParens": "always",
11
+ "singleAttributePerLine": true
12
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "eslint.validate": ["javascript", "typescript"],
3
+ "prettier.useEditorConfig": false,
4
+ "prettier.useTabs": false,
5
+ "prettier.configPath": ".prettierrc.json",
6
+ "prettier.requireConfig": true,
7
+ "prettier.tabWidth": 4,
8
+ "prettier.singleQuote": true,
9
+ "editor.formatOnSave": true,
10
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ This changelog is automatically generated from merged pull requests.