rip-lang 3.10.14 → 3.12.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.
@@ -3,13 +3,11 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <script type="module" src="../dist/rip-ui.min.js"></script>
6
+ <script type="module" src="../dist/rip.min.js"></script>
7
7
  </head>
8
8
  <body>
9
9
  <div id="app"></div>
10
10
  <script type="text/rip">
11
- { launch } = importRip!('../dist/ui.rip')
12
-
13
11
  params = new URLSearchParams(window.location.search)
14
12
  url = params.get('app') or 'index.json'
15
13
  res = await fetch(url)
package/docs/index.html CHANGED
@@ -495,7 +495,7 @@
495
495
  body.light .repl-prompt-text { color: #007acc; }
496
496
  </style>
497
497
  <link rel="preload" href="https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs/loader.js" as="script">
498
- <script type="module" src="dist/rip.browser.min.js"></script>
498
+ <script type="module" src="dist/rip.min.js"></script>
499
499
  </head>
500
500
  <body>
501
501
 
@@ -503,7 +503,7 @@
503
503
  <div class="header">
504
504
  <div class="header-left">
505
505
  <h1>
506
- <img src="rip.svg" alt="Rip" class="logo" style="background-color: #fff; border-radius: 5px; padding: 4px;">
506
+ <img src="assets/rip.svg" alt="Rip" class="logo" style="background-color: #fff; border-radius: 5px; padding: 4px;">
507
507
  Rip Playground
508
508
  </h1>
509
509
  <div class="subtitle"></div>
@@ -522,6 +522,7 @@
522
522
  <button class="tab" data-tab="repl"><span class="tab-full">REPL Console</span><span class="tab-short">REPL</span></button>
523
523
  <button class="tab" data-tab="example">Example</button>
524
524
  <button class="tab" data-tab="sierpinski">Sierpinski</button>
525
+ <button class="tab" data-tab="charts" title="Opens in new tab">Charts ⧉</button>
525
526
  <button class="tab" data-tab="demo" title="Opens in new tab">Demo ⧉</button>
526
527
  </div>
527
528
 
@@ -1129,6 +1130,9 @@
1129
1130
  exampleLoaded = false
1130
1131
 
1131
1132
  def switchToTab(tabName)
1133
+ if tabName is 'charts'
1134
+ window.open 'charts.html', '_blank'
1135
+ return
1132
1136
  if tabName is 'demo'
1133
1137
  window.open 'https://shreeve.github.io/rip-lang/results/', '_blank'
1134
1138
  return
@@ -7,7 +7,7 @@
7
7
  <link rel="preconnect" href="https://fonts.googleapis.com">
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
9
  <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,500;0,700;1,400&family=Nothing+You+Could+Do&display=swap" rel="stylesheet">
10
- <script type="module" src="../dist/rip-ui.min.js"></script>
10
+ <script type="module" src="../dist/rip.min.js"></script>
11
11
  <style>
12
12
  /* ==========================================================================
13
13
  Lab Results — Styles
@@ -32,7 +32,7 @@
32
32
  }
33
33
  .dot:hover { transform: scale(2.5); z-index: 1; }
34
34
  </style>
35
- <script type="module" src="https://shreeve.github.io/rip-lang/dist/rip-ui.min.js"></script>
35
+ <script type="module" src="https://shreeve.github.io/rip-lang/dist/rip.min.js"></script>
36
36
  <script>
37
37
  function updateScale() {
38
38
  var s = Math.min(window.innerWidth / 1350, window.innerHeight / 1250, 1);
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.10.14",
3
+ "version": "3.12.0",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",
7
7
  "workspaces": [
8
8
  "packages/*"
9
9
  ],
10
- "browser": "docs/dist/rip.browser.js",
10
+ "browser": "docs/dist/rip.min.js",
11
11
  "exports": {
12
12
  ".": {
13
13
  "bun": "./src/compiler.js",
14
14
  "node": "./src/compiler.js",
15
- "browser": "./docs/dist/rip.browser.js",
15
+ "browser": "./docs/dist/rip.min.js",
16
16
  "default": "./src/compiler.js"
17
17
  },
18
18
  "./loader": "./rip-loader.js"
@@ -31,7 +31,8 @@
31
31
  "CHANGELOG.md"
32
32
  ],
33
33
  "scripts": {
34
- "browser": "bun scripts/build-browser.js",
34
+ "build": "bun scripts/build-browser.js",
35
+ "build:debug": "bun scripts/build-browser.js --debug",
35
36
  "bump": "bun scripts/bump-version.js",
36
37
  "parser": "bun src/grammar/solar.rip -o src/parser.js src/grammar/grammar.rip",
37
38
  "serve": "bun scripts/serve.js",