@tsplc/build 0.2.16 → 0.2.18

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/dist/cli.js +628 -352
  2. package/dist/cli.js.map +30 -28
  3. package/dist/index.js +548 -387
  4. package/dist/index.js.map +27 -25
  5. package/dist/libraries.js +68 -27
  6. package/dist/libraries.js.map +3 -3
  7. package/docker/Dockerfile +2 -0
  8. package/docker/Dockerfile.dockerignore +4 -1
  9. package/docker/Dockerfile.source +3 -0
  10. package/docker/config.ts +10 -5
  11. package/docker/runner.ts +140 -127
  12. package/package.json +54 -53
  13. package/python/build.py +183 -124
  14. package/python/codesys_online.py +44 -45
  15. package/python/hardware.py +9 -9
  16. package/python/test_build.py +3 -3
  17. package/python/test_codesys_online.py +18 -12
  18. package/python/test_installer_packages.py +1 -0
  19. package/python/worker.py +11 -7
  20. package/src/artifacts.ts +82 -60
  21. package/src/build.ts +71 -62
  22. package/src/cli.ts +109 -100
  23. package/src/controller-online.ts +400 -425
  24. package/src/controller-protocol.ts +140 -0
  25. package/src/controller-session.ts +466 -397
  26. package/src/device-tree.ts +19 -15
  27. package/src/diagnostics.ts +59 -49
  28. package/src/docker-build.ts +217 -156
  29. package/src/docker-context.ts +49 -27
  30. package/src/docker-run.ts +137 -111
  31. package/src/engineering-settings.ts +42 -0
  32. package/src/host/codesys-command.ts +35 -34
  33. package/src/host/codesys-host.ts +157 -129
  34. package/src/host/codesys-worker.ts +318 -301
  35. package/src/host/windows-path.ts +63 -59
  36. package/src/import-request.ts +24 -0
  37. package/src/index.ts +37 -31
  38. package/src/io.ts +152 -116
  39. package/src/libraries.ts +214 -146
  40. package/src/package-path.ts +3 -1
  41. package/src/run.ts +132 -108
  42. package/src/runtime-status.ts +25 -19
  43. package/src/sources.ts +264 -225
  44. package/src/st/declarations.ts +181 -193
  45. package/src/st/lexer.ts +102 -118
  46. package/src/st/parse.ts +193 -171
  47. package/src/st/reader.ts +47 -42
  48. package/src/__tests__/fixtures/xml/fb-simple.xml +0 -40
  49. package/src/__tests__/fixtures/xml/fb-state-machine.xml +0 -86
  50. package/src/__tests__/fixtures/xml/prg-cyclic.xml +0 -44
  51. package/src/config.ts +0 -12
@@ -1,44 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <project xmlns="http://www.plcopen.org/xml/tc6_0200" xmlns:xhtml="http://www.w3.org/1999/xhtml">
3
- <fileHeader companyName="" productName="CODESYS" productVersion="CODESYS V3.5 SP21" creationDateTime="<NORMALIZED>" />
4
- <contentHeader name="PRG_Main" modificationDateTime="<NORMALIZED>">
5
- <coordinateInfo>
6
- <fbd><scaling x="1" y="1" /></fbd>
7
- <ld><scaling x="1" y="1" /></ld>
8
- <sfc><scaling x="1" y="1" /></sfc>
9
- </coordinateInfo>
10
- </contentHeader>
11
- <types>
12
- <dataTypes />
13
- <pous>
14
- <pou name="PRG_Main" pouType="program">
15
- <interface>
16
- <localVars>
17
- <variable name="fbWorker">
18
- <type><derived name="FB_StateMachine" /></type>
19
- <documentation><xhtml xmlns="http://www.w3.org/1999/xhtml">Cycle worker</xhtml></documentation>
20
- </variable>
21
- <variable name="bStart">
22
- <type><BOOL /></type>
23
- <documentation><xhtml xmlns="http://www.w3.org/1999/xhtml">Operator start button</xhtml></documentation>
24
- </variable>
25
- </localVars>
26
- </interface>
27
- <body>
28
- <ST>
29
- <xhtml xmlns="http://www.w3.org/1999/xhtml"><![CDATA[fbWorker(
30
- bExecute := bStart,
31
- );
32
-
33
- IF fbWorker.bDone THEN
34
- bStart := FALSE;
35
- END_IF]]></xhtml>
36
- </ST>
37
- </body>
38
- </pou>
39
- </pous>
40
- </types>
41
- <instances>
42
- <configurations />
43
- </instances>
44
- </project>
package/src/config.ts DELETED
@@ -1,12 +0,0 @@
1
- export {
2
- configSchema,
3
- controllerSchema,
4
- cyclicTasksSchema,
5
- dockerImage,
6
- defineBuildConfig as defineConfig,
7
- resolveConfig,
8
- loadConfig,
9
- type CodesysBuildConfig,
10
- type ResolvedConfig,
11
- type CyclicTask,
12
- } from "@tsplc/config/build";