oc 0.50.48 → 0.50.49

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 (51) hide show
  1. package/.turbo/turbo-build.log +18 -0
  2. package/.turbo/turbo-lint.log +5 -0
  3. package/.turbo/turbo-test-silent.log +43 -0
  4. package/.turbo/turbo-test.log +1612 -0
  5. package/CHANGELOG.md +385 -13
  6. package/README.md +4 -4
  7. package/dist/cli/domain/registry.js +5 -5
  8. package/dist/cli/facade/dev.js +1 -1
  9. package/dist/cli/facade/publish.js +1 -1
  10. package/dist/components/oc-client/_package/package.json +4 -4
  11. package/dist/components/oc-client/_package/server.js +1 -1
  12. package/dist/components/oc-client/_package/src/oc-client.js +7 -133
  13. package/dist/components/oc-client/_package/src/oc-client.min.js +1 -15
  14. package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
  15. package/dist/components/oc-client/package.json +1 -1
  16. package/dist/components/oc-client/src/oc-client.js +7 -133
  17. package/dist/components/oc-client/src/oc-client.min.js +1 -15
  18. package/dist/components/oc-client/src/oc-client.min.map +1 -1
  19. package/dist/registry/domain/components-details.js +44 -10
  20. package/dist/registry/domain/nested-renderer.js +1 -1
  21. package/dist/registry/domain/repository.js +15 -4
  22. package/dist/registry/domain/url-builder.js +1 -1
  23. package/dist/registry/domain/validators/registry-configuration.js +3 -4
  24. package/dist/registry/routes/component-info.js +1 -1
  25. package/dist/registry/routes/helpers/format-error-stack.js +0 -31
  26. package/dist/registry/routes/helpers/get-component.js +37 -26
  27. package/dist/registry/routes/index.js +1 -1
  28. package/dist/registry/routes/validate.js +1 -1
  29. package/dist/registry/views/partials/components-list.js +1 -1
  30. package/dist/registry/views/static/index.d.ts +1 -1
  31. package/dist/registry/views/static/index.js +39 -5
  32. package/dist/registry/views/static/style.d.ts +1 -1
  33. package/dist/registry/views/static/style.js +20 -16
  34. package/dist/utils/clean-require.js +1 -1
  35. package/dist/utils/module-exists.js +1 -1
  36. package/package.json +121 -128
  37. package/tsconfig.json +33 -33
  38. package/.editorconfig +0 -9
  39. package/.github/ISSUE_TEMPLATE.md +0 -29
  40. package/.github/PULL_REQUEST_TEMPLATE.md +0 -21
  41. package/.github/workflows/node.js.yml +0 -29
  42. package/.nvmrc +0 -1
  43. package/.prettierrc +0 -8
  44. package/.yarnrc.yml +0 -1
  45. package/AGENTS.md +0 -58
  46. package/CONTRIBUTING.md +0 -68
  47. package/LICENSE +0 -20
  48. package/biome.json +0 -52
  49. package/lefthook.yml +0 -5
  50. package/logo-type.png +0 -0
  51. package/logo.png +0 -0
