@hpcc-js/observablehq-compiler 1.1.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 (46) hide show
  1. package/README.md +106 -0
  2. package/bin/ojscc.mjs +75 -0
  3. package/dist/index.css +1 -0
  4. package/dist/index.esm.css +1 -0
  5. package/dist/index.esm.js +7168 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/index.js +7176 -0
  8. package/dist/index.js.map +1 -0
  9. package/package.json +80 -0
  10. package/src/__package__.ts +3 -0
  11. package/src/__tests__/File Attachments.ts +895 -0
  12. package/src/__tests__/Introduction to Imports.ts +749 -0
  13. package/src/__tests__/Observable TimeChart.ts +772 -0
  14. package/src/__tests__/index.ts +13 -0
  15. package/src/__tests__/node.ts +177 -0
  16. package/src/__tests__/tsconfig.json +21 -0
  17. package/src/compiler.md +234 -0
  18. package/src/compiler.ts +264 -0
  19. package/src/cst.ts +172 -0
  20. package/src/index.css +460 -0
  21. package/src/index.ts +7 -0
  22. package/src/util.md +113 -0
  23. package/src/util.ts +154 -0
  24. package/src/writer.ts +80 -0
  25. package/types/__package__.d.ts +4 -0
  26. package/types/__package__.d.ts.map +1 -0
  27. package/types/__tests__/File Attachments.d.ts +110 -0
  28. package/types/__tests__/File Attachments.d.ts.map +1 -0
  29. package/types/__tests__/Introduction to Imports.d.ts +120 -0
  30. package/types/__tests__/Introduction to Imports.d.ts.map +1 -0
  31. package/types/__tests__/Observable TimeChart.d.ts +111 -0
  32. package/types/__tests__/Observable TimeChart.d.ts.map +1 -0
  33. package/types/__tests__/index.d.ts +2 -0
  34. package/types/__tests__/index.d.ts.map +1 -0
  35. package/types/__tests__/node.d.ts +2 -0
  36. package/types/__tests__/node.d.ts.map +1 -0
  37. package/types/compiler.d.ts +88 -0
  38. package/types/compiler.d.ts.map +1 -0
  39. package/types/cst.d.ts +42 -0
  40. package/types/cst.d.ts.map +1 -0
  41. package/types/index.d.ts +6 -0
  42. package/types/index.d.ts.map +1 -0
  43. package/types/util.d.ts +26 -0
  44. package/types/util.d.ts.map +1 -0
  45. package/types/writer.d.ts +19 -0
  46. package/types/writer.d.ts.map +1 -0
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@hpcc-js/observablehq-compiler",
3
+ "version": "1.1.0",
4
+ "description": "hpcc-js - ObservableHQ Compiler (unoffical)",
5
+ "keywords": [
6
+ "observablehq",
7
+ "markdown",
8
+ "observable",
9
+ "compiler",
10
+ "interpreter",
11
+ "renderer"
12
+ ],
13
+ "main": "dist/index.js",
14
+ "module": "dist/index.esm.js",
15
+ "browser": "dist/index.js",
16
+ "unpkg": "dist/index.min.js",
17
+ "jsdelivr": "dist/index.min.js",
18
+ "types": "types/index.d.ts",
19
+ "typesVersions": {
20
+ "<3.8": {
21
+ "*": [
22
+ "types-3.4/index.d.ts"
23
+ ]
24
+ }
25
+ },
26
+ "bin": {
27
+ "ohqcc": "bin/ojscc.mjs"
28
+ },
29
+ "files": [
30
+ "dist/*",
31
+ "types/*",
32
+ "types-3.4/*",
33
+ "src/*"
34
+ ],
35
+ "scripts": {
36
+ "clean": "rimraf lib* dist* types *.tsbuildinfo",
37
+ "compile-es6": "tsc --module es2020 --outDir ./lib-es6",
38
+ "compile-es6-watch": "npm run compile-es6 -- -w",
39
+ "compile-umd": "tsc --module umd --outDir ./lib-umd",
40
+ "compile-umd-watch": "npm run compile-umd -- -w",
41
+ "bundle": "rollup -c",
42
+ "bundle-watch": "npm run bundle -- -w",
43
+ "minimize-index": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
44
+ "minimize-index-es6": "terser dist/index.esm.js -c -m --source-map \"content='dist/index.esm.js.map',url='index.esm.min.js.map'\" -o dist/index.esm.min.js",
45
+ "minimize": "run-p minimize-index minimize-index-es6",
46
+ "gen-legacy-types": "downlevel-dts ./types ./types-3.4",
47
+ "build": "npm run compile-es6 && npm run bundle",
48
+ "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
49
+ "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
50
+ "lint": "eslint ./src",
51
+ "docs": "typedoc --options tdoptions.json .",
52
+ "dev-start": "ws",
53
+ "test-cli": "node ./bin/ojscc.mjs --version",
54
+ "test-node": "mocha ./dist-test/index.mjs --reporter spec",
55
+ "test": "run-s test-cli test-node",
56
+ "update": "npx --yes npm-check-updates -u -t minor"
57
+ },
58
+ "dependencies": {
59
+ "@hpcc-js/observable-shim": "^2.3.0",
60
+ "node-fetch": "3.2.10",
61
+ "yargs": "17.5.1"
62
+ },
63
+ "devDependencies": {
64
+ "@hpcc-js/bundle": "^2.11.3",
65
+ "@hpcc-js/util": "^2.49.1",
66
+ "@observablehq/runtime": "4.24.0",
67
+ "tslib": "2.4.0"
68
+ },
69
+ "repository": {
70
+ "type": "git",
71
+ "url": "git+https://github.com/hpcc-systems/Visualization.git"
72
+ },
73
+ "author": "Gordon Smith <gordonjsmith@gmail.com>",
74
+ "contributors": [],
75
+ "license": "Apache-2.0",
76
+ "bugs": {
77
+ "url": "https://github.com/hpcc-systems/Visualization/issues"
78
+ },
79
+ "homepage": "https://github.com/hpcc-systems/Visualization/tree/trunk/packages/observablehq-compiler"
80
+ }
@@ -0,0 +1,3 @@
1
+ export const PKG_NAME = "@hpcc-js/observablehq-compiler";
2
+ export const PKG_VERSION = "1.1.0";
3
+ export const BUILD_VERSION = "2.104.5";