Stabel

Changes To Getting started
Login

Changes to "Getting started" between 2021-06-10 17:08:26 and 2021-06-14 09:56:50

     1      1   Make sure you have Node.js installed, version 14 or later.
     2      2   
     3         -You can install the Stabel command line tool using npm: <code>npm install -g stabel</code>.
            3  +You can install the Stabel command line tool using npm: <code>npm install -g stabel-lang</code>.
     4      4   
     5      5   To initialize a project, create a folder and run this command inside that folder: <code>stabel init author/projectname</code>.
     6      6   
     7      7   You now have a <code>stabel.json</code> file which describes several aspects of your project. Here you can define the name of the project, the version of the project, any dependencies, where those dependencies can be found and which modules you're exposing outside the project (if you're making a library).
     8      8   
     9      9   By default, you'll find code in your <code>src</code> folder, there should be a simple module there now.
    10     10   
    11     11   To compile your project, you can run: <code>stabel compile</code>.
    12     12   
    13     13   To compile and execute a function, you can run <code>stabel run /author/projectname/path/to/module/fn</code>. Functions executed in this way requires a type signature of <code> -- Int</code>.