1.4.1-b • Published 2 years ago

@bravetheskies/moonbase-cli v1.4.1-b

Weekly downloads
9
License
ISC
Repository
github
Last release
2 years ago

AIM

  • Provide an easy to use CLI for generating, working on & managing Moonbase projects
  • Ability to create a new Moonbase project from the command line
  • Ability to connect the local project to a shopify store
  • Ability to start theme development using moonbase start
  • Allows us to clean up the Moonbase project repository by removing ugly javascript files and configs.
  • Potential to add automatic module imports:
    • Ability to add a module using moonbase add {module}
    • This will clone the selected repo and integrate with the theme
    • Any javascript imports will be automatically imported during compile-time using moonbase start

Why

  • Easy, faster development, especially for creating a theme
  • If the client requests theme files, they don't receive any confusing compiler code
  • Prevents potential for compiler changes between Moonbase themes
  • Moonbase compiler will always be up-to-date and only needs to be installed once on a machine
  • We can update a module once in the repo, and it would push the update to all themes during compile-time

Getting started

To install the CLI, open a terminal and run the following command (the -g flag tells the module to install globally):

npm install @bravetheskies/moonbase-cli -g

Commands

CommandFlagsImplemented?
moonbaseMoonbase's CLI Menun/ayes
- createCreate a moonbase project from scratch--name --password --store --connectyes
- connectConnect moonbase to a Shopify store & git repository--name --password --store --projectyes
- startStart local development--projectyes
- openOpen store on a theme preview--projectyes
- addAutomatically import (or update) a moonbase module
- updateCheck for updates to the moonbase cli packageyes

Flags

You don't need to include flags with the command as it will run you through the setup, but if you want to make things quicker you can include a flag in the initial command to skip some of the steps.

Usage: moonbase {func} {flags}

Example: moonbase create --name=MyTheme

Flag
--nameProject name
--passwordShopify API password
--storeStore .myshopify.com domain
--connect(Boolean) Connect to store once project is created?
--themeTheme id (if not creating a new theme)

Example usage with all flags: moonbase create --name=myproject --connect=true --password=xxx --store=example.myshopify.com --theme=123

Contributing

Contributions are welcome! To get started clone this repository, install dependencies, and you can start the CLI by running node bin/moonbase from the projects root directory.

Windows PowerShell Security Policy Issues

If you're using Windows' PowerShell, you may recieve a security message along the lines of the following:

moonbase : File C:\Users\BTS\AppData\Roaming\npm\moonbase.ps1 cannot be loaded because running scripts is disabled on this system...

This is a security feature of PowerShell to prevent running unsigned scripts. To fix this, run PowerShell as an Administrator, and enter: Set-ExecutionPolicy RemoteSigned

1.4.1-b

2 years ago

1.4.1-a

2 years ago

1.5.2-rc

2 years ago

1.5.0-rc

3 years ago

1.4.8-rc

3 years ago

1.4.3-rc

3 years ago

1.4.5-rc

3 years ago

1.4.6-rc

3 years ago

1.4.4-rc

3 years ago

1.4.7-rc

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.4.2-rc

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.11

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago