These are chat archives for stealjs/steal

26th
Jun 2015
Justin Meyer
@justinbmeyer
Jun 26 2015 18:27
@matthewp I'm having a problem with can-connect's docs
in that steal is trying to load all the devDependencies
but I don't want to have to install them all
could there be an override that says that steal doesn't have to look for dev-dependencies
that only runs sometimes?
I don't want it to run when I'm actually developing
only for the demo pages
perhaps I could put in the demo pages, a system config that would ignore devDependencies?
think that is possible?
<script>steal = {system: {npmIgnore: ["devDependencies"] } }</script>
?
Chris Gomez
@akagomez
Jun 26 2015 18:45
@justinbmeyer I added that exact line of code to my repo yesterday and it worked.
Matthew Phillips
@matthewp
Jun 26 2015 18:45
yeah i would expect it to
Justin Meyer
@justinbmeyer
Jun 26 2015 18:46
I didn't think a merge would work like that
if there were other npmIgnores
in the package.json
it wouldn't merge the array
Matthew Phillips
@matthewp
Jun 26 2015 18:46
let me check
does currently
but we could make it do a merge
doesn't currently i mean
unrelated, but Manuel came across a unique problem where the jquery-ui npm package doesn't have a dependency for "jquery"
but does do require("jquery")
in its code
It is intended for Browserify users
Justin Meyer
@justinbmeyer
Jun 26 2015 18:50
we could ask them to add it
qunit did
Matthew Phillips
@matthewp
Jun 26 2015 18:50
so I wonder if Browserify falls back to the main package.json if the dependency is not in the local lib package.json
@justinbmeyer I don't know if you remember but there is an npmDependencies now
where you can explicitly set which dependencies to look for
and you can use it with npmIgnore
so you can do
npmIgnore: [ "devDependencies" ], npmDependencies: [ "qunit" ]
and everything but qunit will be ignored
Justin Meyer
@justinbmeyer
Jun 26 2015 20:09
@matthewp npmDependencies won't really work for me
b/c I basically need a special configuration for my demo pages
@akagomez that exact line worked for you?
inside a script tag and everything?
b/c it does not work for me
Justin Meyer
@justinbmeyer
Jun 26 2015 20:16
actually, I don't think this would even work
b/c There really isn't a System.config.system option anyway
you can't really overwrite a package
Chris Gomez
@akagomez
Jun 26 2015 22:11
@justinbmeyer I put it in my package.json.
npm-ignore.gif
Justin Meyer
@justinbmeyer
Jun 26 2015 22:12
yeah, that's not an option for me