package/package.json CHANGED
@@ -1,130 +1,123 @@
1
1
  {
2
- "name": "oc",
3
- "version": "0.50.48",
4
- "description": "A framework for developing and distributing html components",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "bin": "./dist/oc-cli.js",
8
- "scripts": {
9
- "lint": "npx @biomejs/biome check preview src test tasks",
10
- "lint:apply": "npx @biomejs/biome check --write preview src test tasks",
11
- "prebuild": "rimraf dist",
12
- "build": "npm run lint && tsc && node tasks/build.js",
13
- "git-stage-and-push": "node tasks/git-stage-and-push.js",
14
- "npm-publish": "node tasks/npm-publish.js",
15
- "publish-major": "npm run test-silent && npm run version-major && node tasks/build.js && npm run git-stage-and-push && npm run npm-publish",
16
- "publish-minor": "npm run test-silent && npm run version-minor && node tasks/build.js && npm run git-stage-and-push && npm run npm-publish",
17
- "publish-patch": "npm run test-silent && npm run version-patch && node tasks/build.js && npm run git-stage-and-push && npm run npm-publish",
18
- "test": "npm run build && node tasks/mochaTest.js",
19
- "test-silent": "npm run build && node tasks/mochaTest.js --silent",
20
- "version-major": "node tasks/version.js --type=\"major\"",
21
- "version-minor": "node tasks/version.js --type=\"minor\"",
22
- "version-patch": "node tasks/version.js --type=\"patch\"",
23
- "prepare": "lefthook install"
24
- },
25
- "engines": {
26
- "node": ">=18"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/opencomponents/oc"
31
- },
32
- "author": "Matteo Figus",
33
- "license": "MIT",
34
- "bugs": {
35
- "url": "https://github.com/opencomponents/oc/issues"
36
- },
37
- "homepage": "https://github.com/opencomponents/oc",
38
- "keywords": [
39
- "open components",
40
- "components",
41
- "oc"
42
- ],
43
- "devDependencies": {
44
- "@biomejs/biome": "2.2.4",
45
- "@types/accept-language-parser": "^1.5.8",
46
- "@types/async": "^3.2.25",
47
- "@types/bun": "^1.2.22",
48
- "@types/cookie-parser": "^1.4.9",
49
- "@types/cross-spawn": "^6.0.6",
50
- "@types/errorhandler": "^1.5.3",
51
- "@types/express": "^5.0.3",
52
- "@types/fs-extra": "^11.0.4",
53
- "@types/livereload": "^0.9.5",
54
- "@types/morgan": "^1.9.10",
55
- "@types/multer": "^2.0.0",
56
- "@types/node": "^24.5.0",
57
- "@types/parse-author": "^2.0.3",
58
- "@types/read": "^0.0.32",
59
- "@types/response-time": "^2.3.9",
60
- "@types/semver": "^7.7.1",
61
- "@types/targz": "^1.0.5",
62
- "@types/yargs": "^17.0.33",
63
- "chai": "^6.0.1",
64
- "chalk": "^4.1.2",
65
- "glob": "^7.2.3",
66
- "injectr": "^0.5.1",
67
- "lefthook": "^1.13.0",
68
- "minimist": "^1.2.8",
69
- "mocha": "^11.7.2",
70
- "node-emoji": "^2.2.0",
71
- "rimraf": "^6.0.1",
72
- "semver-sort": "^1.0.0",
73
- "simple-git": "^3.28.0",
74
- "sinon": "^21.0.0",
75
- "type-fest": "^2.19.0",
76
- "typescript": "^5.9.2"
77
- },
78
- "dependencies": {
79
- "@kitajs/html": "^4.2.10",
80
- "@kitajs/ts-html-plugin": "^4.1.3",
81
- "@rdevis/turbo-stream": "^2.4.1",
82
- "@types/lodash.isequal": "^4.5.8",
83
- "accept-language-parser": "^1.5.0",
84
- "async": "^3.2.6",
85
- "basic-auth-connect": "^1.1.0",
86
- "builtin-modules": "^3.3.0",
87
- "chokidar": "^4.0.3",
88
- "colors": "^1.4.0",
89
- "cookie-parser": "^1.4.7",
90
- "cross-spawn": "^7.0.6",
91
- "dependency-graph": "^1.0.0",
92
- "dotenv": "^17.2.2",
93
- "errorhandler": "^1.5.1",
94
- "express": "^5.1.0",
95
- "form-data": "^4.0.4",
96
- "fs-extra": "^11.3.2",
97
- "getport": "^0.1.0",
98
- "livereload": "^0.10.3",
99
- "lodash.isequal": "^4.5.0",
100
- "morgan": "^1.10.1",
101
- "multer": "^2.0.2",
102
- "nice-cache": "^0.0.5",
103
- "oc-client": "^4.0.3",
104
- "oc-client-browser": "^2.1.10",
105
- "oc-empty-response-handler": "^1.0.2",
106
- "oc-get-unix-utc-timestamp": "^1.0.6",
107
- "oc-s3-storage-adapter": "^2.2.2",
108
- "oc-storage-adapters-utils": "^2.1.2",
109
- "oc-template-es6": "^2.0.0",
110
- "oc-template-es6-compiler": "^7.1.2",
111
- "oc-template-handlebars": "^6.0.26",
112
- "oc-template-handlebars-compiler": "^6.7.1",
113
- "oc-template-jade": "^7.0.6",
114
- "oc-template-jade-compiler": "^7.5.0",
115
- "open": "^10.2.0",
116
- "parse-author": "^2.0.0",
117
- "read": "^1.0.7",
118
- "require-package-name": "^2.0.1",
119
- "response-time": "^2.3.4",
120
- "semver": "^7.7.2",
121
- "semver-extra": "^3.0.0",
122
- "serialize-error": "^12.0.0",
123
- "source-map": "^0.7.6",
124
- "targz": "^1.0.1",
125
- "try-require": "^1.2.1",
126
- "undici": "^7.16.0",
127
- "universalify": "^2.0.1",
128
- "yargs": "^17.7.2"
129
- }
2
+ "name": "oc",
3
+ "version": "0.50.49",
4
+ "description": "A framework for developing and distributing html components",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "bin": "./dist/oc-cli.js",
8
+ "scripts": {
9
+ "lint": "npx @biomejs/biome check preview src test tasks",
10
+ "lint:apply": "npx @biomejs/biome check --write preview src test tasks",
11
+ "preview": "bun run preview/uiPreview.ts",
12
+ "prebuild": "rimraf dist",
13
+ "build": "npm run lint && tsc && node tasks/build.js",
14
+ "test": "npm run build && node tasks/mochaTest.js",
15
+ "test-silent": "npm run build && node tasks/mochaTest.js --silent",
16
+ "bench": "node tasks/benchmarks/server-benchmark.js --repetitions=5",
17
+ "bench:quick": "node tasks/benchmarks/server-benchmark.js --repetitions=3",
18
+ "bench:update-baseline": "node tasks/benchmarks/server-benchmark.js --repetitions=5 --update-baseline=true",
19
+ "bench:high-load": "node tasks/benchmarks/server-benchmark.js --scenarios=high-load-local,high-load-storage --high-load-repetitions=3"
20
+ },
21
+ "engines": {
22
+ "node": ">=18"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/opencomponents/oc"
27
+ },
28
+ "author": "Matteo Figus",
29
+ "license": "MIT",
30
+ "bugs": {
31
+ "url": "https://github.com/opencomponents/oc/issues"
32
+ },
33
+ "homepage": "https://github.com/opencomponents/oc",
34
+ "keywords": [
35
+ "open components",
36
+ "components",
37
+ "oc"
38
+ ],
39
+ "devDependencies": {
40
+ "@biomejs/biome": "2.2.4",
41
+ "@types/accept-language-parser": "^1.5.8",
42
+ "@types/async": "^3.2.25",
43
+ "@types/bun": "^1.2.22",
44
+ "@types/cookie-parser": "^1.4.9",
45
+ "@types/cross-spawn": "^6.0.6",
46
+ "@types/errorhandler": "^1.5.3",
47
+ "@types/express": "^5.0.3",
48
+ "@types/fs-extra": "^11.0.4",
49
+ "@types/livereload": "^0.9.5",
50
+ "@types/morgan": "^1.9.10",
51
+ "@types/multer": "^2.0.0",
52
+ "@types/node": "^24.5.0",
53
+ "@types/parse-author": "^2.0.3",
54
+ "@types/read": "^0.0.32",
55
+ "@types/response-time": "^2.3.9",
56
+ "@types/semver": "^7.7.1",
57
+ "@types/targz": "^1.0.5",
58
+ "@types/yargs": "^17.0.33",
59
+ "chai": "^6.0.1",
60
+ "chalk": "^4.1.2",
61
+ "glob": "^7.2.3",
62
+ "injectr": "^0.5.1",
63
+ "minimist": "^1.2.8",
64
+ "mocha": "^11.7.2",
65
+ "node-emoji": "^2.2.0",
66
+ "rimraf": "^6.0.1",
67
+ "sinon": "^21.0.0",
68
+ "type-fest": "^2.19.0",
69
+ "typescript": "^5.9.2"
70
+ },
71
+ "dependencies": {
72
+ "@kitajs/html": "^4.2.10",
73
+ "@kitajs/ts-html-plugin": "^4.1.3",
74
+ "@rdevis/turbo-stream": "^2.4.1",
75
+ "@types/lodash.isequal": "^4.5.8",
76
+ "accept-language-parser": "^1.5.0",
77
+ "async": "^3.2.6",
78
+ "basic-auth-connect": "^1.1.0",
79
+ "builtin-modules": "^3.3.0",
80
+ "chokidar": "^4.0.3",
81
+ "colors": "^1.4.0",
82
+ "cookie-parser": "^1.4.7",
83
+ "cross-spawn": "^7.0.6",
84
+ "dependency-graph": "^1.0.0",
85
+ "dotenv": "^17.2.2",
86
+ "errorhandler": "^1.5.1",
87
+ "express": "^5.1.0",
88
+ "form-data": "^4.0.4",
89
+ "fs-extra": "^11.3.2",
90
+ "getport": "^0.1.0",
91
+ "livereload": "^0.10.3",
92
+ "lodash.isequal": "^4.5.0",
93
+ "morgan": "^1.10.1",
94
+ "multer": "^2.0.2",
95
+ "nice-cache": "^0.0.5",
96
+ "oc-client": "^4.0.3",
97
+ "oc-client-browser": "*",
98
+ "oc-empty-response-handler": "^1.0.2",
99
+ "oc-get-unix-utc-timestamp": "^1.0.6",
100
+ "oc-s3-storage-adapter": "^2.2.2",
101
+ "oc-storage-adapters-utils": "^2.1.2",
102
+ "oc-template-es6": "^2.0.0",
103
+ "oc-template-es6-compiler": "^7.1.2",
104
+ "oc-template-handlebars": "^6.0.26",
105
+ "oc-template-handlebars-compiler": "^6.7.1",
106
+ "oc-template-jade": "^7.0.6",
107
+ "oc-template-jade-compiler": "^7.5.0",
108
+ "open": "^10.2.0",
109
+ "parse-author": "^2.0.0",
110
+ "read": "^1.0.7",
111
+ "require-package-name": "^2.0.1",
112
+ "response-time": "^2.3.4",
113
+ "semver": "^7.7.2",
114
+ "semver-extra": "^3.0.0",
115
+ "serialize-error": "^12.0.0",
116
+ "source-map": "^0.7.6",
117
+ "targz": "^1.0.1",
118
+ "try-require": "^1.2.1",
119
+ "undici": "^7.16.0",
120
+ "universalify": "^2.0.1",
121
+ "yargs": "^17.7.2"
122
+ }
130
123
  }
