1.9.1 • Published 4 years ago

mintbean-cli v1.9.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

npm version

mintbean-cli

A command line interface for easy creation and deployment of submissions for Mintbean hackathon challenges

How to make your first contribution

One of the goals of this project is to make it easy for first-time open source contributors to work on the project.

Check out https://github.com/firstcontributions/first-contributions to understand how to contribute to open source projects like this one.

How to Contribute

Development flow

You can run the CLI for dev purposes by running the command npm start.

If you want to test that mint gets loaded up during development, run npm link.

Install

npm install -g mintbean-cli

Pre-requisites

You need to have node and git installed on your machine. If you don't:

LINUX sudo apt install node git

MAC brew install node brew install git

WINDOWS Google it :)

Usage

Run mint for list of commands

Creating and deploying projects

If it is your first time using mintbean-cli, first connect to GitHub with config (see below).

Suggested flow for new projects

mint new <my-project>
cd <my-project>
mint repo 
mint deploy

or for the cool kids:

mint n <my-project>
cd <my-project>
mint r
mint d

Config

The first time you use mintbean-cli you need to hook it up to your GitHub. Don't have a GitHub account? Make one!

mint config -g <github-username> -t <token>

Create a new GitHub personal access token here. Be sure to assign this token full scope of 'repo' and 'user'. You can reset your token anytime and update your mint config.

Advanced: the connection type defaults to SSH. You can specify HTTPS connection instead with -H flag (or switch back to SSH with -S).

mint config -g <github-username> -t <token> -H

View your config settings anytime with mint config -v.

Development

mint develop or mint dev

Starts a local development server to display your code's output (look for localhost link). Changes to your code automatically updates when you save.

Deployment

If you haven't yet, create a remote repo: mint repo -cp

Then just run mint deploy anytime and every time you want to update your deployment.

Deployment defaults to GitHub pages, but you can define your own custom 'predeploy' and 'deploy' commands in package.json> "scripts" if you prefer some other building/hosting platform.

Be patient on first deploy to GitHub pages - it can take up to a minute or two before the page is ready :)

Templates

These start templates are currently available. They all come ready-to-deploy to GitHub pages.

react-gh-pages

Basic Create React App template.

vanilla-js-gh-pages

Basic vanilla JavaScript template that allows you to preview your project on a local server (mint dev)

vue-gh-pages

Basic Vue CLI template.

svelte-gh-pages

Basic Svelte CLI template.

bulma-theme

A theme workspace for Bulma CSS, complete with a test page with all of Bulma's components.

phaser-js-gh-pages

Starter Kit for a full-fledged PhaserJS game project

WARNINGS

  1. Pick a unique project name that won't conflict with your existing GitHub repos
  2. mint commands will break if you change your project name... sorry.
  3. VANILLA-JS TEMPLATE: if you change your entry file from ./index.html, be sure to update the deploy and predeploy npm scripts commands in package.json

Commands

In general, run all commands at the project root!. Commands you can run anywhere: mint [-h|-V], mint config or mint new

cmddescription
mint [-h--help]
mint -V--version
mint newn project-name
mint repor, -O, --org organization
mint config -v|--view -g|--github -t|--tokenSet up or view config (Github credentials etc.) options: (-v) view current config(-g) set github username (-t) set github personal access token
mint deploy | d

Developers

Testing

Testing is not yet set up for developers. Coming soon.

New templates

Have a project starter template idea? Submit it here

Bugs

Report them here

1.9.1

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.0.11

4 years ago

1.1.1

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.1.0

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

1.0.1

4 years ago

1.0.0

4 years ago