From 110068e7a5b647bf3e98badcb4b9e20cbb784f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Cha=CC=81varri?= Date: Tue, 19 Sep 2017 21:08:09 +0200 Subject: [PATCH] Configuration --- .gitignore | 5 +++++ bsconfig.json | 14 ++++++++++++++ package.json | 11 ++++++++--- .../the-super-tiny-compiler.re | 0 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 bsconfig.json rename the-super-tiny-compiler.js => src/the-super-tiny-compiler.re (100%) 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