To get started with Abimis you have to get some basic tools ready, these are:
First things first let's get our dependencies ready! To do so open your command line and type:
cd your-project-path
Now install all your dependencies!
yarn
or
npm install
Now you can start compiling everything, to do so you have to run the command:
yarn start
or
npm start
This will start the watch task that'll compile all your files and take care of your project. When you are ready to get a distribution copy of your work just type:
yarn dist
or
npm run dist
This will start the favicons task that will generate a favicon set based on the master file you provide. More info on that in the Abimis docs favicons page
yarn favicons
or
npm run favicons
Abimis provides some packages that you can get to change your project layout. Some come with other tools integration (e.g. React integration is supported with the abimis-react-boilerplate package), others come with templates and utilities to simplify your project kickstart. To get a package run the following command:
yarn get --package=package-name
or
npm run get --package=package-name
The package name that you provide to the command is the same as the repo name of the package you want to get but without the abimis
prefix. (e.g. to get the abimis-landing package you run npm run get -- -landing
)
When you are working with more than a project that share a lot of assets and code, keeping them into separated repos could end up into quite the hassle. Abimis comes with a solution for this problem by providing support for multiple projects in a single instance of the framework. This comes in the form of some tasks and modifications that allow you to run more than a website with the same Abimis instance.
To run more than a project using your Abimis installation just do the following:
- Duplicate the
settings.json
,settings-txt.json
andsettings-favicon.json
and rename them all changing settings to project-name
e.g.
settings.json
->project-name.json
settings-txt.json
->project-name-txt.json
settings-favicon.json
->project-name-favicon.json
- Duplicate the src folder and rename it into project-name
- Open the
project-name.json
file and change all instances ofsrc
intoproject-name
and all instances ofdist
intodist-project-name
After you have set up your new project you can use all the usual Abimis commands by adding a single parameter to the command.
yarn start --project=project-name
or
npm start --project=project-name
You can also install any Abimis component by adding the same project parameter like this.
yarn get --package=package-name --project=project-name
or
npm run get --package=package-name --project=project-name
The project-name
parameter is also required in every other Abimis command.
N.B.
When using multiple projects you can also rename the base settings.json
file names and the src
folder name into whatever you like, but by doing this all the Abimis commands will always require the project-name
parameter.
Abimis supports and recommends the usage of the following patterns and tools to improve consistency when developing your project, you are free to choose weather or not to use them but we think that taking your time to learn more about them can make the difference. 😉
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. Abimis uses editor config to make sure that all of its code is following the same indentation and style rules. If your editor doesn't support it natively you can download the plugin on their website. Here are the plugins for the editors we enjoy the most.
Have fun with Abimis! The best front-end framework on the 🌍 and beyond 😉
Made with plenty of ❤️ by two guys from the Aterrae team in Rubano (Padova), Italy
Copyright © 2017 Aterrae | Digital Growth.