-
Notifications
You must be signed in to change notification settings - Fork 16
Install, configure and build
Here's what you need to do if you want to contribute to the Arlima project.
- Install node and npm
- Install grunt by calling
npm install -g grunt-cli
in your console - Install the node modules needed to run the grunt tasks by calling
npm install
in your console, inside the Arlima directory - Open up wp-config.php and add
define('ARLIMA_DEV_MODE', true)
. This will make Arlima use the development versions of the javascripts and build the less files in the browser.
Now you can call the grunt tasks for Arlima!
current-version Get current version
change-version Bump up the version number, or change version name by adding
--new-version=3.1.0
validate-js Check that we're not doing anything wrong in our javascripts
build-js Alias for "validate-js", "current-version", "concat",
"uglify", "change-version" tasks.
create-docs Create markdown-formatted class documentation in
classes/docs.md
phpunit Run phpUnit tests
localization Translate .pot-files
validate-readme Validate readme.txt
create-release Copy source code to release directory
default Alias for "composer", "phpunit", "validate-js",
"validate-readme", "change-version", "localization",
"create-docs", "less", "concat", "uglify" tasks.
To be able to run the unit tests you must install phpunit and add it to your PATH. It also requires that you have a local installation of WordPress. Notice! The tests does not mock WordPress nor the database. The tests will actually create stuff in your WordPress database so you should never run them in a production environment.
Translating the pot files requires that you have msgfmt
(binary that's shipped with gettext) installed and added to your PATH.
This Wordpress plugin was created by Swedish newspaper Västerbottens-Kuriren to give its editorial staff an easy to use tool for customizing the front pages of their online magazines.
- Download the latest release from github and unzip the folder in your plugin directory.
- Open up wp-admin and activate the plugin.
- Go to "Article lists" -> "Edit lists" in wp-admin and create your first article list.
- Open up a page (or create it) in wp-admin. Down to the right you will see a meta box labeled "Arlima" where you choose the list that you created on step 2.
- Go to "Article lists" -> "Manage lists" and start stuffing your article list with interesting content.