Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

metabuild

bevry23MIT1.0.9

Stop wasting time syncing and updating your project's README and Package Files!

project, readme, license, meta, generator, markdown, documentation, package.json, jquery.json, component, bower, jspm, browserify, badges, component.json, bower.json

readme

Projectz

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Slack community badge Patreon donate button Gratipay donate button Flattr donate button PayPal donate button Bitcoin donate button Wishlist browse button

Stop wasting time syncing and updating your project's README and Package Files!

Here's some of the things it can do:

  • Keep your projects data files synchronised appropriately, supports:
    • package.json
    • bower.json
    • component.json
    • jquery.json
  • Create beautiful standardised readme files that stay in sync with your data files, supports:
    • README
    • CONTRIBUTING
    • LICENSE
    • BACKERS
    • HISTORY
  • Automatic injection of the appropriate installation methods, supports:
  • Automatic injection of your desired badges
  • Automatic injection of your SPDX license information
  • Keep your data and readme files up to date with remote data, supports:
    • Pulling in your latest contributors from GitHub
    • Pulling in your latest sponsors from remote APIs (coming soon)

Install

NPM

  • Install: npm install --global projectz
  • Use: projectz

Running Projectz

Directly

Once installed locally, you can compile your project using projectz by running the following in your terminal:

node ./node_modules/.bin/projectz compile

Automatically

To make projectz more automatic, we recommended adding the direct command above to your build tool.

If you don't use a build tool, but do use npm, then you can add the following to your project's package.json file:

{
  "scripts": {
    "compile": "node ./node_modules/.bin/projectz compile",
    "posttest": "node ./node_modules/.bin/projectz compile"
  }
}

The compile script here lets you use npm run-script compile to compile your project with projectz.

The posttest script here automatically compiles your project with projectz after your tests have successfully completed, providing you use npm test to run your tests. This is a great place to put projectz as projectz only updates meta documents so won't affect your test, and will always run before a publish.

Configuring Projectz

Data Files

Projectz helps you maintain the following data files:

  • package.json
  • bower.json
  • component.json
  • jquery.json

It does this by reading them, combining their data in memory, and then outputting the appropriate fields and over-rides for each file.

Each file can serve as the master meta data file, however you can also define a projectz.cson CSON file that you can use if you'd like to have the benefit of comments, optional commas, multiline strings, etc for your primary meta data file.

The special fields are as so:

{
    # Project's human readable name
    title: "Projectz",

    # Project name
    name: "projectz",

    # Project's Website URL
    homepage: "https://github.com/bevry/projectz",

    # Project's demo URL
    # If this is missing, and `homepage` is set, we set it to the `homepage` value
    demo: "https://github.com/bevry/projectz",

    # Project description
    description: "Stop wasting time syncing and updating your project's README and Package Files!",

    # Project's SPDX License
    # Uses https://www.npmjs.com/packages/spdx for parsing
    license: "MIT",

    # Whether the project can run on the client-side in web browsers
    # If this is missing, and the component or bower package files exist, then this becomes `true`
    browsers: true,

    # Project's author details
    # Can be an array or CSV string
    author: "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)",

    # Maintainers
    maintainers: [
        "Benjamin Lupton (b@lupton.cc) (http://balupton.com)"
    ],

    # Sponsors
    sponsors: [
        "Benjamin Lupton (b@lupton.cc) (http://balupton.com)"
    ],

    # Contributors
    # Automatically combined with the contributors from the GitHub Repository API
    contributors: [
        "Benjamin Lupton (b@lupton.cc) (http://balupton.com)"
    ],

    # Project's repository details
    # If this is missing, and `homepage` is a GitHub URL, this determined automatically
    repository: {
        type: "git",
        url: "https://github.com/bevry/projectz.git"
    },

    # Project's issue tracker
    # If this is missing, and `repository` is a GitHub repository, this determined automatically
    bugs: {
        url: "https://github.com/bevry/projectz/issues"
    },

    # Project's badges for use in the readme files
    # Uses https://www.npmjs.com/packages/badges for parsing and rendering, see for usage
    badges: {
        list: []
        config: {}
    }
}

Readme Files

Projectz helps you maintain the following readme files:

  • README.md
  • CONTRIBUTING.md
  • LICENSE.md
  • BACKERS.md
  • HISTORY.md

It does this by reading them, and replacing comment tags with the appropriate data.

The following comment tags are supported:

  • <!-- TITLE --> — outputs the package's title field
  • <!-- BADGES --> — outputs the badges you have enabled from your package's badges field
  • <!-- DESCRIPTION --> — outputs the package's description field
  • <!-- INSTALL --> — outputs the package's installation instructions
  • <!-- HISTORY --> — outputs a link to the HISTORY file if it exists, otherwise if it is a Github repository, outputs a link to the releases page
  • <!-- CONTRIBUTE --> — outputs a link to the CONTRIBUTE file if it exists
  • <!-- BACKERS --> — outputs the information from the sponsors field, as well as any funding badges
  • <!-- LICENSE --> — outputs a summary of the license information

As well as these comment tags for updating entire files:

  • <!-- LICENSEFILE --> — outputs the complete license information
  • <!-- BACKERSFILE --> — same as <!-- BACKERS --> but made for an individual file instead

