😄 Thank you for contributing to Mapache!
Mpache uses Gulp as a build tool and Yarn to manage front-end packages.
# clone this repo
$ git clone https://github.com/godofredoninja/Mapache.git
# Go to the folder
$ cd Mapache
# link to ghost themes dir
$ ln -s $PWD path/to/ghost/content/themes/Mapache
# install the dependencies
$ yarn install
# run build & livereload task
$ yarn dev
# restart ghost server
$ cd path/to/ghost && ghost restart --development
Ionicons and generated by Icomoon after import src/svg-icons/selection.json
yarn dev
— Compile assets when file changes are made, start livereloadyarn build
— Compile and optimize the files in your assets directoryyarn prod
— Compile assets for production and generate adist/mapache.zip
yarn lint:js
— Standard, Check for errors in the script.yarn lint:sass
— Stylelint, Check for errors in the styles.yarn lint
— Check error in script and styles.yarn scan
— Ghost Scan check for errors, deprecation and other compatibility issues.yarn test
— Check the script errors and styles then check the theme if it is compatible with the latest version of Ghost.
This is our preferred process for opening a PR on GitHub:
-
Fork the repo, clone your fork, and configure the remotes:
# Clone your fork git clone https://github.com/<your-username>/Mapache.git # Navigate to the newly cloned directory cd Mapache # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/godofredoninja/Mapache.git
-
If you cloned a while ago, get the latest changes from upstream:
git checkout master git pull upstream master
-
Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:
git checkout -b <topic-branch-name>
-
Locally merge:
git checkout master git merge <topic-branch-name>
-
When your changes are ready for review, push your branch:
git push origin master
-
Open a Pull Request with a clear title and description.
-
When the changes have been reviewed and approved, I will merge for you.