GithubHelp home page GithubHelp logo

mozilla / commonplace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dash1291/commonplace

10.0 13.0 5.0 1.46 MB

Node modules for Firefox Marketplace frontend projects

License: Other

JavaScript 100.00%

commonplace's Introduction

Commonplace

Build Status

Necessary Node modules for Marketplace frontend projects.

Commonplace includes:

  • Common Bower and require.js configuration
  • Nunjucks template compilation optimizer
  • Localization extraction and language pack generation

Creating a New Marketplace Frontend Project

Clone the Marketplace template.

Run make init. This will download dependencies and set things up.

commonplace's People

Contributors

aricha avatar azulus avatar chuckharmston avatar cvan avatar dash1291 avatar diox avatar jasonthomas avatar kumar303 avatar mattbasta avatar mstriemer avatar muffinresearch avatar ngokevin avatar spasovski avatar twiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commonplace's Issues

Move src/media/js files into new contrib directory

This would allow commonplace projects to easily define custom behavior on a per-project basis without breaking the upgrade path or using confusing _local hacks...an issue separately being faced by both fireplace and yogafire right now.

Does not run on Windows

When I run damper on Windows, most of the content (i.e. images and text) do not get served.

Add prefix for URL routes

If you're in commbadge all URL routes prefixed with /comm/ we should assume correspond to views in commbadge.

We should consider adding a url_prefix to the settings.js file that if set allows us to determine which URLs to hijack (so we then know which URLs are outbound ones).

See bug 907868.

Marketplace docker setup failing due to incorrect relative path

I'm not sure whether this is the right place to report the issue, there are lots of different repositories involved. Feel free to point me in the right direction if I need to file this elsewhere.

I'm installing Marketplace via Docker as outlined in the docs. Calling docker-compose up fails with the following error message:

fireplace_1     | [13:08:59] Starting 'js_build'...
fireplace_1     | [13:08:59] Finished 'js_build' after 211 ms
fireplace_1     | { [Error: Error: ENOENT, no such file or directory '/srv/fireplace/src/bower_components/marketplace-core-modules/core/init.js'
fireplace_1     | In module tree:
fireplace_1     |     main
fireplace_1     |       init
fireplace_1     | 
fireplace_1     |     at Object.fs.openSync (fs.js:427:18)
fireplace_1     | ]
fireplace_1     |   originalError: 
fireplace_1     |    { [Error: ENOENT, no such file or directory '/srv/fireplace/src/bower_components/marketplace-core-modules/core/init.js']
fireplace_1     |      errno: 34,
fireplace_1     |      code: 'ENOENT',
fireplace_1     |      path: '/srv/fireplace/src/bower_components/marketplace-core-modules/core/init.js',
fireplace_1     |      syscall: 'open',
fireplace_1     |      fileName: '/srv/fireplace/src/bower_components/marketplace-core-modules/core/init.js',
fireplace_1     |      moduleTree: [ 'init', 'main' ] } }
mkt_fireplace_1 exited with code 1

After some investigation, the issue is being caused by this line (never mind the error message showing up after "Finished 'js_build'" message, that's mozilla/marketplace-gulp#28). Note that the default paths are being overwritten by the buildPaths member defined here. The path for the core module is a relative one and resolves into /srv/fireplace/src/bower_components/marketplace-core-modules/core, correct path would have been /srv/fireplace/bower_components/marketplace-core-modules/core however (without src).

I'm not sure which one is the guilty party here but using process.env.BOWER_PATH (which is available) would have been one way to avoid the whole issue.

`commonplace fiddle` should accept branches (refs?)

It might be helpful to have a commonplace fiddle feature allowing a repository's branch to be checked out and deployed.

The package.json config might look like this:

"commonplaceDependencies": {
    "git://github.com/mozilla/fireplace.git": {
        "symlinks": {"hearth/media": "media/fireplace"},
        "name": "fireplace",
        "branch": "feed"
    }
}

Along the same lines, it may be useful to allow specification of a ref (commit hash or tag name):

"commonplaceDependencies": {
    "git://github.com/mozilla/fireplace.git": {
        "symlinks": {"hearth/media": "media/fireplace"},
        "name": "fireplace",
        "ref": "f9c70cb39d882ad1ce57939eed99c7f7130484af"
    },
    "git://github.com/mozilla/rocketfuel.git": {
        "symlinks": {"src/media": "media/rocketfuel"},
        "name": "rocketfuel",
        "ref": "2014.01.07"
    }
}

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.