As an example, here is a a basic README.md file:

<!-- TITLE -->
<!-- BADGES -->
<!-- DESCRIPTION -->
<!-- INSTALL -->

## Usage
Usage instructions go here

<!-- HISTORY -->
<!-- CONTRIBUTE -->
<!-- BACKERS -->
<!-- LICENSE -->

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Patreon donate button Gratipay donate button Flattr donate button PayPal donate button Bitcoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

changelog

History

v1.0.9 2015 December 10

  • Updated esnextguardian script

v1.0.8 2015 December 7

  • Moved from ECMAScript Modules to CommonJS Modules due to lack of Node.js support
  • Updated base files

v1.0.7 2015 November 30

  • Updated dependencies

v1.0.6 2015 September 21

  • Browser install instructions will now correctly display is bower or component configuration exists, or browser or jspm fields exist

v1.0.5 2015 September 21

  • Updated dependencies

v1.0.4 2015 September 20

  • Fixed missing esnextguardian dependency (regression since v1.0.3)

v1.0.3 2015 September 20

  • Readme files will correctly finish with a newline character
  • Updated dependencies
  • Fixed second author losing their year

v1.0.2 2015 September 18

  • Continue if fetching github contributors fails

v1.0.1 2015 September 16

  • Fixed github API auth for user api requests

v1.0.0 2015 September 16

  • Initial stable release
  • Readme and Package files are now extension independent
  • Readme sections are now outputted in HTML instead of Markdown to be more universal
  • Support SPDX licenses
  • Uses new bevry/badges package for badge rendering
  • Uses new bevry/fellow package for people handling
  • Newline no longer required at start of readme file
  • Moved from CoffeeScript to ES6+

v0.5.0 2015 February 24

  • Support multiple licenses
    • Currently only MIT and CC-BY-4.0 are supported

v0.4.3 2015 February 13

  • Appends new line when saving packages

v0.4.2 2015 February 11

  • Fixes cmd line -d option
  • Fixes CRLF issue that occurred in the v0.4.1 npm package

v0.4.1 2015 February 09

  • Fixes incorrect handling of CSON.parseFile

v0.4.0 2015 February 09

  • Removed merging of dependencies between Package.json and Bower.json
  • Added Node v0.12.0 support

v0.3.17 2014 December 11

  • Fixed david badges (regression from v0.3.16)

v0.3.16 2014 December 11

  • Better badges
  • New npm downloads badge
  • Updated dependencies

v0.3.15 2014 June 23

  • Updated dependencies

v0.3.14 2014 May 31

  • Add support for global install instructions

v0.3.13 2014 May 17

  • Keep contributor cache valid for one day

v0.3.12 2014 May 17

  • Updated dependencies

v0.3.11 2014 February 19

  • Added DocPad plugin install instructions
  • Added support for the browser field, see readme

v0.3.10 2014 February 6

v0.3.9 Unknown

  • Always show david dependency and dev dependency badges if they are enabled, rather than disabling them if there are no dependencies or dev dependencies

v0.3.8 Unknown

  • Cleaner badge determination

v0.3.7 2014 January 03

v0.3.6 2014 January 03

  • Added bitcoin badge which accepts a URL via the bitcoin badge option
  • Donation badges are now on their own line

v0.3.5 2014 January 01

  • Only show david dm badges if there actually are dependencies for that badge

v0.3.4 2014 January 01

  • Added david-dm dev dependency badge support
  • Automatic badge detection for daviddev

v0.3.3 2014 January 01

  • Added david-dm badge support
  • Automatic badge detection for travis, npm, and david badges
  • Travis file is now regarded as a readme file

v0.3.2 2013 December 16

  • Formatting changes to backers listing

v0.3.1 2013 December 16

  • Formatting changes to backers listing

v0.3.0 2013 December 12

  • Client-side install instructions will only show if browser property is truthy
  • Added new browser property that will default to true if bower or component packages are defined

v0.2.10 2013 December 12

  • Moved docco from dependencies into devDependencies where it belongs

v0.2.9 2013 December 12

  • Fixed CDN URL highlighting

v0.2.8 2013 December 12

  • Changed HISTORY.md and CONTRIBUTING.md URLs and names to always be uppercase
  • Added wzrd.in CDN URL to the Node/Browserify install section

v0.2.7 2013 November 25

  • Updated dependencies

v0.2.6 2013 November 6

  • Updated dependencies

v0.2.5 2013 October 31

  • Seems github doesn't like // urls

v0.2.4 2013 October 31

  • Updated badges to use // for their urls

v0.2.3 2013 October 23

  • Fixed error when encountering an unknown license

v0.2.2 2013 October 23

  • Fixed license and licenses duplicate in package.json file
  • Fixed some issues with contributors and package.json files

v0.2.1 2013 October 16

  • Fixed some issues. Now stable enough to use for your projects.

v0.2.0 2013 October 16

  • Added INSTALL, BACKER, and BACKERFILE tags

v0.1.0 2013 October 15

  • Mostly working except for BACKER tags

v0.0.2 2013 September 19

  • Renamed from readme-utils to projectz

v0.0.1 2013 June 19

  • Initial non-working commit