Merge pull request #163 from Mozilla-GitHub-Standards/master Add Mozilla Code of Conduct
Merge pull request #163 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
Mozilla Games site
To install the Node dependencies:
npm install
All of the web content is static (see the https://github.com/mozilla/moz-games/tree/master/public directory).
To serve the site from the simple server:
npm run dev
Then launch the site from your favourite browser:
http://localhost:8080/
If you wish to serve the site from a different port:
PORT=8000 npm run dev
In production, the server is run like so:
npm start
Alternatively:
npm run prod
To run the server through Heroku’s foreman:
foreman start web
All webpage content is localised using webL10n, a client-side library for internationalisation (i18n) / localisation (l10n).
If you would like to submit new translations:
Ensure a section exists for the locale in l10n/locales.ini, followed by an import rule. For example:
l10n/locales.ini
import
[fr] @import url(data.fr.properties)
Open the corresponding .properties file, and fill in all the translations.
.properties
Open a pull request.
Contributions are very welcome!
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Mozilla Games
Mozilla Games site
Installation
To install the Node dependencies:
Development
All of the web content is static (see the https://github.com/mozilla/moz-games/tree/master/public directory).
To serve the site from the simple server:
Then launch the site from your favourite browser:
http://localhost:8080/
If you wish to serve the site from a different port:
Deployment
In production, the server is run like so:
Alternatively:
To run the server through Heroku’s foreman:
Localisation
All webpage content is localised using webL10n, a client-side library for internationalisation (i18n) / localisation (l10n).
If you would like to submit new translations:
Ensure a section exists for the locale in
l10n/locales.ini, followed by animportrule. For example:Open the corresponding
.propertiesfile, and fill in all the translations.Open a pull request.
Contributing
Contributions are very welcome!