Getting Started
Quickly get setup to work with Knot.
Starting a New Project
If you will be starting a new knot
project, the best option would be to use the provided project generator. It currently supports projects which use react
, vue
,webpack
, browserify
and rollup
. In order to run the command either install it globally or use it directly with npx
.
To start a new project, create a directory for it and run the generator's init
command. You will be prompted to choose a type of project as well as answer a couple of questions.
This command will generate a number of files, most important being the following:
.knot.yml
- configuration file for theknot
compilersrc/index.js
- the javascript entry pointsrc/index.kn
- theknot
application entry point
A development server can be started by running the package's start
command:
The code can also be bundled by webpack
into minified javascript and html:
Last updated
Was this helpful?