The source code of The Agent's landing page.
- First, ensure that NodeJS & Node Package Manager (npm) are both installed. If they're not installed, choose your OS and installation method from this page and follow the installation instructions.
- This page requires Node 14 to work. You can handle multiple node versions with NVM, for example.
- Next, use your command line to enter your project directory.
- Run
npm install
to install all of the dependencies into your project. This should automatically clean, inspect, build and prepare the sources for distribution. - Run
npm run watch
to start a local server and open the page in your default browser. The server will watch for any changes in thesrc
directory and automatically inject them into the distribution. Distribution is already available at./dist
.
In case you get a dependency conflict, feel free to run the installation command with --force
applied.
⚠️ Don't forget to copygit
hooks from/hooks
to.git/hooks
before starting your work!
And now you're ready to go!
Run any of the available task by typing
npm run <task>
(where "task" is the name of the task in the"scripts"
object inpackage.json
). The most useful task for rapid development iswatch
. It will start a new server, open up a browser and watch for any SCSS or JS changes in thesrc
directory; once it compiles those changes, the browser will automatically inject the changed file(s) into your distribution.