package/tsconfig.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
- "include": ["src"],
3
- "exclude": ["node_modules", "src/components/oc-client/**"],
4
- "compilerOptions": {
5
- "jsx": "react-jsx",
6
- "jsxImportSource": "@kitajs/html",
7
- "plugins": [{ "name": "@kitajs/ts-html-plugin" }],
8
- "target": "ES2022",
9
- "module": "commonjs",
10
- "allowJs": true,
11
- "checkJs": true,
12
- "declaration": true,
13
- "outDir": "./dist",
14
- "esModuleInterop": true,
15
- "forceConsistentCasingInFileNames": true,
16
- "strict": true,
17
- "noImplicitAny": true,
18
- "strictNullChecks": true,
19
- "strictFunctionTypes": true,
20
- "strictBindCallApply": true,
21
- "strictPropertyInitialization": true,
22
- "noImplicitThis": true,
23
- "useUnknownInCatchVariables": true,
24
- "alwaysStrict": true,
25
- "noUnusedLocals": true,
26
- "noUnusedParameters": true,
27
- "noImplicitReturns": true,
28
- "noFallthroughCasesInSwitch": true,
29
- "noImplicitOverride": true,
30
- "noPropertyAccessFromIndexSignature": true,
31
- "allowUnusedLabels": false,
32
- "allowUnreachableCode": false,
33
- "skipLibCheck": true
34
- }
2
+ "include": ["src"],
3
+ "exclude": ["node_modules", "src/components/oc-client/**"],
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx",
6
+ "jsxImportSource": "@kitajs/html",
7
+ "plugins": [{ "name": "@kitajs/ts-html-plugin" }],
8
+ "target": "ES2022",
9
+ "module": "commonjs",
10
+ "allowJs": true,
11
+ "checkJs": true,
12
+ "declaration": true,
13
+ "outDir": "./dist",
14
+ "esModuleInterop": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "strict": true,
17
+ "noImplicitAny": true,
18
+ "strictNullChecks": true,
19
+ "strictFunctionTypes": true,
20
+ "strictBindCallApply": true,
21
+ "strictPropertyInitialization": true,
22
+ "noImplicitThis": true,
23
+ "useUnknownInCatchVariables": true,
24
+ "alwaysStrict": true,
25
+ "noUnusedLocals": true,
26
+ "noUnusedParameters": true,
27
+ "noImplicitReturns": true,
28
+ "noFallthroughCasesInSwitch": true,
29
+ "noImplicitOverride": true,
30
+ "noPropertyAccessFromIndexSignature": true,
31
+ "allowUnusedLabels": false,
32
+ "allowUnreachableCode": false,
33
+ "skipLibCheck": true
34
+ }
35
35
  }
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- end_of_line = lf
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
@@ -1,29 +0,0 @@
1
- ## _Who_ is the bug affecting?
2
-
3
- <!-- Ex. API consumers, component creators, etc. -->
4
-
5
- ## _What_ is affected by this bug?
6
-
7
- <!-- Ex. node client, api, browser client, etc. -->
8
-
9
- ## _When_ does this occur?
10
-
11
- <!-- Ex. After rendering, when saving a file, etc. -->
12
-
13
- ## _Where_ on the platform does it happen?
14
-
15
- <!-- Ex. In the api, cli, clients, etc. -->
16
-
17
- ## _How_ do we replicate the issue?
18
-
19
- <!-- Please be specific as possible. Use dashes (-) or numbers (1.) to create a list of steps -->
20
-
21
- ## Expected behavior (i.e. solution)
22
-
23
- <!-- What should have happened? -->
24
-
25
- ## What version of OC, Node.js and OS are you using?
26
-
27
- <!-- For instance OC@0.31.0, Node 8.9.0, Linux -->
28
-
29
- ## Other Comments
@@ -1,21 +0,0 @@
1
- Please do not create a Pull Request without creating an issue first.
2
- Any change needs to be discussed before proceeding.
3
- Failure to do so may result in the rejection of the pull request.
4
-
5
- Please provide enough information so that others can review your pull request:
6
-
7
- <!-- You can skip this if you're fixing a typo or adding an app to the Showcase. -->
8
-
9
- Explain the **details** for making this change. What existing problem does the pull request solve?
10
-
11
- <!-- Example: When "Adding a function to do X", explain why it is necessary to have a way to do X. -->
12
-
13
- **Test plan (required)**
14
-
15
- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
16
-
17
- <!-- Make sure tests pass on both Travis and AppVeyor. -->
18
-
19
- **Closing issues**
20
-
21
- Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such).
@@ -1,29 +0,0 @@
1
- # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
-
4
- name: Node.js CI
5
-
6
- on:
7
- push:
8
- branches: [master]
9
- pull_request:
10
- branches: [master]
11
-
12
- jobs:
13
- build:
14
- runs-on: ubuntu-latest
15
-
16
- strategy:
17
- matrix:
18
- node-version: [20.x, 22.x, 24.x]
19
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20
-
21
- steps:
22
- - uses: actions/checkout@v4
23
- - name: Use Node.js ${{ matrix.node-version }}
24
- uses: actions/setup-node@v4
25
- with:
26
- node-version: ${{ matrix.node-version }}
27
- cache: 'npm'
28
- - run: npm ci
29
- - run: npm test
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 18
package/.prettierrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "trailingComma": "none",
3
- "tabWidth": 2,
4
- "semi": true,
5
- "singleQuote": true,
6
- "useTabs": false,
7
- "arrowParens": "avoid"
8
- }
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: node-modules
package/AGENTS.md DELETED
@@ -1,58 +0,0 @@
1
- ## Rules
2
-
3
- ### 1. File & Folder Organization
4
- - **Domain-driven structure**: Organize code by business domains (`cli/`, `registry/`, `components/`, `utils/`)
5
- - **Subfolder patterns**: Use consistent patterns (`domain/`, `routes/`, `views/`, `middleware/`)
6
- - **File naming**: Use kebab-case for all files and folders (`components-cache`, `package-json-validator`)
7
- - **Module exports**: Use `index.ts` files for clean public APIs and re-exports
8
- - **Centralized types**: Place shared TypeScript interfaces in `src/types.ts`
9
-
10
- ### 2. TypeScript Coding Standards
11
- - **Strict compilation**: All code must pass TypeScript strict mode checks
12
- - **Interface design**: Use comprehensive interfaces with optional properties (`?` syntax)
13
- - **Type imports**: Use `import type` for type-only dependencies
14
- - **Union types**: Use union types for constrained values (`'oc-registry' | 'oc-registry-local'`)
15
- - **Generic interfaces**: Extend base types like `PackageJson` for specialized interfaces
16
- - **Naming conventions**:
17
- - camelCase for variables/functions (`componentName`, `getComponent`)
18
- - PascalCase for interfaces/types (`Component`, `RegistryOptions`)
19
- - UPPER_CASE for constants (`DEFAULT_PORT`)
20
-
21
- ### 3. Code Style & Patterns
22
- - **Import organization**: Group imports (Node.js with `node:` prefix, external libraries, local modules)
23
- - **Function style**: Use arrow functions for simple operations, function declarations for main functions
24
- - **Async patterns**: Prefer async/await over Promise chains
25
- - **Object destructuring**: Use destructuring in function parameters
26
- - **Descriptive naming**: Use clear, descriptive function names (`getComponentRetrievingInfo` vs `getComp`)
27
-
28
- ---
29
-
30
- ## File Structure Enforcement
31
-
32
- ### Required Directory Structure
33
- ```
34
- src/
35
- ├── cli/
36
- │ ├── commands.ts
37
- │ ├── domain/ # Business logic
38
- │ ├── facade/ # Public APIs
39
- │ └── programmatic-api.ts
40
- ├── registry/
41
- │ ├── routes/ # Express routes
42
- │ ├── domain/ # Business logic
43
- │ │ └── validators/ # Input validation
44
- │ ├── views/ # JSX components
45
- │ │ └── partials/ # Reusable components
46
- │ └── middleware/ # Express middleware
47
- ├── components/ # Component implementations
48
- ├── utils/ # Shared utilities
49
- ├── types.ts # Centralized type definitions
50
- └── resources/ # Static resources
51
- ```
52
-
53
- ### File Extension Rules
54
- - `.ts` for TypeScript modules and business logic
55
- - `.tsx` for React/JSX components and views
56
- - `index.ts` for module exports and public APIs
57
-
58
- ---
package/CONTRIBUTING.md DELETED
@@ -1,68 +0,0 @@
1
- # Contributing guidelines
2
-
3
- Contributes are more than welcome!
4
-
5
- ## Troubleshooting
6
-
7
- If you find an issue, feel free to check the [issues](https://github.com/opencomponents/oc/issues) page, and open a new one if you need.
8
-
9
- ### Sending a Pull Request
10
-
11
- If you want to send a Pull Request, ensure you join the conversation first on the [issues page](https://github.com/opencomponents/oc/issues)! This is to avoid multiple people working on the same thing. You can get in touch via the [chat](https://gitter.im/opentable/oc) too.
12
-
13
- When preparing a pull request, ensure all the tests pass locally running `npm test`. If you have write/admin access, do it on a new branch on the upstream opencomponents repo. This allows all the test to run smoothly.
14
-
15
- A couple of coding rules:
16
-
17
- - never play with git history
18
- - don't auto-merge
19
- - merge only when tests are all green
20
-
21
- ### Publishing new version to npm
22
-
23
- You need to be enabled for doing this.
24
-
25
- - `master` should be all green. If not, make it green first.
26
- - git checkout master
27
- - git pull --tags
28
- - Run `npm run <versionType>` for new version.
29
- - While on 0.X.X (not stable):
30
- - `npm run publish-patch` for bugfixes, new features
31
- - `npm run publish-minor` for all breaking changes
32
- - `npm run publish-major` NOT YET. Still need to define milestones for 1.0.0.
33
-
34
- ## Code of Conduct
35
-
36
- This Code of Conduct is adapted from [Rust's wonderful
37
- CoC](http://www.rust-lang.org/conduct.html).
38
-
39
- - We are committed to providing a friendly, safe and welcoming
40
- environment for all, regardless of gender, sexual orientation,
41
- disability, ethnicity, religion, or similar personal characteristic.
42
- - Please avoid using overtly sexual nicknames or other nicknames that
43
- might detract from a friendly, safe and welcoming environment for
44
- all.
45
- - Please be kind and courteous. There's no need to be mean or rude.
46
- - Respect that people have differences of opinion and that every
47
- design or implementation choice carries a trade-off and numerous
48
- costs. There is seldom a right answer.
49
- - Please keep unstructured critique to a minimum. If you have solid
50
- ideas you want to experiment with, make a fork and see how it works.
51
- - We will exclude you from interaction if you insult, demean or harass
52
- anyone. That is not welcome behavior. We interpret the term
53
- "harassment" as including the definition in the [Citizen Code of
54
- Conduct](http://citizencodeofconduct.org/); if you have any lack of
55
- clarity about what might be included in that concept, please read
56
- their definition. In particular, we don't tolerate behavior that
57
- excludes people in socially marginalized groups.
58
- - Private harassment is also unacceptable. No matter who you are, if
59
- you feel you have been or are being harassed or made uncomfortable
60
- by a community member, please contact us at oc@opentable.com with a capture (log, photo, email) of
61
- the harassment if possible. Whether you're a regular contributor or
62
- a newcomer, we care about making this community a safe place for you
63
- and we've got your back.
64
- - Likewise any spamming, trolling, flaming, baiting or other
65
- attention-stealing behavior is not welcome.
66
- - Avoid the use of personal pronouns in code comments or
67
- documentation. There is no need to address persons when explaining
68
- code (e.g. "When the developer")
package/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2019 OpenComponents Community
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/biome.json DELETED
@@ -1,52 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
3
- "vcs": {
4
- "enabled": false,
5
- "clientKind": "git",
6
- "useIgnoreFile": false
7
- },
8
- "files": {
9
- "ignoreUnknown": false,
10
- "includes": ["preview/**/*", "src/**/*", "!src/components/oc-client/**/*"]
11
- },
12
- "formatter": {
13
- "enabled": true,
14
- "indentStyle": "tab"
15
- },
16
- "linter": {
17
- "enabled": true,
18
- "rules": {
19
- "recommended": true,
20
- "correctness": {
21
- "useJsxKeyInIterable": "off"
22
- },
23
- "complexity": {
24
- "useLiteralKeys": "off",
25
- "noExcessiveNestedTestSuites": "off"
26
- },
27
- "style": {
28
- "noParameterAssign": "off",
29
- "noNonNullAssertion": "off",
30
- "useTemplate": "off"
31
- },
32
- "suspicious": {
33
- "noExplicitAny": "off"
34
- }
35
- }
36
- },
37
- "javascript": {
38
- "formatter": {
39
- "trailingCommas": "none",
40
- "indentStyle": "space",
41
- "quoteStyle": "single"
42
- }
43
- },
44
- "assist": {
45
- "enabled": true,
46
- "actions": {
47
- "source": {
48
- "organizeImports": "on"
49
- }
50
- }
51
- }
52
- }