@mainqueueio/playground 0.1.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.
- package/.bun-version +1 -0
- package/.codebeatignore +12 -0
- package/.github/CODEOWNERS +15 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +27 -0
- package/.github/workflows/lint.yml +23 -0
- package/.github/workflows/release.yml +46 -0
- package/.github/workflows/semantic.yml +40 -0
- package/.github/workflows/stale.yml +53 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +0 -0
- package/.nvmrc +1 -0
- package/.release-it.json +67 -0
- package/Brewfile +1 -0
- package/CHANGELOG.md +13 -0
- package/README.md +15 -0
- package/build.ts +5 -0
- package/bun.lock +838 -0
- package/bunfig.toml +9 -0
- package/commitlint.config.js +3 -0
- package/package.json +34 -0
- package/src/index.spec.ts +25 -0
- package/src/index.ts +8 -0
- package/tsconfig.json +28 -0
package/bunfig.toml
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mainqueueio/playground",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"author": "diegocuehdz",
|
|
5
|
+
"description": "MainQueue's playground project for checking deploys, registries, and other things.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"packageManager": "bun@1.2.8",
|
|
8
|
+
"module": "src/index.ts",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"husky:prepare": "is-ci || husky",
|
|
12
|
+
"lint": "bun test",
|
|
13
|
+
"test": "echo 'test is supported by bun, please run $bun test'",
|
|
14
|
+
"test:watch": "echo 'test & watch for changes is supported by bun, please run $bun test --watch'",
|
|
15
|
+
"test:coverage": "echo 'test with coverage is supported by bun, please run $bun test --coverage'",
|
|
16
|
+
"release:ci": "release-it --ci",
|
|
17
|
+
"release:local": "release-it"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@commitlint/cli": "^19.8.0",
|
|
21
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
22
|
+
"@release-it/conventional-changelog": "^10.0.0",
|
|
23
|
+
"@types/bun": "latest",
|
|
24
|
+
"husky": "^9.1.7",
|
|
25
|
+
"is-ci": "^4.1.0",
|
|
26
|
+
"release-it": "^18.1.2"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"typescript": "^5"
|
|
30
|
+
},
|
|
31
|
+
"overrides": {
|
|
32
|
+
"conventional-changelog-conventionalcommits": "8.0.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
|
|
3
|
+
import { helloMessage } from './index'
|
|
4
|
+
|
|
5
|
+
describe('index.ts test cases', () => {
|
|
6
|
+
it('should return default if param is not passed', () => {
|
|
7
|
+
const result = helloMessage()
|
|
8
|
+
expect(result).toBe('Hello from MainQueue Library')
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
it('should return default if param is empty', () => {
|
|
12
|
+
const result = helloMessage('')
|
|
13
|
+
expect(result).toBe('Hello from MainQueue Library')
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
it('should return default if param is null', () => {
|
|
17
|
+
const result = helloMessage(null)
|
|
18
|
+
expect(result).toBe('Hello from MainQueue Library')
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it('should return message if param is passed', () => {
|
|
22
|
+
const result = helloMessage('Test')
|
|
23
|
+
expect(result).toBe('Hello Test')
|
|
24
|
+
})
|
|
25
|
+
})
|
package/src/index.ts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Environment setup & latest features
|
|
4
|
+
"lib": ["ESNext"],
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
|
|
11
|
+
// Bundler mode
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"verbatimModuleSyntax": true,
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
|
|
17
|
+
// Best practices
|
|
18
|
+
"strict": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"noUncheckedIndexedAccess": true,
|
|
22
|
+
|
|
23
|
+
// Some stricter flags (disabled by default)
|
|
24
|
+
"noUnusedLocals": false,
|
|
25
|
+
"noUnusedParameters": false,
|
|
26
|
+
"noPropertyAccessFromIndexSignature": false
|
|
27
|
+
}
|
|
28
|
+
}
|