Empty Project

This section will talk about how to create a empty project with Next and how buiild the app

Create the project
mkdir empty_project # Create dir
cd empty_project/ # Get in
mkdir src # Create src dir
mkdir build # Create build dir
touch src/main.cpp # Create main file
Write Code in main.cpp
//  src/main.cpp

#include <iostream>

int main(int argc, char const *argv[])
{
    std::cout << "Hello World with Next" << std::endl;
    return 0;
}
Config the config.yaml file
touch config.yaml

Basics

# config.yaml
name_project: empty_project
type_project: executable
description: Empty project in Next
version: v0.0.1
build_dir: build

Commands

# config.yaml
commands:
  build: g++ src/main.cpp -o build/app
  clean: rm -r build/app
  run: ./build/app