Node modules for Firefox Marketplace frontend projects
Перейти к файлу
Stuart Colville 3729b22ba2 Merge pull request #28 from muffinresearch/fireplace-pr409
Uplift from mozilla/fireplace#409
2014-05-07 11:33:31 +01:00
bin Updated CLI help text 2013-12-09 16:46:39 -08:00
lib Make RE_PLURALIZER non-greedy to fix parsing of weird (but valid) .po files 2014-05-06 18:02:21 +02:00
src Merge pull request #28 from muffinresearch/fireplace-pr409 2014-05-07 11:33:31 +01:00
test Fix typo from Kasperle 2013-12-09 11:33:43 -08:00
.gitignore ignore vim droppings 2014-03-26 09:56:57 +00:00
.jshintignore Add commonplace linter 2013-12-05 23:50:17 +00:00
.travis.yml Fix for tests to represent updated 'clean' output 2013-12-09 16:46:19 -08:00
LICENSE Add base files 2013-07-09 15:13:13 -07:00
README.md Add section about wiki docs to README 2013-12-16 14:15:57 -08:00
package.json 0.3.3 2014-05-06 10:31:18 -07:00

README.md

Commonplace

Commonplace is the place for reusable components for the Firefox Marketplace (mozilla/fireplace).

Build Status

Getting Started

Install node/npm

OS X

Use boxen to install a node environment, or use homebrew:

brew install node

And make sure that /usr/local/share/npm/bin is in your $PATH, à la:

export PATH=/usr/local/share/npm/bin:$PATH

Setting up your repo

Create a new repository for your project. In it, create a basic package.json file. You can do this very easily by running npm init.

Next, install commonplace by running npm install commonplace -g. If you already have commonplace installed, update it with npm update -g commonplace.

Creating the commonplace base template

At this point, simply run commonplace install. Running this command will create a src/ directory in your project containing the minimum files needed to run your code. Other directories will also be created for L10n and other functions.

The --gitignore option is available for commonplace install. It will copy a .gitignore into your project. If one already exists, it will print a command to allow you to manually overwrite your current .gitignore file.

Updating Commonplace

To update your commonplace installation, simply run commonplace update --npm from the root of your project. Commonplace will automatically update the global commonplace library to the latest version and update all of the shared modules.

I have questions! Where do I look for more information?

You can check out the Wiki, which has plenty of documentation about the project.