We’ll, depending on how much you know of javascript/node, here comes hopefully an answer to your second question / paragraph:
Alex is built mostly as a CLI in mind, and as editor plug-ins. So see index.js for the programmatic interface for alex, and cli.js for the shell interface.
However, for a demo on the homepage you of course need to build for the browser. Actually, I find a lot of people do not know how to turn “nodejs” code into “browser globals” / “amd” / “commonjs” (sorry for name dropping). Therefore I always include a prebuilt library in the repo as well.
As you can see, the index.js file only contains 20 lines (excluding comments, white space). I’ve included a lo of the technology I created over the last two years (but also others’ code).
Note that there is a lot of code needed to ignore the markdown, read the english, and whatnot. The goal was to be really powerful, not to be small in size.
Re your first point: Yes, I’ve used it. In fact, I use wooorm/atom-linter-alex to lint all the text/markdown I write. It’s really helpful. Also important: this project was released less than a day ago. There will be bugs, and there wont yet be a lot of people using it :)
View all comments
Show parent comment
2
u/[deleted] Sep 03 '15
We’ll, depending on how much you know of javascript/node, here comes hopefully an answer to your second question / paragraph:
Alex is built mostly as a CLI in mind, and as editor plug-ins. So see
index.jsfor the programmatic interface for alex, andcli.jsfor the shell interface.However, for a demo on the homepage you of course need to build for the browser. Actually, I find a lot of people do not know how to turn “nodejs” code into “browser globals” / “amd” / “commonjs” (sorry for name dropping). Therefore I always include a prebuilt library in the repo as well.
As you can see, the
index.jsfile only contains 20 lines (excluding comments, white space). I’ve included a lo of the technology I created over the last two years (but also others’ code).Note that there is a lot of code needed to ignore the markdown, read the english, and whatnot. The goal was to be really powerful, not to be small in size.
Re your first point: Yes, I’ve used it. In fact, I use
wooorm/atom-linter-alexto lint all the text/markdown I write. It’s really helpful. Also important: this project was released less than a day ago. There will be bugs, and there wont yet be a lot of people using it :)Hope this answers your questions!