These are chat archives for TypeStrong/atom-typescript

21st
Apr 2015
Basarat Ali Syed
@basarat
Apr 21 2015 00:23
alright I am back. mtraynham's answers have been spot on soo :)
Matt Traynham
@mtraynham
Apr 21 2015 00:30
:)
Basarat Ali Syed
@basarat
Apr 21 2015 00:31
Note: to provide a consistent experience on IDE vs. Build I am planning to push atom-typescript to NPM so it does the same stuff for your tsconfig on the build server. Will need IOJS. I'll post here once I do that. No timeline right now
Matt Traynham
@mtraynham
Apr 21 2015 00:31
it was really all on a whim, once I saw the typescript.definition object in the path
ooooooooooo
now that sounds awesome!
my build's a bit too complex... sits inside of a maven project, but I could definitely use that for other things
Basarat Ali Syed
@basarat
Apr 21 2015 00:33
Alright then. It has a timeline. End of this week :rose:
Matt Traynham
@mtraynham
Apr 21 2015 00:33
:)!
Matt Traynham
@mtraynham
Apr 21 2015 00:52
I have yet to make the iojs switch
I'm sure it's in my future soon
Basarat Ali Syed
@basarat
Apr 21 2015 00:52
So do I :)
Having native promises is a joy
atom uses iojs that's why its a requirement :)
Matt Traynham
@mtraynham
Apr 21 2015 00:53
I'm really glad it happened... node slowed down soooo much
atleast in terms of features
Basarat Ali Syed
@basarat
Apr 21 2015 00:53
yeah
Matt Traynham
@mtraynham
Apr 21 2015 00:53
so you're familiar with iojs then, right? having worked with atom so much?
Basarat Ali Syed
@basarat
Apr 21 2015 00:53
yup
Matt Traynham
@mtraynham
Apr 21 2015 00:53
is it a direct replacement for nodejs?
Basarat Ali Syed
@basarat
Apr 21 2015 00:53
Its the same :) just more JS features
Yes
Matt Traynham
@mtraynham
Apr 21 2015 00:54
can I just drop node and pick up iojs, everything still runs fine?
Basarat Ali Syed
@basarat
Apr 21 2015 00:54
Yes. Hopefully
Matt Traynham
@mtraynham
Apr 21 2015 00:54
:)
Basarat Ali Syed
@basarat
Apr 21 2015 00:54
like all things that work
Matt Traynham
@mtraynham
Apr 21 2015 00:55
well I've got nodejs installed with homebrew, maybe I'll just uninstall it and try real quick
so many package managers!!!
wonder what the build time comparison will be on this monolithic project I have
Basarat Ali Syed
@basarat
Apr 21 2015 01:11

wonder what the build time comparison will be on this monolithic project I have

Guaranteeeeed faster

I saw a noticable pref diff when atom went to iojs
Matt Traynham
@mtraynham
Apr 21 2015 01:17
I installed with nvm
pretty interesting, able to run multiple versions of node
I need to figure out a better solution in the future of handling these multiple project dependencies
the longest part is reinstalling the npm/bower deps
even if they are cached
working on a maven based Java project, and maven is centered around the idea of copy everything to a working directory, so the source is untouched during build time
kind. of. annoying... but works well for shipping with the server
Basarat Ali Syed
@basarat
Apr 21 2015 02:25
On windows here ... and .net :-) my lack of experience is showing
Basarat Ali Syed
@basarat
Apr 21 2015 03:47
I'll be changing over typescript.definition to typings : Microsoft/TypeScript#2338 Will make it a new major release when I do
/cc @mtraynham
Matt Traynham
@mtraynham
Apr 21 2015 04:05
I saw that! Like de ja vu from 10 hours ago :)
Basarat Ali Syed
@basarat
Apr 21 2015 04:07
I am slightly on the fence : https://github.com/Microsoft/TypeScript/issues/2338#issuecomment-94562195 I'd rather just have a standard. Personally don't care about what its called :) (I didn't like formatCodeOptions :) )
Matt Traynham
@mtraynham
Apr 21 2015 04:08
heh, typings is not bad. Actually, I think that's the default directory tsd creates.
Basarat Ali Syed
@basarat
Apr 21 2015 04:09
Yes :rose:
Matt Traynham
@mtraynham
Apr 21 2015 04:09
tsd hasn't been touched in quite some time though
looks like December
good to get some traction somewhere, maybe I won't have to use the tsd@next branch anymore :)
Basarat Ali Syed
@basarat
Apr 21 2015 04:10
bartvds is offline. I've been granted ownership. I'm busy with atom-ts. Will make v0.6 => 1.0 once this settles. Will also remove tsd.d.ts since everyone should use tsconfig.json
///<reference seems like a bad idea to me. PS: My hacky plan to work within the current framework we have : https://github.com/Microsoft/TypeScript/issues/2839#issuecomment-94630741
okay ... I didn't think through it. But now that you've forced me will leave tsd.d.ts for human convenience.
Matt Traynham
@mtraynham
Apr 21 2015 04:12
haha
actually I'm kind of in favor of moving away from tsd
Basarat Ali Syed
@basarat
Apr 21 2015 04:13
Yes. The plan is tsd will only be used for non ts libs
Matt Traynham
@mtraynham
Apr 21 2015 04:13
sure, the biggest problem I have with tsd is how versioning works
which that TS comment reallllly alludes to
Basarat Ali Syed
@basarat
Apr 21 2015 04:14
Its a limitation of the compiler. There can be only one version of declare module "foo" in a given compilation context
Matt Traynham
@mtraynham
Apr 21 2015 04:15
I thought merging was added?
Basarat Ali Syed
@basarat
Apr 21 2015 04:15
@mtraynham yes, merging was added. But its still a single merged version
Matt Traynham
@mtraynham
Apr 21 2015 04:15
oh gotcha
reading through that bug
Matt Traynham
@mtraynham
Apr 21 2015 04:26
all of that sounds fantastic
honestly, I've avoided /// <reference> as much as I can
Basarat Ali Syed
@basarat
Apr 21 2015 04:32
:rose:
tsconfig only came recently (hardly 2 months?) ... so even atom-ts has it in a bunch of places :) except a cleanup
Basarat Ali Syed
@basarat
Apr 21 2015 06:59

@mtraynham / @cmichaelgraham I've made package.json support more seemless : https://github.com/TypeStrong/atom-typescript#packagejson-support Pushed with V3 as a breaking change.

Expect a V4 if typescript.definition changes :rose:

Mike Graham
@cmichaelgraham
Apr 21 2015 10:39

@basarat that looks cool !! :) so in the case of aurelia, where one repo may depend on one or more other repos, do you have an idea of how to set that up?

basically, right now, i use dts-generator, and run this script with nodejs. all of the repos in a ring can be built in any order once all lower numbered rings have been successfully built.

it would be really cool if i could open this folder with atom & atom-typescript and somehow specify the build order for each folder (each of which is an aurelia repo).

Matt Traynham
@mtraynham
Apr 21 2015 16:56
@basarat awesome!
Question, when compiling with TypeScript, how can I change the sourceRoot for sourcemaps?
Matt Traynham
@mtraynham
Apr 21 2015 17:02
I guess that's the wrong question
as I found the config and it broke stuff
Matt Traynham
@mtraynham
Apr 21 2015 17:13
ahh was webpack issue.
Matt Traynham
@mtraynham
Apr 21 2015 20:42
@basarat no love for bower?