Build js, redjs builder

Hello abrowser.

/ >

about joining


Since I quit my job and have free time, I will tell a little about the build scripts, as well as about his craft solution a year ago — redjs builder. The article will probably be of interest to js developers who lead large-scale projects, which are not convenient to conduct in a single file.

what is it?


If you are a js developer and you are in my life wrote that more than a plugin for slider jquery, then you probably came up with the idea: "but as would be convenient if 1-n file divided into a few". And I have this idea arose not once, even when actively engaged in writing his js library. And then I filled your side...

a Little about about this the builders


To begin to say in what cases do we need the Builder.
In my practice I have met 4 types of projects:
the
    the
  • any library
  • the
  • Blozhikah, personalized content and other vermin
  • the
  • multiple pages with rich frontend
  • the
  • Single-page application


If you write your library, usually in most cases its Assembly(if it is large enough) rests on your shoulders. In other cases, the preparation of scripts to the release provided for server side(but unfortunately not always). Bilder makes sense to use in the 2nd and 3rd cases, the decrease in the number of requests to the server. In the 3rd case, however, usually the scripts are compiled not one, but several files, maybe all the code in one file is too fat. Single-page application with proper architecture, keeping most of the code in separate modules and explicit use of the Assembly supposedly don't require js.

Would say that at its core, the Assembly is of 2 types:
the
    the
  • gluing the content file
  • the
  • stream of the internal syntax


What are the builders I've seen?


the
    the
  • Very simple (. bat file)
  • the
  • Universal, gradual, but long custom(Ant)
  • the
  • Specialized(GWT)
  • Builders in scripting languages(php, nodejs)



I must say that as builders they didn't suit me... I would prefer something like php but more simple and unobtrusive. Just like boxed solutions. And some additional features.

Redjs Builder



download here

A very simple program written in C#(Yes, it depends on windows 7 key no additional arrangements requires).

With permission, I will list some possibilities and advantages:
the
    the
  • the ability to put on startup(when you start the system immediately in the system tray)
  • the
  • build a js file from several, not just gluing and replacement tokens
  • the
  • syntax of tokens is done in the style of review that does not distract from the code that does not break backlight
  • the
  • strict and non-strict inclusion. lax can be excluded from build tree
  • the
  • auto arrangement is enabled, when files
  • the
  • ability to prostroena in multiple places at once
  • the
  • minification of code


All my js projects built them.
To see the program in action you can download one of them, for example ree. The Builder(who also need to download and unpack) need to specify input — the main file of daddy's source(in my project same as project name), output the code will create a compiled version.

Syntax can be viewed in the Builder, and on the website documentation.

I'm really pleased that I wrote this Builder, although they spent quite a bit of time(not knowing C#, na). At the moment the program is working properly for me on project 10, both open and closed.

What is the status now


In fact, despite its merits, this version of(2) is obsolete in my eyes in just a couple of weeks of use. It has its flaws in the ideology, as well as a couple of bugs, which, due to my inexperience at the time of writing(in WPF and C#) it is difficult to resolve.
At the moment I already have two versions of the Builder with a label 3, which is devoid of many shortcomings of augmented buns and candy. In the near future I plan to add.
For any feedback/criticism/suggestions I would be grateful.

Ctrl+B
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

March Habrameeting in Kiev

PostgreSQL load testing using JMeter, Yandex.Tank and Overload

Monitoring PostgreSQL with Zabbix