Skip to content

Commit

Permalink
Introduce CLI install wizard [WIP] (#153)
Browse files Browse the repository at this point in the history
* Migrate back to Cloudflare Workers (#147)

* Migrate back to Cloudflare Workers

* Delete deprecated CF pages files

* First attempt at CLI

* CLI checks if env variables already set first

* Add loading spinner (ora pkg) to CLI

* Create .counterscale dir

* Update commands for new Turbo layout

* Put CLI colors in constant

* Create db in home dir

* Get account id

* Store worker in db, pass as wrangler CLI param

* Use shell exec variable substitution

* More messin around

* Remove sqlite/db code

* Dont prompt for Cloudflare account id, fix errors not emitting

* Fix a host of issues

* Add cli package

* Add inquirer types

* Fix parsing account id

* Try to figure out where @counterscale/server is located

* Add missing package.json fields and LICENSE

* Fix bad dep

* More package/dist fixes for CLI install

* alpha 4

* Back to wrangler.json

* alpha 5

* alpha 6

* fix paths + alpha 7

* alpha 8

* bundle app w/ server pkg, alpha 9

* Get default names from wrangler.json

* Better styling + colors

* Tick out output so it looks more natural

* Remove test boilerplate from cli (no tests yet)

* Fix tests, lint, typecheck

* Add basic test suite for CLI

* Add more tests

* Make wrangler a peerdep

* Switch to pnpm to solve subdep issues

* Fix missing ora dep

* Add npmrc, link workspace packages, add node types

* Fix tests

* Fix eslint

* Fix path resolution

* alpha 12

* Fix relative path in import
  • Loading branch information
benvinegar authored Feb 6, 2025
1 parent af38e8d commit 942c8e6
Show file tree
Hide file tree
Showing 20 changed files with 13,664 additions and 11,685 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
link-workspace-packages=true
Loading

0 comments on commit 942c8e6

Please sign in to comment.