Add build script to acquire quine

- Add script to npm package
deprecated/mblf-compiler-nodejs
Raymonzut 3 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"
},
"scripts": {
"build": "mblf wordFactList.mblf out.bf",
"build": "./build.sh",
"test": "node test/wordFactList.js"
},
"repository": {

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

Loading…
Cancel
Save