Out of the box, Neutrino presets expect a project to have a particular structure to make the development process for new projects as quick as possible. This is broken up into three directories:
- Source code
- Build assets
Each of these directories is set up via convention by a Neutrino preset, but each can be customized as desired by overriding the preset's configuration or using a different preset. See Custom Configuration for detailed instructions.
By default, Neutrino presets expect all project source code to live in a directory named
src in the
that would be available to your compiled project.
When running your project or creating a build bundle, a preset will look for this
src directory for
the entry point(s) to your application and use this as the relative location for finding other assets
necessary for creating your builds.
When creating a build bundle, a preset will put the compiled assets, including any generated
build by default. Typically your Neutrino preset will copy
the same relative path structure for static assets as is used for the source files.
Normally most projects will exclude checking in this build directory to source control.
Be sure to add this directory to your project's
.hgignore, or similar file.
Neutrino presets by default expect all tests to be located in a directory named
test. In order to make the
separation between tests and test fixtures or harnesses easier to differentiate, Neutrino presets also
usually look for test files ending in
.test.js. See your specific test preset for more
detailed information about running tests and other conventions.