Comments (6)
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.
@sergeylukin are you using r.js to compile everything into one file? if so can you post your r.js config.
from bower-requirejs.
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.
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.
@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.
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)
- Add option to write new config file HOT 2
- Better error propagation HOT 4
- Generation doesn't work for overridden main array HOT 8
- inherit `baseUrl` from config.js if present HOT 1
- Issue saving config file
- cdnify support HOT 2
- prefix option to prefix module ids HOT 3
- ability to supply and modify config without working with files HOT 1
- Allow running inside Docker containers HOT 1
- Only add to an existing file HOT 1
- Non-destructive/additive-only mode
- yo backbone scaffolding failing due to "bower-requirejs.js" tasks...ERROR HOT 2
- Override path key HOT 1
- --transitive appears to silently fail when a Bower component specifies dependencies that are ignored in .bowerrc
- Deprecated? HOT 2
- Node packages are added to the array every run HOT 2
- Modules that support both AMD and node use node
- Tests don't pass on Windows HOT 2
- Add support for main in bower.json given as array of Strings HOT 2
- Requirejs is not added to dependencies automatically HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bower-requirejs.