Code Monkey home page Code Monkey logo

Comments (6)

sindresorhus avatar sindresorhus commented on June 30, 2024

I couldn't think of a reason it would make sense to include RequireJS in your RequireJS config at that time yeoman/grunt-bower-requirejs#9

@robdodson is this common?

from bower-requirejs.

robdodson avatar robdodson commented on June 30, 2024

@sergeylukin are you using r.js to compile everything into one file? if so can you post your r.js config.

from bower-requirejs.

sergeylukin avatar sergeylukin commented on June 30, 2024

Yes, you can find it in https://github.com/sergeylukin/emmet.docpad
I'm currently including almond instead, but requirejs may be required in some cases

Sent from my BlackBerry® smartphone from orange

-----Original Message-----
From: Rob Dodson [email protected]
Date: Fri, 05 Jul 2013 07:20:03
To: yeoman/[email protected]
Reply-To: yeoman/grunt-bower-requirejs [email protected]
Cc: Sergey [email protected]
Subject: Re: [grunt-bower-requirejs] Why excluding requirejs (#34)

@sergeylukin are you using r.js to compile everything into one file? if so can you post your r.js config.


Reply to this email directly or view it on GitHub:
yeoman/grunt-bower-requirejs#34 (comment)

from bower-requirejs.

robdodson avatar robdodson commented on June 30, 2024

ah ok I see. I've always used the combined require-jquery and included that in my builds. I thought r.js included requirejs for you but looks like it doesn't.

@sindresorhus here's an example showing how you can create a path called requireLib and set it to require.js. It's also discussed in the r.js docs here.. If you don't do that then requirejs won't end up in your built distribution.

I think if/when we see key === 'requirejs' we should create a path called requireLib. I don't think we want to create a path called requirejs or require because those are typically reserved. Sound ok @sergeylukin?

from bower-requirejs.

sergeylukin avatar sergeylukin commented on June 30, 2024

@robdodson thanks for notes. I think requireLib should do the trick as well but why would requirejs path be reserved? I mean even if it's already set and requirejs is installed via bower and grunt-bower-requirejs is used on purpose (which already suggests not setting any path that should refer to bower component instead..), it most likely refers to RequireJS library anyways, so no damage afaics, or am I missing something?

from bower-requirejs.

robdodson avatar robdodson commented on June 30, 2024

Not sure to be honest. I asked @jrburke over here: requirejs/requirejs#801. We'll see what he says.

from bower-requirejs.

Related Issues (20)

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.