Creating a new package
Let's say we want to create a new Keli package named MyPackage
, we can achieve this by typing the following command:
After typing this command, you should see some output message like this:
Then, type the following command to go into the MyPackage
directory:
After that, we need to add corelib
as dependencies, we can do that by typing:
Now, open the folders of MyPackage
in Visual Studio Code by typing:
When you open the file trees in VSCode, you will notice that there are the _src
folder, this is the folder where you will store your Keli source files for our package MyPackage
.
You might have notice that there is nothing inside the _src
folder. To try things out, let us create a file named MyPackageDemo.keli
inside the _src
folder.
Then, paste in the following contents into MyPackageDemo.keli
:
Now, open MyPackageDemo.keli
in VSCode.
After that, you should see the following:
That's all. Thank you for reading. Enjoy!
Last updated
Was this helpful?