Jump to content

Contribution validated working environments.


jerome
 Share

Recommended Posts

Hello,

 

BJS is coded in TS.

So, I you want to contribute you have to push some valid TS code. Meaning some TS you can compile to JS and test in your browser.

 

Having a working environment may be sometimes a mess to set rightly depending on your own system.

 

Please report here what really working environment you are using to produce valid TS and compile it to running JS.

Please also, read first previous posts so you won't reproduce a case already described by someone else before.

 

You could fill in this pattern to report :

 

OS : name, version                              ex : Windows 7 Pro 64b

nodejs : version or n/a                         ex : 0.10.25   (command line type "nodejs -v" to get it)

npm : version or n/a                            ex : 1.4.28     (command line type "npm -v" to get it)

tsc : version or n/a                               ex : 1.4.1.0    (command line type "tsc -v" to get it)

gulp : version or n/a                             ex : 3.8.10    (command line type "gulp -v" to get it)

gulp-tsc : version or n/a                       ex : 0.9.2      (command line type "npm list gulp-tsc to get it)

 

Editor or IDE : name, version, and/or plugin name , version

 

Feel free to add any other pertinent informations and to link your post to a new tuto page "How to set up with OS / IDE".

 

Please report only really working environments in this thread.

Link to comment
Share on other sites

I use the planatir Plugin to Eclipse (4.4.1) as an editor for TS files.  Eclipse also handles git / GitHub (fetch / merge / pushing branch to GitHub fork).  For repository historical searches / diffs, I use Netbeans 8.

 

I use Gulp for building, however.

 

OSes: Ubuntu 14.04 LTS, OSX (multiple versions)

/usr/local/bin/node -v: v0.10.31

npm -v: 1.4.23

gulp -v: CLIVersion 3.8.7, Local version 3.8.8

npm list gulp-tsc: 0.9.2

Link to comment
Share on other sites

OS: Windows 7

nodejs: 0.10.33

npm: 1.4.28

tsc: 1.1.0.1

 

I don't have gulp yet (will need it if I want to contribute more than one line PRs...)

 

I code in TS with SublimeText 3 & a package called T3S: https://github.com/Railk/T3S, and I use a custom build script as follow:

{    "cmd": ["tsc","$file"],    "file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",    "selector": "source.ts",    "working_dir": "$project_path",    "windows": {        "cmd": ["tsc.cmd", "$file"]    }}
Link to comment
Share on other sites

RaananW, our savior :lol:

 

Actually, if you achieve to integrate this adaptative environment behavior in the gulp tasks, you will then hide us all this unneeded complexity layer (setting up each tool version) and keep us only the benefits of the TS language.

Very very smart :)

 

You know, we all don't want to care if the very last TS version is BJS compliant  or what TS version we should downgrade to just to compile a small change in the code.

Or when change it if TS compiler changes. (In brief, all what rejected Rich Pasher Davey from TS)

 

All we need is to have the right functional working platform up to date for hacking or coding BJS fun :P

 

Sincerely RaananW, if you achieve this, I'll be the gladest guy ever and the first to mark this topic as definetly useless/answered/cleared/deleted/blazed/nuked ;)

Link to comment
Share on other sites

Ok, I reactive this topic only as example purpose.

 

I use :

OS : linux ubuntu 14.04

node : 0.12.0   my nodejs is updated with the n npm module which can maintain a stable nodejs installation

npm : 2.5.1

tsc : 1.4.1.0

these are global installations, maybe the eventual local installations may differ (more updated).

 

I (mis)use Eclipse (luna) because I'm not a great fan of heavy IDE (pleonasm).

 

I tested TypEsc typescript plugin, probably nice, but gave it up because I just couldn't find doc/tuto/wiki to set it up well.

I just tried Palantir typescript plugin and faced some artefacts (false syntaxic errors underlined in the code). I surely mis-use it too for now. Reading some tuto would help.

Didn't test the embedded eclipse git interface but just the branch switch.

 

I also use (when upset with Eclipse) Sublime Text 2 with T3S typescript plugin. Well, not an IDE but still one of the best editor ever.

Works fast and well (better than Eclipse regarding the pure code edition). Manages as well the .d.ts files once they are declared in the beginning of the ts files.

 

I'm still forcing me to use an IDE (why ?)  and try to bite the bullet to set up and to master every embedded tool : git, builder, etc.

But I have to confess I feel attracted back to Sublime Text. Question of opinion (or laziness ?).

 

I use (making big mistakes) git in command line.

I compile or build with gulp in command line too.

 

The very important point, especially for Linux users, is to get the latest gulpfiles fixed by RaananW.

He really fixed a lot of bugs which made me waste a lot of time (and hair), some tiny things that bevahe differently in Windows than in Linux, so Windows guys just couldn't see them (compiler version error, dependency missing, filename case sensivity, etc).

Again many thanks to him  :) .

 

So if you are a linux guy like me feeling quite reticent about big IDE and if you aren't afraid with command line terminal, you could easily use :

- your favorite editor with its TS plugin

- git command line (just beware when juggling with branches, commit, fetches, etc)

- latest bjs gulpfile and gulp

Link to comment
Share on other sites

While not likely for a few years, I see a future where the browser can do this compiling of Typescript for you.  (There is a type attribute on the script tag).  Since it is directly convertible to Javascript, it could be interspersed with it.  Then, hopefully Javascript will become the 'Latin' of the Internet.

 

Right now things are a little messy, with editors requiring Node and such. 

Link to comment
Share on other sites

  • 10 months later...

BTW,

 

I'm still on Ubuntu 14, but I just switched this week from SublimeText 2 to the editor Atom which is really great for coding javascript/typescript.

 

I think I will keep atom then :

- cobalt theme (I like it from years, that's why I didn't keep VSCode)... coders are so conservative with their beloved environment sometimes ;-)

- internal and easy package (plug-in) manager

- native easy git integration/visualization

- easy TS auto-completion working out-of-the box

- etc : classic other features of modern code editors

 

The reason I left ST2 is that atom was as easy as it, has the cobalt theme, but better TS completion and git feature and seem a bit more stable for now (no "Python couldn't do that" message from time to time)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...