A project generation helper.
Ollie is as simple as calling him in your terminal.
$ ollie
Ollie will guide you through the generation of your new project by asking questions about what project type, your bitbucket credentials, your team, ...
Install the binary to make ollie availlable in your cli.
$ npm install --global ollie-cli
To push a project to Bitbucket, be sure to add your machine's ssh key to your Bitbucket account.
A boilerplate can be of any language and framework type. Ollie knows predefined boileplates but don't feel held back to create your own boilerplate.
In need of special variable parts inside your boilerplate? ollie.yml
can help with that!
Ollie can ask questions specific for your boilerplate. You can define theses questions in a file ollie.yml
. An example:
replacementQuestions:
- name: NAME
message: Some name
- name: DESCRIPTION
message: Describing the project
- name: AUTHOR_EMAIL
message: Author email address
This repository is only meant for development. If you are only interested in using Ollie, install him through npm as explained in installation.
When developing, you should ensure all npm modules are installed: npm install
.
These are all useful scripts for development:
# spin up ollie running your local code
$ npm start
# lint the local
$ npm run lint
# run all tests
$ npm test
Two important concepts are Surveys and Questions.
Surveys are responsible for composing questions in the correct order. Depending on the answers given, either complentary questions are asked or actions are executed. E.g.
- A survey asks what project type (Web, iOS, Android) you want to create. If e.g. the answer is 'Web', we should ask a second question to know what type of web project is wanted.
- A survey asks the project name + Bitbucket credentials. With these answers the repository can be pushed to Bitbucket's remote.
Questions must always return question objects (or an array of objects). These question objects must following the Inquirer questions API.