squiffy-compiler 6.0.0-alpha.0

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 (54) hide show
  1. package/README.md +3 -0
  2. package/dist/compiler.d.ts +51 -0
  3. package/dist/compiler.js +542 -0
  4. package/dist/compiler.test.d.ts +1 -0
  5. package/dist/compiler.test.js +73 -0
  6. package/dist/external-files.d.ts +5 -0
  7. package/dist/external-files.js +21 -0
  8. package/dist/index.template.html +39 -0
  9. package/dist/packager.d.ts +1 -0
  10. package/dist/packager.js +78 -0
  11. package/dist/server.d.ts +1 -0
  12. package/dist/server.js +15 -0
  13. package/dist/squiffy.d.ts +1 -0
  14. package/dist/squiffy.js +29 -0
  15. package/dist/squiffy.runtime.d.ts +34 -0
  16. package/dist/squiffy.template.d.ts +29 -0
  17. package/dist/squiffy.template.js +598 -0
  18. package/dist/style.template.css +52 -0
  19. package/dist/version.d.ts +1 -0
  20. package/dist/version.js +1 -0
  21. package/examples/attributes/attributes.squiffy +81 -0
  22. package/examples/clearscreen/clearscreen.squiffy +15 -0
  23. package/examples/continue/continue.squiffy +18 -0
  24. package/examples/helloworld/helloworld.squiffy +1 -0
  25. package/examples/import/file2.squiffy +8 -0
  26. package/examples/import/test.js +3 -0
  27. package/examples/import/test.squiffy +5 -0
  28. package/examples/input/input.squiffy +22 -0
  29. package/examples/last/last.squiffy +32 -0
  30. package/examples/master/master.squiffy +35 -0
  31. package/examples/replace/replace.squiffy +27 -0
  32. package/examples/rotate/rotate.squiffy +25 -0
  33. package/examples/sectiontrack/sectiontrack.squiffy +16 -0
  34. package/examples/start/start.squiffy +7 -0
  35. package/examples/test/example.squiffy +52 -0
  36. package/examples/textprocessor/textprocessor.squiffy +21 -0
  37. package/examples/transitions/transitions.squiffy +53 -0
  38. package/examples/turncount/turncount.squiffy +41 -0
  39. package/examples/warnings/warnings.squiffy +23 -0
  40. package/examples/warnings/warnings2.squiffy +3 -0
  41. package/package.json +46 -0
  42. package/src/__snapshots__/compiler.test.ts.snap +716 -0
  43. package/src/compiler.test.ts +86 -0
  44. package/src/compiler.ts +546 -0
  45. package/src/external-files.ts +22 -0
  46. package/src/index.template.html +39 -0
  47. package/src/packager.ts +97 -0
  48. package/src/server.ts +19 -0
  49. package/src/squiffy.runtime.ts +670 -0
  50. package/src/squiffy.ts +36 -0
  51. package/src/style.template.css +52 -0
  52. package/src/version.ts +1 -0
  53. package/tsconfig.json +22 -0
  54. package/tsconfig.runtime.json +12 -0
@@ -0,0 +1,52 @@
1
+ a.squiffy-link
2
+ {
3
+ text-decoration: underline;
4
+ color: Blue;
5
+ cursor: pointer;
6
+ }
7
+ a.squiffy-link.disabled
8
+ {
9
+ text-decoration: inherit;
10
+ color: inherit !important;
11
+ cursor: inherit;
12
+ }
13
+ button.squiffy-header-button
14
+ {
15
+ text-decoration: underline;
16
+ color: Blue;
17
+ cursor: pointer;
18
+ background: none;
19
+ border: none;
20
+ font-family: inherit;
21
+ }
22
+ div#squiffy-container
23
+ {
24
+ max-width: 700px;
25
+ margin-left: auto;
26
+ margin-right: auto;
27
+ font-family: Georgia, serif;
28
+ }
29
+ div#squiffy-header
30
+ {
31
+ font-size: 14px;
32
+ text-align: right;
33
+ }
34
+ div#squiffy
35
+ {
36
+ font-size: 18px;
37
+ }
38
+ hr {
39
+ border: 0;
40
+ height: 0;
41
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
42
+ border-bottom: 1px solid rgba(255, 255, 255, 0.3);
43
+ margin-top: 16px; margin-bottom: 16px;
44
+ }
45
+ .fade-out {
46
+ opacity: 0;
47
+ transition: opacity 1000ms;
48
+ }
49
+ .fade-in {
50
+ opacity: 1;
51
+ transition: opacity 1000ms;
52
+ }
package/src/version.ts ADDED
@@ -0,0 +1 @@
1
+ export const SQUIFFY_VERSION = '6.0.0-alpha.0';
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "module": "NodeNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+ "alwaysStrict": true,
9
+ "outDir": "dist",
10
+ "declaration": true,
11
+
12
+ "moduleResolution": "NodeNext",
13
+ "resolveJsonModule": true,
14
+ "isolatedModules": true,
15
+
16
+ "strict": true,
17
+ "noUnusedLocals": true,
18
+ "noUnusedParameters": true,
19
+ "noFallthroughCasesInSwitch": true
20
+ },
21
+ "include": ["src"]
22
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "noImplicitAny": true,
5
+ "noUnusedLocals": true,
6
+ "noUnusedParameters": true,
7
+ "noFallthroughCasesInSwitch": true,
8
+ "skipLibCheck": true
9
+ },
10
+ "include": ["src/squiffy.runtime.ts"]
11
+ }
12
+