GithubHelp home page GithubHelp logo

tstarling / wikidatabuilder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wmde/wikidatabuilder

0.0 2.0 0.0 568 KB

Script to build the Wikidata extension for deployment

Home Page: http://wikiba.se

License: Other

JavaScript 71.46% PHP 28.54%

wikidatabuilder's Introduction

Wikidata builder

Build and release tool for MediaWiki extensions that support Composer.

Build Status

Build tool installation:

Wikidata builder has the following requirements:

  • Node.js 0.8 or later
  • npm 1.1 or later
  • PHP 5.3 or later
  • Debian like environment (production code might run on Windows, some tests do not run on Windows)
  • Suggested: grunt-cli (npm install -g grunt-cli)

Once your environment meets these requirements, run "npm install" in the root of Wikidata builder.

Steps to create a build:

Build configuration

Configuration for your build is placed in build_config/yourBuild, where "yourBuild" is a name you pick. This directory needs to contain the following files:

  • config.js
  • build_resources
    • composer.json

config.js contains configuration specific to your build. See build_config/ExampleConfig/config.js for an example and documentation of the required values.

build_resources/composer.json defines the packages that make up the build, including their versions.

Running the build

Execute "grunt build:yourBuild" in the root directory of Wikidata builder.

In case grunt-cli is not installed, replace "grunt" by "./node_modules/.bin/grunt"

Build results

The result of a build can be found in the "build" directory. More precisely, at "build/BUILD_DIR/NAME_OF_TOP_DIR", where the upper case segments are the values defined in your config.js file.

This build directory will contain a TARBALL_NAME.tar.gz and a directory "NAME_OF_TOP_DIR/" which contains:

  • NAME_OF_TOP_DIR.php
  • composer.json
  • Any other resources you put in your build_resources directory.

Other commands:

  • Running linting and tests: grunt integrate (or npm test)
  • Removing the builds: grunt clean
  • To see all available commands: grunt --help

Authors and license

Wikidata Builder has been written by Jeroen De Dauw as Wikimedia Germany employee for the Wikidata project. A full list of people that made contributions can be found [on Ohloh] (https://www.ohloh.net/p/WikidataBuilder/contributors).

It is released under the GNU GPL v2 or later. You can find a copy of the license in the COPYING file.

Release notes

0.1 (under development)

  • Initial version

Links

wikidatabuilder's People

Contributors

addshore avatar filbertkm avatar jeroendedauw avatar mariushoch avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.