A command line interface for easy creation and deployment of submissions for Mintbean hackathon challenges
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.
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
.
npm install -g mintbean-cli
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 :)
Run mint
for list of commands
If it is your first time using mintbean-cli
, first connect to GitHub with config (see below).
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
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
.
npm start
or yarn start
Starts a local development server to display your code's output (look for localhost
link). Changes to your code automatically updates when you save.
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 :)
These start templates are currently available. They all come ready-to-deploy to GitHub pages.
Basic Create React App template.
Basic vanilla JavaScript template that allows you to preview your project on a local server (npm start
or yarn start
to start the server)
Basic Vue CLI template.
Basic Svelte CLI template.
A theme workspace for Bulma CSS, complete with a test page with all of Bulma's components.
Starter Kit for a full-fledged PhaserJS game project
- Pick a unique project name that won't conflict with your existing GitHub repos
mint
commands will break if you change your project name... sorry.- VANILLA-JS TEMPLATE: if you change your entry file from
./index.html
, be sure to update the deploy and predeploy npm scripts commands inpackage.json
In general, run all commands at the project root!. Commands you can run anywhere: mint [-h|-V]
, mint config
or mint new
cmd | description |
---|---|
mint [-h | --help] |
mint -V | --version |
mint new | n [project-name] |
mint repo | r, -O, --org [organization] |
mint config [-v|--view] [-g|--github] [-t|--token] |
Set 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` |
Testing is not yet set up for developers. Coming soon.
Have a project starter template idea? Submit it here
Report them here