# Directory Structure
Returning to webapp's original nature. π―
project
βββ .tmp // Scaffolds out a temporary directory for development
βββ dist // Scaffolds out the production build
βββ¬ src // Source code in here (Create a directory in project)
β βββ fonts
β βββ images
β βββ media
β βββ¬ scripts
β β βββ index.js // Required. A entry file for JS.
β βββ¬ styles
β β βββ main.css // Required. A entry file for CSS.
β βββ index.html // Required. A entry file for HTML.
βββ .dotfile // (e.g. .gitignore, .browserslistrc, etc...)
βββ babel.config.js
βββ balm.config.js // Required. The default configuration file for Balm.
βββ package.json // Required.
βββ ...
π We recommend using Balm CLI (opens new window) to scaffold out a front-end web app.
balm.config.js
: The default configuration entry file in BalmJS project root
- update
package.json
for custom configuration entry file:
{
"scripts": {
"dev": "balm --config /path/to/config/balmrc.js",
"prod": "balm -p --config /path/to/config/balmrc.js"
}
}