February 2019
Beginner to intermediate
180 pages
4h 4m
English
The bsconfig.json file is a required file for all BuckleScript projects. Let's explore it:
// This is the configuration file used by BuckleScript's build system bsb. Its documentation lives here: http://bucklescript.github.io/bucklescript/docson/#build-schema.json// BuckleScript comes with its own parser for bsconfig.json, which is normal JSON, with the extra support of comments and trailing commas.{ "name": "my-first-app", "version": "0.1.0", "sources": { "dir" : "src", "subdirs" : true }, "package-specs": { "module": "commonjs", "in-source": true }, "suffix": ".bs.js", "bs-dependencies": [ // add your dependencies here. You'd usually install them normally through `npm install my-dependency`. If my-dependency has a ...Read now
Unlock full access