tangled
alpha
login
or
join now
atscan.net
/
plcbundle-bun
5
fork
atom
⚡ Zero-dependency plcbundle library exclusively for Bun
5
fork
atom
overview
issues
pulls
pipelines
update requirements
tree.fail
4 months ago
f79ead96
9956dbf7
3/3
examples.yml
success
7s
integration.yml
success
4s
test.yml
success
3s
+10
-71
3 changed files
expand all
collapse all
unified
split
.tangled
workflows
integration.yml
lint.yml
README.md
+9
-28
.tangled/workflows/integration.yml
···
10
10
dependencies:
11
11
nixpkgs:
12
12
- bun
13
13
-
- curl
14
13
15
14
environment:
16
15
TEST_REMOTE_URL: "https://plcbundle.atscan.net"
···
19
18
- name: "Install dependencies"
20
19
command: "bun install"
21
20
22
22
-
- name: "Test clone functionality"
21
21
+
- name: "Clone test bundles"
23
22
command: |
24
24
-
echo "Testing clone from remote repository..."
25
23
bun src/cli.ts clone \
26
24
--remote $TEST_REMOTE_URL \
27
25
--bundles 1-3 \
28
26
--threads 4 \
29
29
-
--dir ./test-integration-data
27
27
+
--dir ./test-data
30
28
31
29
- name: "Verify downloaded bundles"
32
30
command: |
33
33
-
echo "Verifying bundle integrity..."
34
34
-
bun src/cli.ts verify --bundle 1 --dir ./test-integration-data
35
35
-
bun src/cli.ts verify --bundle 2 --dir ./test-integration-data
36
36
-
bun src/cli.ts verify --bundle 3 --dir ./test-integration-data
31
31
+
bun src/cli.ts verify --bundle 1 --dir ./test-data
32
32
+
bun src/cli.ts verify --bundle 2 --dir ./test-data
33
33
+
bun src/cli.ts verify --bundle 3 --dir ./test-data
37
34
38
38
-
- name: "Test info command"
35
35
+
- name: "Test commands"
39
36
command: |
40
40
-
echo "Getting repository info..."
41
41
-
bun src/cli.ts info --dir ./test-integration-data
42
42
-
43
43
-
- name: "Test export command"
44
44
-
command: |
45
45
-
echo "Exporting operations from bundle 1..."
46
46
-
bun src/cli.ts export --bundle 1 --dir ./test-integration-data | head -n 10
47
47
-
48
48
-
- name: "Test detect with example"
49
49
-
command: |
50
50
-
echo "Testing detect functionality..."
51
51
-
bun src/cli.ts detect \
52
52
-
--detect ./examples/detect.ts \
53
53
-
--bundles 1 \
54
54
-
--dir ./test-integration-data \
55
55
-
| head -n 20
56
56
-
57
57
-
- name: "Cleanup test data"
58
58
-
command: "rm -rf ./test-integration-data"
37
37
+
bun src/cli.ts info --dir ./test-data
38
38
+
bun src/cli.ts export --bundle 1 --dir ./test-data | head -n 10
39
39
+
bun src/cli.ts detect --detect ./examples/detect.ts --bundles 1-2 --dir ./test-data | head -n 20
-42
.tangled/workflows/lint.yml
···
1
1
-
# Check code quality on every push
2
2
-
when:
3
3
-
- event: ["push", "pull_request"]
4
4
-
branch: ["main", "master", "develop"]
5
5
-
6
6
-
engine: "nixery"
7
7
-
8
8
-
dependencies:
9
9
-
nixpkgs:
10
10
-
- bun
11
11
-
12
12
-
steps:
13
13
-
- name: "Install dependencies"
14
14
-
command: "bun install"
15
15
-
16
16
-
- name: "Check library imports"
17
17
-
command: |
18
18
-
echo "Verifying library files compile..."
19
19
-
bun --print 'import("./src/index.ts")' > /dev/null
20
20
-
bun --print 'import("./src/plcbundle.ts")' > /dev/null
21
21
-
bun --print 'import("./src/types.ts")' > /dev/null
22
22
-
23
23
-
- name: "Check CLI imports"
24
24
-
command: |
25
25
-
echo "Verifying CLI compiles..."
26
26
-
bun --print 'import("./src/cli.ts")' > /dev/null
27
27
-
28
28
-
- name: "Check examples compile"
29
29
-
command: |
30
30
-
echo "Verifying examples compile..."
31
31
-
for file in examples/*.ts; do
32
32
-
echo "Checking $file..."
33
33
-
bun --print "import('./$file')" > /dev/null || echo "Note: $file may require data to run"
34
34
-
done
35
35
-
36
36
-
- name: "Check tests compile"
37
37
-
command: |
38
38
-
echo "Verifying tests compile..."
39
39
-
for file in tests/*.ts; do
40
40
-
echo "Checking $file..."
41
41
-
bun --print "import('./$file')" > /dev/null
42
42
-
done
+1
-1
README.md
···
13
13
14
14
## Requirements
15
15
16
16
-
- [Bun](https://bun.sh) >= 1.3
16
16
+
- [Bun](https://bun.sh) >= 1.2.17
17
17
18
18
```bash
19
19
# Install Bun if you haven't already