Add build script to acquire quine

- Add script to npm package
deprecated/mblf-compiler-nodejs
Raymonzut 4 years ago
parent 01a12f5424
commit 2a5fe1428f
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 1
      build.sh
  2. 2
      package.json
  3. 4
      test/wordFactList.js

@ -0,0 +1 @@
mblf wordFactList.mblf out.bf && sed '0,/\./s//ÿ/' out.bf > quine.bf

@ -7,7 +7,7 @@
"test": "test" "test": "test"
}, },
"scripts": { "scripts": {
"build": "mblf wordFactList.mblf out.bf", "build": "./build.sh",
"test": "node test/wordFactList.js" "test": "node test/wordFactList.js"
}, },
"repository": { "repository": {

@ -2,6 +2,6 @@
const assert = require('assert') const assert = require('assert')
const fs = require('fs') const fs = require('fs')
fs.readFile("out.bf", (_, output) => { fs.readFile("quine.bf", (_, output) => {
assert.equal(output, "<+[-<+]-.<<<<<<<[.>]") assert.equal(output, "<+[-<+]-ÿ<<<<<<<[.>]")
}) })

Loading…
Cancel
Save