diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..77bd7bc --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +.merlin +npm-debug.log +/lib/bs/ +/node_modules/ diff --git a/bsconfig.json b/bsconfig.json new file mode 100644 index 0000000..889b32d --- /dev/null +++ b/bsconfig.json @@ -0,0 +1,14 @@ +// 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": "the-super-tiny-compiler", + "version": "0.1.0", + "bsc-flags": ["-bs-super-errors"], + "sources": [ + "src" + ], + "bs-dependencies" : [ + // add your dependencies here. You'd usually install them normally through `npm install my-dependency`. If my-dependency has a bsconfig.json too, then everything will work seamlessly. + ], + "namespace": true +} diff --git a/package.json b/package.json index b3df43d..15aa46f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,12 @@ { "name": "the-super-tiny-compiler", "version": "1.0.0", - "author": "James Kyle (thejameskyle.com)", - "license": "CC-BY-4.0", - "main": "./the-super-tiny-compiler.js" + "scripts": { + "build": "bsb -make-world", + "start": "bsb -make-world -w", + "clean": "bsb -clean-world" + }, + "devDependencies": { + "bs-platform": "1.9.2" + } } diff --git a/the-super-tiny-compiler.js b/src/the-super-tiny-compiler.re similarity index 100% rename from the-super-tiny-compiler.js rename to src/the-super-tiny-compiler.re