在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mozilla/fireplace开源软件地址:https://github.com/mozilla/fireplace开源编程语言:JavaScript 65.5%开源软件介绍:Marketplace FrontendThe Firefox Marketplace frontend. Installation and Usagemake install
make serve This will start a web server on Building for ProductionOur build process bundles up our JS, minifies our CSS, compiles our templates, and extracts locales into JS modules. To run the build process: make build This will generate files including:
Developing the Packaged AppTo package the Marketplace frontend, run:
This will output a package and output to Further details can be found in the Marketplace documentation. Marketplace Mock APIWe have an instance of a mocked version of the Marketplace API at
iframed PackageWe currently ship with an iframed version of the Marketplace frontend. It is a package that contains an iframe pointing to the Marketplace website. See more details within the iframe package directory. LocalizingA detailed guide to extracting strings and creating JS language packs is located on the wiki. TestsWe use CasperJS to write UI tests and mocha, chai and sinon for unit tests. Running Unit Testsmake unittest This will launch the karma test runner that will run the unit tests in a new instance of Firefox. Running Functional and UI TestsBefore running the functional and UI tests, your First, start a server with: API=mock make serve Then, run the tests against it. We support both PhantomJS and SlimerJS to run tests in
WebKit and Gecko, respectively. To run both use make uitest-phantom Running Functional and UI Tests in SlimerJSSlimerJS requires a path to a SLIMERJSLAUNCHER=/Applications/Firefox-30.app/Contents/MacOS/firefox make uitest-slimer Running a Single Functional or UI TestUITEST_FILE=tests/ui/<PATH_TO_TEST_FILE> make uitest Serving with NginxIf you wish to serve the Marketplace frontend with nginx, which is often useful for keeping all the Marketplace projects on the same domain, read about serving Fireplace with Nginx. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论