vaderjs 1.4.0-169o234 → 1.4.0-16b2234

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.
package/README.md CHANGED
@@ -18,14 +18,13 @@
18
18
  ## Get Started
19
19
 
20
20
  1. Installing Bun.js - (Required)
21
- > Warning - do not use wsl version of bun with vader on windows it will not work due to path resolution use the experimental version :}
22
-
21
+ > Warning - do not use wsl version of bun with vader alot will not work due to path resolution use the experimental version :}
23
22
  ([Install Bun](https://bun.sh/docs/installation))
24
23
 
25
24
  2. Install vaderjs
26
25
 
27
26
  ```bash
28
- bun add vaderjs@latest or npx vaderjs@latest
27
+ bun add vaderjs@latest
29
28
  ```
30
29
 
31
30
  4. Create Proper Folders
package/binaries/main.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env bun
1
2
  import { Glob } from "bun";
2
3
  import fs from "fs";
3
4
  import * as Bun from "bun";
@@ -605,20 +606,17 @@ switch (true) {
605
606
  globalThis.mode = 'dev'
606
607
  Server(port)
607
608
  transForm()
608
-
609
609
  Bun.spawn({
610
610
  cwd: process.cwd() + '/node_modules/vaderjs/binaries/',
611
- env: {
612
- PWD: process.cwd(),
611
+ env:{
613
612
  FOLDERS: 'pages,src,public',
614
- onExit: (code) => {
615
- globalThis.isBuilding = false
616
- globalThis.oneAndDone = true
617
- }
613
+ PWD: process.cwd(),
618
614
  },
619
- cmd: ['node', 'watcher.js'],
615
+ cmd: ['node', 'watcher.js'],
616
+ onExit: (code) => {
617
+ console.log('Exited', code)
618
+ }
620
619
  })
621
-
622
620
  const ws = new WebSocket(`ws://localhost:${3434}`)
623
621
  ws.on('open', () => {
624
622
  console.log('Watching for changes...')
@@ -670,7 +668,23 @@ url: http://localhost:${port}
670
668
  Server(port)
671
669
  break;
672
670
  default:
673
-
671
+ // add color
672
+ console.log(`
673
+ Vader.js is a reactive framework for building interactive applications for the web built ontop of bun.js!
674
+
675
+ Usage: vader <command>
676
+
677
+ Commands:
678
+
679
+ vaderjs dev -p <number> Start the development server
680
+
681
+ vaderjs build Build the project to ./dist
682
+
683
+ vaderjs start -p <number> Production Mode (default 3000 or process.env.PORT)
684
+
685
+ Learn more about vader: https://vader-js.pages.dev/
686
+
687
+ `)
674
688
  break;
675
689
 
676
690
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vaderjs",
3
3
  "description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
4
4
  "module": "vader.js",
5
- "version": "1.4.0-169o234",
5
+ "version": "1.4.0-16b2234",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },