0.5.0 • Published 1 year ago

@gdi/cli v0.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Installation

Note: make sure you have all the prerequisites prepared before installation

Install the CLI

Run:

npm install -g @gdi/cli

and rebuild the CLI's commands index:

gdi rebuild

Create a new site

gdi create site [site-name]

Note: this clones the template and installs dependencies and may take a few moments

A new project with two main packages was created:

  • gdi-admin: holds the admin UI
  • gdi-site: holds the public facing site

Change your cwd to your newly created root folder:

cd [site-name]

and install the project's dependencies:

npm i

or:

yarn

Connect Firebase

Bootstrap the project:

gdi bootstrap

Note: Before bootstrapping make sure you have firebase-tools installed: npm install -g firebase-tools

Running the Admin UI

In the project's root run:

gdi start

Navigate to http://localhost:3000

Setting the admin user

Log in to the Admin UI with your Google Account.

Then, in the project's root run:

gdi setAdmin

Deploying

In the project's root run:

gdi deploy

Note: this will deploy both the Admin UI and the Site

After a successful deployment, the Admin UI will be served from the /admin path.

Note: change your site's favIcons and meta tags before deployment

CLI commands

CommandDescription
gdi create site site-nameCreates a new gDI repo with admin + site packages
gdi bootstrapBootstraps the project, runs these command: connect + apps
gdi startStarts gdi-admin in development mode
gdi setAdminChoose an admin for the current site
gdi deployBuilds & deploy both gdi-admin and gdi-site
gdi connectValidates and links site to Firebase
gdi list projectsShows Firebase projects. A wrapper for firebase projects:list
gdi previewStarts gdi-site in development mode
gdi appsScans for new apps and sets up the vite and tsconfig files
0.5.0

1 year ago

0.2.2

2 years ago

0.1.27

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.2.0

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago