@a5gard/bifrost 1.0.1 → 1.0.3

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
@@ -1,7 +1,19 @@
1
- # @a5gard/bifrost
1
+ # bifrost
2
2
 
3
3
  Platform-agnostic project creator with extensible template system inspired by Remix Stacks.
4
4
 
5
+ - [USAGE](#usage)
6
+ - [INTERACTIVE MODE](#interactive-mode)
7
+ - [CREATING A NEW PROJECT](#creating-a-new-project)
8
+ - [CONFIG.BIFROST WIZARD](#config.bifrost-wizard)
9
+ - [SUBMIT TEMPLATE](#submit-template)
10
+ - [BIFROST-PLUGIN](#bifrost-plugin)
11
+ - [INSTALLING A PLUGIN](#installing-a-plugin)
12
+ - [LIST AVAILABLE PLUGINS TO INSTALL](#list-available-plugins-to-install)
13
+ - [PLUGIN WIZARD](#plugin-wizard)
14
+ - [SUBMIT PLUGIN](#submit-plugin)
15
+
16
+
5
17
  ## Features
6
18
 
7
19
  - 🌈 **Platform Agnostic**: Works with any framework (Remix, Next.js, Vite, etc.)
@@ -11,6 +23,8 @@ Platform-agnostic project creator with extensible template system inspired by Re
11
23
  - ⚡ **Fast Setup**: Clone, configure, and install in seconds
12
24
  - 🔄 **Auto Git Push**: Optionally push initial commit to GitHub
13
25
 
26
+
27
+
14
28
  ## Usage
15
29
 
16
30
  ### Interactive Mode
@@ -20,44 +34,31 @@ bunx @a5gard/bifrost
20
34
  ```
21
35
 
22
36
  In interactive mode, the following prompts will display:
23
- - What would you like to name your new project?
24
- - Which platform would you like to use?
25
- - Which package manager do you prefer?
26
- - Would you like to have the install command run once the project has initialized?
27
- - Would you like to auto create and push the first commit to GitHub?
28
- - [!NEW] `config.bifrost` wizard
29
- - [!NEW] Submit template to bifrost registry
30
-
37
+ - Create a new project
38
+ - `config.bifrost` wizard
39
+ - Submit template to bifrost registry
31
40
 
32
- ### With Options
41
+ ### `Create a new project`
42
+ Once you start to the `create a new project process` the follow prompts will guide you:
33
43
 
34
- ```bash
35
- bunx @a5gard/bifrost my-app --template owner/repo --pkg-mgr bun
36
- ```
44
+ - What would you like to name your new project?
45
+ - Which platform would you like to use? <!-- show the list of platforms, `PLATFORMS` -->
46
+ - Do you prefer to use the platforms default install or would you like to opt for a template instead? <!-- show a list displaying two values one for each -->
47
+ - if templates was chosen, you will be presented with a list of templates relevant to the desired platform
48
+ - unless the platform has more than one default install, for example remix offers several default starters to choose from at this time that list will be presented for you to choose from
49
+ - Which package manager do you prefer?<!-- display a list of pkg mgrs -->
50
+ - The remaining questions will be displayed via a toggle item list
51
+ - Would you like tailwind and its requirements to be installed and configured:
52
+ - using the base tailwind config?
53
+ - using the preset ngin?
54
+ - Pre-install MIÐGARÐR UI components?
55
+ - Pre-install @a5gard/baldr icons?
56
+ - Would you like to auto install the projects libraries once the project has initialized?
57
+ - Would you like to auto create and push the first commit to GitHub?
37
58
 
38
- ### Full Example
39
59
 
40
- ```bash
41
- bunx @a5gard/bifrost my-app -s remix-run/indie-template -p bun
42
- ```
43
60
 
44
- ### Platform Templates
45
-
46
- ```bash
47
- bunx @a5gard/bifrost my-app --list-templates
48
- ```
49
-
50
- ## Options
51
-
52
- | Flag | Alias | Description |
53
- |------|-------|-------------|
54
- | `--template` | `-s` | Stack to use (format: owner/repo) |
55
- | `--pkg-mgr` | `-p` | Package manager (npm, pnpm, yarn, bun) |
56
- | `--no-install` | | Skip dependency installation |
57
- | `--help` | `-h` | Show help |
58
- | `--version` | `-V` | Show version |
59
-
60
- ## `config.bifrost wizard`
61
+ ### `config.bifrost wizard`
61
62
 
62
63
  ```bash
63
64
  bunx @a5gard/bifrost wizard
@@ -85,7 +86,7 @@ It will then create config.bifrost for you with the submitted data, and if no va
85
86
  }
86
87
  ```
87
88
 
88
- ## `Submit template to bifrost registry`
89
+ ### `Submit template`
89
90
 
90
91
  As long as your project already has a public repo already in place, if not it will prompt you to do so at this time, and the required `config.bifrost`. If you don't currently have the config file, it will start the config wizard to help you create it.
91
92
 
@@ -94,6 +95,27 @@ bunx @a5gard/bifrost submit
94
95
  ```
95
96
 
96
97
 
98
+
99
+ ### Command Flags
100
+
101
+ | Flag | Alias | Description |
102
+ |------|-------|-------------|
103
+ | `--template` | `-s` | Stack to use (format: owner/repo) |
104
+ | `--pkg-mgr` | `-p` | Package manager (npm, pnpm, yarn, bun) |
105
+ | `--no-install` | | Skip dependency installation |
106
+ | `--help` | `-h` | Show help |
107
+ | `--version` | `-V` | Show version |
108
+ | `--list-templates` | | List available templates listed within the registry, supplying a platform with the flag will filter the results only listing templates relevant to the desired platform |
109
+ | `--wizard` | | Starts the config wizard |
110
+ | `--submit` | | Submit your template to be saved in the registry |
111
+
112
+ ```bash
113
+ bunx @a5gard/bifrost my-app --template owner/repo --pkg-mgr bun
114
+ bunx @a5gard/bifrost my-app -s remix-run/indie-template -p bun
115
+ bunx @a5gard/bifrost my-app --list-templates
116
+ ```
117
+
118
+
97
119
  ### Stack Configuration (Optional)
98
120
 
99
121
  Add a `config.bifrost` to your repository root for enhanced functionality:
@@ -110,11 +132,33 @@ Add a `config.bifrost` to your repository root for enhanced functionality:
110
132
  }
111
133
  ```
112
134
 
113
- # @a5gard/bifrost-plugin
135
+
136
+ > [!IMPORTANT]
137
+ > ## Built to Last
138
+ >
139
+ > This resource has been architected with obsolescence by design—a self-sustaining ecosystem using a decentralized package system built entirely on free infrastructure.
140
+ >
141
+ > **What this means for you:**
142
+ >
143
+ > You don't have to worry about the library going down, shutting down, or experiencing service interruptions due to funding issues, infrastructure failures, or anything happening to me personally.
144
+ >
145
+ > Since there are no operational costs:
146
+ > - If my finances collapse, your projects keep running
147
+ > - If I get hit by a bus tomorrow, you won't even notice
148
+ > - If I abandon the project entirely, everything continues working
149
+ >
150
+ > Even if this entire project disappeared today, you'd still have:
151
+ > - All your templates and plugins (in your repos)
152
+ > - The ability to clone and use any community template (via GitHub)
153
+ > - Complete ownership of everything you've created
154
+ >
155
+ > True decentralization means no single point of failure—including me.
156
+
157
+
158
+ # bifrost-plugin
114
159
 
115
160
  Plugin installer / wizard for bifrost projects.
116
161
 
117
- ## Installing A Plugin
118
162
 
119
163
  ### Interactive Mode
120
164
 
@@ -129,7 +173,9 @@ Entering interactive mode it will display the following options:
129
173
  - Plugin wizard ( guide in creating your own plugin )
130
174
  - Submit Plugin
131
175
 
132
- ## `List available plugins to install`
176
+ ## Installing A Plugin
177
+
178
+ ### `List available plugins to install`
133
179
 
134
180
  Running the following command will start plugin installation process:
135
181
 
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- #!/usr/bin/env bun
1
+ declare function runCLI(argv: string[]): Promise<void>;
2
+
3
+ export { runCLI };