1
0
Fork 0
mirror of https://github.com/Oreolek/pancakes-or-waffles.git synced 2024-05-17 16:28:26 +03:00
This commit is contained in:
Lau Skeeter 2018-01-28 00:58:31 +00:00
parent 9e8dbd5bb7
commit 57f7d5c747
91 changed files with 182 additions and 475 deletions

View file

@ -4,10 +4,18 @@
require('dotenv').config();
const webpack = require('webpack');
const WrapperPlugin = require('wrapper-webpack-plugin');
const fs = require('fs');
const path = require('path');
const modules = ['change-case','query-string'];
const modules = [
'change-case',
'query-string',
'seedrandom',
'pluralize',
'number-to-text/converters/en-us.js',
'number-to-text'
];
try {
fs.mkdirSync(path.join(__dirname,'..','target'));
@ -15,15 +23,31 @@ try {
} catch(e){}
const webpackify = (module) => {
const info = JSON.parse(fs.readFileSync(path.join(__dirname,'..',`node_modules/${module}/package.json`)));
if(!info.main) info.main = 'index.js';
const entry = (()=>{
if(module.indexOf('.js') > -1) {
return path.join(__dirname,'..',`node_modules/${module}`);
}
else {
const info = JSON.parse(fs.readFileSync(path.join(__dirname,'..',`node_modules/${module}/package.json`)));
if(!info.main) info.main = 'index.js';
return path.join(__dirname,'..',`node_modules/${module}/${info.main}`);
}
})();
webpack({
entry: path.join(__dirname,'..',`node_modules/${module}/${info.main}`),
entry: entry,
output: {
path: path.resolve(path.join(__dirname,'..','target','npm')),
filename: `${module}.js`
}
filename: `${module.replace('.js','')}.js`,
library: '_217878383_',
libraryTarget: "var",
},
plugins: [
new WrapperPlugin({
footer: 'export default _217878383_'
})
]
}, (err, stats) => {
if (err || stats.hasErrors()) {
console.error(err, stats)

View file

@ -12,7 +12,7 @@ app.use('/target', express.static(path.resolve(__dirname, '../target')));
app.use('/test', express.static(path.resolve(__dirname, '../test')));
app.get('/test/mocha.js', (req, res, next) => res.sendFile(path.resolve(__dirname, '../node_modules/mocha/mocha.js')));
app.use('/src', express.static(path.resolve(__dirname, '../src')));
app.use('/app', express.static(path.resolve(__dirname, '../public')));
app.use('/corpus', express.static(path.resolve(__dirname, '../corpus')));
app.get('/', require('./route/index.js'));

View file

@ -26,15 +26,27 @@ const render = (options={}) =>
</head>
<body>
</body>
<script module src="/src/app.js"></script>
${!options.test?
`<script type="module" src="/app/index.js"></script>`:''
}
${options.test===true?
`
<script src="/test/mocha.js"></script>
<script>mocha.setup('bdd');</script>
<script src="/test/test.js"></script>
<script type="module">
import * as Pancake from "/app/index.js";
window.Pancakes = Pancake;
(async () => {
const $script = document.createElement("script");
$script.url = '/test/test.js'
document.getElementsByTagName("head")[0].appendChild(script); })()
</script>
<script>
</script>
<div id="mocha"></div>
<link href="/test/test.css" rel="stylesheet"></head>
<script>mocha.reporter('spec').run((failures)=>{if(failures > 0){throw 0}else{console.log('done')}});</script>
`:''
}
</html>

276
package-lock.json generated
View file

@ -170,11 +170,6 @@
"minimalistic-assert": "1.0.0"
}
},
"asn1js": {
"version": "1.2.12",
"resolved": "https://registry.npmjs.org/asn1js/-/asn1js-1.2.12.tgz",
"integrity": "sha1-h9XueXWWri0qPLAkciDcQv/D8hE="
},
"assert": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz",
@ -608,12 +603,6 @@
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz",
"integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU="
},
"bindings": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz",
"integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==",
"optional": true
},
"bluebird": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
@ -752,11 +741,6 @@
"isarray": "1.0.0"
}
},
"buffer-v6-polyfill": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.5.tgz",
"integrity": "sha1-0c2v61YAvvbCjWFElkJWvRLgFnc="
},
"buffer-xor": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz",
@ -818,17 +802,6 @@
"lazy-cache": "1.0.4"
}
},
"certpem": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/certpem/-/certpem-1.0.1.tgz",
"integrity": "sha1-+koljEBXllxGVwCCL7jYB9fy2fU=",
"requires": {
"asn1js": "1.2.12",
"buffer-v6-polyfill": "1.0.5",
"node.extend": "1.1.6",
"pkijs": "1.3.33"
}
},
"chalk": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz",
@ -1866,15 +1839,6 @@
"object-assign": "4.1.1"
}
},
"file-loader": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/file-loader/-/file-loader-1.1.6.tgz",
"integrity": "sha512-873ztuL+/hfvXbLDJ262PGO6XjERnybJu2gW1/5j8HUfxSiFJI9Hj/DhZ50ZGRUxBvuNiazb/cM2rh9pqrxP6Q==",
"requires": {
"loader-utils": "1.1.0",
"schema-utils": "0.3.0"
}
},
"filename-regex": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz",
@ -2830,39 +2794,6 @@
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
},
"greenlock": {
"version": "2.1.18",
"resolved": "https://registry.npmjs.org/greenlock/-/greenlock-2.1.18.tgz",
"integrity": "sha512-uHcIP1E3yF5ig7vLvXiyzK6MIPBsLnqQnEDzxcGV8Nwxkvh9jSimZuJ8txNI4kaIqHSkMa8KEFVWKEEht16iOA==",
"requires": {
"asn1js": "1.2.12",
"bluebird": "3.5.1",
"certpem": "1.0.1",
"homedir": "0.6.0",
"le-acme-core": "2.1.1",
"le-challenge-fs": "2.0.8",
"le-challenge-sni": "2.0.1",
"le-sni-auto": "2.1.1",
"le-store-certbot": "2.0.5",
"localhost.daplie.me-certificates": "1.3.5",
"node.extend": "1.1.6",
"pkijs": "1.3.33",
"rsa-compat": "1.2.7"
}
},
"greenlock-express": {
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/greenlock-express/-/greenlock-express-2.0.12.tgz",
"integrity": "sha512-kAYjge1cLE6ThPmFVIbaQiqlfp6VXUc7OHpOh0LDsHJIL8Ov7B8vI6npqvKejELe/UL37hn+IPXf19f5baemYA==",
"requires": {
"greenlock": "2.1.18",
"le-challenge-fs": "2.0.8",
"le-sni-auto": "2.1.1",
"le-store-certbot": "2.0.5",
"localhost.daplie.me-certificates": "1.3.5",
"redirect-https": "1.1.4"
}
},
"growl": {
"version": "1.10.3",
"resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz",
@ -2966,11 +2897,6 @@
"os-tmpdir": "1.0.2"
}
},
"homedir": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/homedir/-/homedir-0.6.0.tgz",
"integrity": "sha1-KyHbZr8Ipts4JJo+/1LX0YcGrx4="
},
"hosted-git-info": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
@ -3147,11 +3073,6 @@
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.5.2.tgz",
"integrity": "sha1-1LUFvemUaYfM8PxY2QEP+WB+P6A="
},
"is": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/is/-/is-3.2.1.tgz",
"integrity": "sha1-0Kwq1V63sL7JJqUmb2xmKqqD3KU="
},
"is-arrayish": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
@ -3407,92 +3328,6 @@
"invert-kv": "1.0.0"
}
},
"le-acme-core": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/le-acme-core/-/le-acme-core-2.1.1.tgz",
"integrity": "sha512-dRW9W6R/rLeNsh70nEj7i7Xw+JH/6zG4SrWr8mEGh160Q3djGYJ9NKgnTgkBabb1CbXTcZGhhxx/DIx269JILw==",
"requires": {
"request": "2.83.0",
"rsa-compat": "1.2.7"
}
},
"le-challenge-fs": {
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/le-challenge-fs/-/le-challenge-fs-2.0.8.tgz",
"integrity": "sha1-ttRYo38JfoffPYtf9nATc3q51aI=",
"requires": {
"mkdirp": "0.5.1"
}
},
"le-challenge-sni": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/le-challenge-sni/-/le-challenge-sni-2.0.1.tgz",
"integrity": "sha1-TiYvG/Us8dGB5kvBh3dremjI9Bc=",
"requires": {
"le-tls-sni": "0.1.4"
}
},
"le-sni-auto": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/le-sni-auto/-/le-sni-auto-2.1.1.tgz",
"integrity": "sha1-rVvrnYzI2EseEoCCxwcvhMQ8qXs=",
"requires": {
"bluebird": "3.5.1"
}
},
"le-store-certbot": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/le-store-certbot/-/le-store-certbot-2.0.5.tgz",
"integrity": "sha1-tT/PwXe98A6oiBLQ3mc6DeD+NJE=",
"requires": {
"bluebird": "3.5.1",
"mkdirp": "0.5.1",
"pyconf": "1.1.2",
"safe-replace": "1.0.2"
}
},
"le-tls-sni": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/le-tls-sni/-/le-tls-sni-0.1.4.tgz",
"integrity": "sha1-eFMJoHsOuyQZD+W6YVucx2hc4Zw=",
"requires": {
"node-forge": "0.6.49",
"rsa-compat": "1.2.7"
}
},
"letsencrypt": {
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/letsencrypt/-/letsencrypt-2.1.8.tgz",
"integrity": "sha1-mBrhQVufs3KuFfEVbV0yt9zHi90=",
"requires": {
"asn1js": "1.2.12",
"bluebird": "3.5.1",
"certpem": "1.0.1",
"homedir": "0.6.0",
"le-acme-core": "2.1.1",
"le-challenge-fs": "2.0.8",
"le-challenge-sni": "2.0.1",
"le-sni-auto": "2.1.1",
"le-store-certbot": "2.0.5",
"localhost.daplie.com-certificates": "1.2.5",
"node.extend": "1.1.6",
"pkijs": "1.3.33",
"rsa-compat": "1.2.7"
}
},
"letsencrypt-express": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/letsencrypt-express/-/letsencrypt-express-2.0.6.tgz",
"integrity": "sha1-ht/eo0NNfy61YeD5TGwY1VuEW4M=",
"requires": {
"le-challenge-fs": "2.0.8",
"le-sni-auto": "2.1.1",
"le-store-certbot": "2.0.5",
"letsencrypt": "2.1.8",
"localhost.daplie.com-certificates": "1.2.5",
"redirect-https": "1.1.4"
}
},
"levn": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
@ -3528,16 +3363,6 @@
"json5": "0.5.1"
}
},
"localhost.daplie.com-certificates": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/localhost.daplie.com-certificates/-/localhost.daplie.com-certificates-1.2.5.tgz",
"integrity": "sha1-zhkbJWwrMyt0ZNpNgceJEbDgVAc="
},
"localhost.daplie.me-certificates": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/localhost.daplie.me-certificates/-/localhost.daplie.me-certificates-1.3.5.tgz",
"integrity": "sha1-GjqH5PlX8mn2LP7mCmNpe9JVOpo="
},
"locate-path": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
@ -3811,11 +3636,6 @@
"lower-case": "1.1.4"
}
},
"node-forge": {
"version": "0.6.49",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.6.49.tgz",
"integrity": "sha1-8e6V1ddGI5OP4Z1piqWibVTS9g8="
},
"node-libs-browser": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz",
@ -3846,14 +3666,6 @@
"vm-browserify": "0.0.4"
}
},
"node.extend": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz",
"integrity": "sha1-p7iCyC1sk6SGOlUEvV3o7IYli5Y=",
"requires": {
"is": "3.2.1"
}
},
"normalize-package-data": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
@ -4155,11 +3967,6 @@
"find-up": "2.1.0"
}
},
"pkijs": {
"version": "1.3.33",
"resolved": "https://registry.npmjs.org/pkijs/-/pkijs-1.3.33.tgz",
"integrity": "sha1-ponvYhE7fDSOH/wJll0iOeW7TJI="
},
"pluralize": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz",
@ -4251,14 +4058,6 @@
"ws": "3.3.3"
}
},
"pyconf": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/pyconf/-/pyconf-1.1.2.tgz",
"integrity": "sha1-YaeqKZ/27le4xoetNVpV0ueoams=",
"requires": {
"safe-replace": "1.0.2"
}
},
"qs": {
"version": "6.5.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
@ -4354,11 +4153,6 @@
"unpipe": "1.0.0"
}
},
"raw-loader": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-0.5.1.tgz",
"integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao="
},
"read-pkg": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
@ -4403,14 +4197,6 @@
"set-immediate-shim": "1.0.1"
}
},
"redirect-https": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/redirect-https/-/redirect-https-1.1.4.tgz",
"integrity": "sha1-qqH8cqxRYjpcSegEJQUf6kO87jI=",
"requires": {
"escape-html": "1.0.3"
}
},
"regenerator-runtime": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
@ -4534,15 +4320,10 @@
"inherits": "2.0.3"
}
},
"rsa-compat": {
"version": "1.2.7",
"resolved": "https://registry.npmjs.org/rsa-compat/-/rsa-compat-1.2.7.tgz",
"integrity": "sha1-fEY23nmIhanzyQQ26jgE41sWhMg=",
"requires": {
"buffer-v6-polyfill": "1.0.5",
"node-forge": "0.6.49",
"ursa": "0.9.4"
}
"rollup": {
"version": "0.55.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.55.1.tgz",
"integrity": "sha512-lV8lBkpA1PXsshgu8zy51QrGPvWDIhZjcShEyMKk/Riobz4xwutSb0TjAtRyS6wtnn5LNVmCL7KIj4pirOhEdw=="
},
"run-async": {
"version": "2.3.0",
@ -4575,19 +4356,6 @@
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
},
"safe-replace": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/safe-replace/-/safe-replace-1.0.2.tgz",
"integrity": "sha1-sYGrQJWs32qwqPhAUXSRyoqZIro="
},
"schema-utils": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz",
"integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=",
"requires": {
"ajv": "5.5.2"
}
},
"seedrandom": {
"version": "2.4.3",
"resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz",
@ -5122,26 +4890,6 @@
}
}
},
"url-loader": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-0.6.2.tgz",
"integrity": "sha512-h3qf9TNn53BpuXTTcpC+UehiRrl0Cv45Yr/xWayApjw6G8Bg2dGke7rIwDQ39piciWCWrC+WiqLjOh3SUp9n0Q==",
"requires": {
"loader-utils": "1.1.0",
"mime": "1.4.1",
"schema-utils": "0.3.0"
}
},
"ursa": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/ursa/-/ursa-0.9.4.tgz",
"integrity": "sha1-Ciq/t9xCZ/czsPjy/H8siV1ApBM=",
"optional": true,
"requires": {
"bindings": "1.3.0",
"nan": "2.8.0"
}
},
"util": {
"version": "0.10.3",
"resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz",
@ -5329,6 +5077,14 @@
}
}
},
"wrapper-webpack-plugin": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/wrapper-webpack-plugin/-/wrapper-webpack-plugin-1.0.0.tgz",
"integrity": "sha1-VcEWR/jKmQ/28EtB2PpK8JbDG7s=",
"requires": {
"webpack-sources": "1.1.0"
}
},
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
@ -5367,14 +5123,6 @@
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
},
"yaml-loader": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/yaml-loader/-/yaml-loader-0.5.0.tgz",
"integrity": "sha512-p9QIzcFSNm4mCw/m5NdyMfN4RE4aFZJWRRb01ERVNGCym8VNbKtw3OYZXnvUIkim6U/EjqE/2yIh9F/msShH9A==",
"requires": {
"js-yaml": "3.10.0"
}
},
"yargs": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz",

View file

@ -22,10 +22,12 @@
"puppeteer": "^1.0.0",
"query-string": "^5.0.1",
"request": "^2.83.0",
"rollup": "^0.55.1",
"seedrandom": "^2.4.2",
"spdy": "^3.4.7",
"twit": "^2.2.5",
"webpack": "^3.1.0"
"webpack": "^3.1.0",
"wrapper-webpack-plugin": "^1.0.0"
},
"engines": {
"node": "^8.4.0"

View file

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View file

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

Before

Width:  |  Height:  |  Size: 465 B

After

Width:  |  Height:  |  Size: 465 B

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View file

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View file

Before

Width:  |  Height:  |  Size: 544 KiB

After

Width:  |  Height:  |  Size: 544 KiB

View file

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View file

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 289 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View file

@ -1,8 +1,7 @@
import {parse as txtToArr} from 'lib/parser/txt';
import {fetchItem} from 'lib/fetchCorpusItem';
import expandKeywords from 'lib/expandKeywords';
import {fetchItem} from '../../lib/fetchCorpusItem.js';
import expandKeywords from '../../lib/expandKeywords.js';
import usesSeededGetter from 'lib/decorator/usesSeededGetter';
import usesSeededGetter from '../../lib/decorator/usesSeededGetter.js';
const abstractGetter = class {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
export default class AdjectiveGetter extends abstractGetter {

View file

@ -1,5 +1,5 @@
import abstractGetter from 'getter/abstract/abstract';
import {randomNumber} from 'lib/random';
import abstractGetter from './abstract/abstract.js';
import {randomNumber} from '../lib/random.js';
export default class ChancesGetter extends abstractGetter {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
export default class CharacterGetter extends abstractGetter {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
export default class FandomGetter extends abstractGetter {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
export default class LayoutGetter extends abstractGetter {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from '../abstract/abstract.js';
export default class extends abstractGetter {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from '../abstract/abstract.js';
export default class FalloutGetter extends abstractGetter {

View file

@ -1,6 +1,6 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from '../abstract/abstract.js';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from 'lib/stringies';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from '../../lib/stringies.js';
export default class extends abstractGetter {

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from '../abstract/abstract.js';
export default class extends abstractGetter {

View file

@ -1,12 +1,12 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
import {capitalizeFirstLetter} from 'lib/stringies';
import {capitalizeFirstLetter} from '../lib/stringies.js';
import ChancesGetter from 'getter/chances';
import ThingGetter from 'getter/thing';
import VerbGetter from 'getter/verb';
import CharacterGetter from 'getter/character';
import FandomGetter from 'getter/fandom';
import ChancesGetter from './chances.js';
import ThingGetter from './thing.js';
import VerbGetter from './verb.js';
import CharacterGetter from './character.js';
import FandomGetter from './fandom.js';
export default class PostGetter extends abstractGetter {

View file

@ -1,7 +1,7 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
import numberToText from 'number-to-text';
import numberToTextConv from 'number-to-text/converters/en-us';
import numberToText from '/target/npm/number-to-text.js';
import numberToTextConv from '/target/npm/number-to-text/converters/en-us.js';
export default class PronounGetter extends abstractGetter {

View file

@ -1,9 +1,9 @@
import abstractGetter from 'getter/abstract/abstract';
import ChancesGetter from 'getter/chances';
import PronounGetter from 'getter/pronoun';
import AdjectiveGetter from 'getter/adjective';
import abstractGetter from './abstract/abstract.js';
import ChancesGetter from './chances.js';
import PronounGetter from './pronoun.js';
import AdjectiveGetter from './adjective.js';
import pluralize from 'pluralize';
import pluralize from '/target/npm/pluralize.js';
const defaultOptions = {
type: 'thing'

View file

@ -1,4 +1,4 @@
import abstractGetter from 'getter/abstract/abstract';
import abstractGetter from './abstract/abstract.js';
export default class VerbGetter extends abstractGetter {

View file

@ -1,11 +1,11 @@
import changeCase from './target/npm/change-case';
import queryString from './target/npm/query-string';
import changeCase from '/target/npm/change-case.js';
import queryStringParser from '/target/npm/query-string.js';
import LayoutGetter from 'getter/layout';
import PostGetter from 'getter/post';
import LayoutGetter from './getter/layout.js';
import PostGetter from './getter/post.js';
import logger from 'lib/logger';
import {makeSeed} from 'lib/random';
import logger from './lib/logger.js';
import {makeSeed} from './lib/random.js';
const posts = [];
@ -19,7 +19,7 @@ const makePost = async (seed=makeSeed(),defaults={}) => {
const postName = changeCase.pascal(`${layout}-post`);
return System.import('post/'+postName+'.js') // eslint-disable-line no-undef
return import('./post/'+postName+'.js') // eslint-disable-line no-undef
.then(PostJs =>
new PostJs.default({
seed: seed,
@ -49,7 +49,6 @@ const mochaExports = {
const boot = () => {
/*qs*/
const queryStringParser = require('query-string');
const queryString = queryStringParser.parse(location.search);
/*make app container*/

View file

@ -1,4 +1,4 @@
import {randomNumber,randomArray, makeSeed} from 'lib/random';
import {randomNumber,randomArray, makeSeed} from '../../lib/random.js';
export default function(Target) {

View file

@ -1,4 +1,4 @@
import {makeSeed} from 'lib/random';
import {makeSeed} from '../lib/random.js';
const lookup = {
thingPlural: /@thing.plural\.s/g,
@ -63,10 +63,13 @@ const getReplacement = async (name, context, seed) => {
const transformChunk = async (chunk, replacer, context, seed) => {
if(lookup[replacer].test(chunk) !== false) {
ChancesGetter = require('getter/chances').default;
ThingGetter = require('getter/thing').default;
CharacterGetter = require('getter/character').default;
AdjectiveGetter = require('getter/adjective').default;
[ChancesGetter,ThingGetter,CharacterGetter,AdjectiveGetter] = await Promise.all([
import('../getter/chances.js'),
import('../getter/thing.js'),
import('../getter/character.js'),
import('../getter/adjective.js')
]).then(stuff => stuff.map(imported => imported.default) )
const replacement = await getReplacement(replacer, context, seed);

View file

@ -1,4 +1,4 @@
import {randomArray} from './random.js';
import {randomArray} from '../lib/random.js';
const getRandomCssBase = () =>
[

View file

@ -1,4 +1,4 @@
import seedrandom from 'seedrandom';
import seedrandom from '/target/npm/seedrandom.js';
const store = {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: roboto;
@ -10,7 +10,7 @@
height: 200px!important;
top: 400px!important;
bottom: auto!important;
background: url(/src/assets/deus-ex/hud.png) center no-repeat;
background: url(/app/assets/deus-ex/hud.png) center no-repeat;
background-size: contain!important;
z-index: 999;
}
@ -47,7 +47,7 @@
z-index: 888;
right: 10%;
border-top-left-radius: 20px!important;
background: url(/src/assets/deus-ex/ui-artifact.png) no-repeat bottom right;
background: url(/app/assets/deus-ex/ui-artifact.png) no-repeat bottom right;
background-size: auto 12px, auto 12px;
position: absolute;
font-size: 1.2em;
@ -69,7 +69,7 @@
.extra span {
color: #fff;
background: url(/src/assets/deus-ex/ui-artifact.png) no-repeat bottom right,url(/src/assets/deus-ex/ui-artifact-too.png) no-repeat top left;
background: url(/app/assets/deus-ex/ui-artifact.png) no-repeat bottom right,url(/app/assets/deus-ex/ui-artifact-too.png) no-repeat top left;
background-size: auto 12px;
background-color: rgba(15,15,20,.9);
}

View file

@ -1,7 +1,7 @@
import Post from './abstract/Post.js';
import NarratorGetter from 'getter/less-common/narrator';
import BinaryChoicesGetter from 'getter/less-common/binaryChoices';
import NarratorGetter from '../getter/less-common/narrator.js';
import BinaryChoicesGetter from '../getter/less-common/binaryChoices.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Roboto Mono';
@ -7,7 +7,7 @@
}
.ac-1 {
background-image: url(/src/assets/fallout.png);
background-image: url(/app/assets/fallout.png);
}
.choices {

View file

@ -1,10 +1,10 @@
import Post from './abstract/Post.js';
import NarratorGetter from 'getter/less-common/narrator';
import FalloutGetter from 'getter/less-common/fallout';
import ChancesGetter from 'getter/chances';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from 'lib/stringies';
import {randomNumber} from 'lib/random';
import NarratorGetter from '../getter/less-common/narrator.js';
import FalloutGetter from '../getter/less-common/fallout.js';
import ChancesGetter from '../getter/chances.js';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from '../lib/stringies.js';
import {randomNumber} from '../lib/random.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Lato';
@ -32,7 +32,7 @@
border-radius: 25px;
max-width: 25%;
padding-left: 3em;
background-image: url(/src/assets/gravity-rush/halo.png);
background-image: url(/app/assets/gravity-rush/halo.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center bottom;
@ -59,7 +59,7 @@
.choices:after {
content: '\0020';
position: absolute;
background: url(/src/assets/gravity-rush/warn.png);
background: url(/app/assets/gravity-rush/warn.png);
background-size: cover;
width: 2em;
height: 2em;
@ -89,7 +89,7 @@
.extra[data-name^="waypoint"]:after {
content: '\0020';
position: absolute;
background: url(/src/assets/gravity-rush/waypoint.png);
background: url(/app/assets/gravity-rush/waypoint.png);
background-size: cover;
width: 1em;
height: 1em;
@ -143,7 +143,7 @@
.extra[data-name="good"]:after,.extra[data-name="bad"]:after {
content: '\0020';
position: absolute;
background: url(/src/assets/gravity-rush/circle.png);
background: url(/app/assets/gravity-rush/circle.png);
background-size: contain;
width: 1.2em;
height: 1.2em;
@ -156,13 +156,13 @@
.extra[data-name="bad"]:after {
right: .4em;
left: auto;
background-image: url(/src/assets/gravity-rush/square.png);
background-image: url(/app/assets/gravity-rush/square.png);
}
.extra[data-name="good"]:before,.extra[data-name="bad"]:before {
content: '\0020';
position: absolute;
background: url(/src/assets/gravity-rush/comic.png);
background: url(/app/assets/gravity-rush/comic.png);
background-repeat: no-repeat;
background-size: contain;
width: 1em;

View file

@ -1,8 +1,8 @@
import Post from './abstract/Post.js';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from 'lib/stringies';
import BinaryChoicesGetter from 'getter/less-common/binaryChoices';
import ChancesGetter from 'getter/chances';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from '../lib/stringies.js';
import BinaryChoicesGetter from '../getter/less-common/binaryChoices.js';
import ChancesGetter from '../getter/chances.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Patrick Hand';
@ -18,7 +18,7 @@
}
.ac-1 {
background: url(/src/assets/masseffect.png);
background: url(/app/assets/masseffect.png);
}
.ac-2:after {

View file

@ -1,11 +1,11 @@
import Post from './abstract/Post.js';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from 'lib/stringies';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from '../lib/stringies.js';
import ChancesGetter from 'getter/chances';
import CharacterGetter from 'getter/character';
import NarratorGetter from 'getter/less-common/narrator';
import BinaryChoicesGetter from 'getter/less-common/binaryChoices';
import ChancesGetter from '../getter/chances.js';
import CharacterGetter from '../getter/character.js';
import NarratorGetter from '../getter/less-common/narrator.js';
import BinaryChoicesGetter from '../getter/less-common/binaryChoices.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: Gentium Book Basic, serif;
@ -11,7 +11,7 @@
}
.choices {
background: url(/src/assets/oblivion/dialog-bottom.png) no-repeat bottom left, url(/src/assets/oblivion/dialog-top.png) top left!important;
background: url(/app/assets/oblivion/dialog-bottom.png) no-repeat bottom left, url(/app/assets/oblivion/dialog-top.png) top left!important;
background-size: auto, auto!important;
padding: 47px;
z-index: 99998;
@ -58,7 +58,7 @@
}
.ac-1:after {
content: url(/src/assets/oblivion/quest.png);
content: url(/app/assets/oblivion/quest.png);
top: 130px;
left: 80px;
z-index: 999999;
@ -101,7 +101,7 @@
text-align: right;
}
.extra[data-name=ui-accept]:before {
background: url(/src/assets/oblivion/a.png);
background: url(/app/assets/oblivion/a.png);
background-size: cover;
content: '\0020';
display: inline-block;
@ -118,7 +118,7 @@
text-align: right;
}
.extra[data-name=ui-reject]:before {
background: url(/src/assets/oblivion/b.png);
background: url(/app/assets/oblivion/b.png);
background-size: cover;
content: '\0020';
display: inline-block;;

View file

@ -1,6 +1,6 @@
import Post from './abstract/Post.js';
import OblivionDateGetter from 'getter/less-common/oblivion';
import OblivionDateGetter from '../getter/less-common/oblivion.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Roboto';
@ -36,7 +36,7 @@
.choice:before,
.choice:before {
background-image: url(/src/assets/qd/colorful.png);
background-image: url(/app/assets/qd/colorful.png);
content: '\0020';
background-size: 180px 90px;
vertical-align: middle;
@ -49,5 +49,5 @@
}
.post[data-variant*="(0=1)"] .choice:before {
background-image: url(/src/assets/qd/white.png);
background-image: url(/app/assets/qd/white.png);
}

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Patrick Hand';
@ -27,7 +27,7 @@
}
.post[data-variant*="(0=1)"] .ac-1 {
background-image: url(/src/assets/lis/lis-serious.png);
background-image: url(/app/assets/lis/lis-serious.png);
}
.post[data-variant*="(0=1)"] .bg {
@ -39,5 +39,5 @@
}
.post[data-variant*="(0=2)"] .ac-1 {
background-image: url(/src/assets/lis/lis.png);
background-image: url(/app/assets/lis/lis.png);
}

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Roboto';
@ -11,7 +11,7 @@
width: 60px;
height: 40px;
display: inline-block;
background: url(/src/assets/remember-me/circle.png) no-repeat top left;
background: url(/app/assets/remember-me/circle.png) no-repeat top left;
background-size: contain;
position: absolute;
left: -80px;
@ -37,7 +37,7 @@
}
.choice:last-child:before {
background-image: url(/src/assets/remember-me/cross.png);
background-image: url(/app/assets/remember-me/cross.png);
}
.choice span {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Roboto';
@ -8,7 +8,7 @@
}
.ac-1 {
background: url(/src/assets/sr.png);
background: url(/app/assets/sr.png);
}
.choices {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Roboto';
@ -18,7 +18,7 @@
.choice:before {
content: '\0020';
background: #fff url(/src/assets/shake/shake.png) no-repeat center center;
background: #fff url(/app/assets/shake/shake.png) no-repeat center center;
background-size: 60% auto;
width: 3em;
height: 3em;
@ -42,12 +42,12 @@
.post[data-variant*="(2=1)"] .choice:before {
font-size: 2em;
top: -3.5em;
background-image: url(/src/assets/shake/shake-wii.png);
background-image: url(/app/assets/shake/shake-wii.png);
background-size: 80% auto;
}
.post[data-variant*="(2=2)"] .choice:before {
background-image: url(/src/assets/shake/shake-alt.png);
background-image: url(/app/assets/shake/shake-alt.png);
background-color: transparent;
border: 2px solid #fff;
}
@ -55,7 +55,7 @@
.post[data-variant*="(2=3)"] .choice:before {
font-size: 2em;
top: -3em;
background-image: url(/src/assets/shake/shake-wii-alt.png);
background-image: url(/app/assets/shake/shake-wii-alt.png);
background-color: transparent;
background-size: 80% auto;
}

View file

@ -1,6 +1,6 @@
import Post from './abstract/Post.js';
import {decapitalizeFirstLetter} from 'lib/stringies';
import {decapitalizeFirstLetter} from '../lib/stringies.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Roboto';
@ -27,7 +27,7 @@
align-items: stretch;
flex-direction: column;
background: rgba(10,10,5,.6);
background-image: url(/src/assets/zelda-botw/thing-l.png),url(/src/assets/zelda-botw/thing-r.png);
background-image: url(/app/assets/zelda-botw/thing-l.png),url(/app/assets/zelda-botw/thing-r.png);
background-repeat: no-repeat,no-repeat;
background-position: 3.5% 50%,96.5% 50%;
background-size: 14px,14px;

View file

@ -1,10 +1,10 @@
import Post from './abstract/Post.js';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from 'lib/stringies';
import ChancesGetter from 'getter/chances';
import CharacterGetter from 'getter/character';
import NarratorGetter from 'getter/less-common/narrator';
import BinaryChoicesGetter from 'getter/less-common/binaryChoices';
import {capitalizeFirstLetter,decapitalizeFirstLetter} from '../lib/stringies.js';
import ChancesGetter from '../getter/chances.js';
import CharacterGetter from '../getter/character.js';
import NarratorGetter from '../getter/less-common/narrator.js';
import BinaryChoicesGetter from '../getter/less-common/binaryChoices.js';
class CustomPost extends Post {

View file

@ -1,4 +1,4 @@
@import url(/src/post/abstract/Post.css);
@import url(/app/post/abstract/Post.css);
.post {
font-family: 'Lato';
@ -19,7 +19,7 @@
right: 0;
background-position: center center;
background-size: cover;
background-image: url(/src/assets/zelda.png);
background-image: url(/app/assets/zelda.png);
}
.choice {

View file

@ -1,8 +1,8 @@
import Post from './abstract/Post.js';
import {capitalizeFirstLetter} from 'lib/stringies';
import BinaryChoicesGetter from 'getter/less-common/binaryChoices';
import NarratorGetter from 'getter/less-common/narrator';
import {capitalizeFirstLetter} from '../lib/stringies.js';
import BinaryChoicesGetter from '../getter/less-common/binaryChoices.js';
import NarratorGetter from '../getter/less-common/narrator.js';
class CustomPost extends Post {

View file

@ -1,10 +1,10 @@
import PostGetter from 'getter/post';
import logger from 'lib/logger';
import PostGetter from '../../getter/post.js';
import logger from '../../lib/logger.js';
import formatPropExtras from 'lib/formatPropExtras';
import escapeHTML from 'lib/escapeHTML';
import usesSeededGetter from 'lib/decorator/usesSeededGetter';
import {getRandomCss} from 'lib/getRandomCss';
import formatPropExtras from '../../lib/formatPropExtras.js';
import escapeHTML from '../../lib/escapeHTML.js';
import usesSeededGetter from '../../lib/decorator/usesSeededGetter.js';
import {getRandomCss} from '../../lib/getRandomCss.js';
class Post {
@ -102,7 +102,7 @@ class Post {
$shadow.innerHTML = template;
const $link = document.createElement('link');
$link.href = `/src/post/${this.name}.css`;
$link.href = `/app/post/${this.name}.css`;
$link.rel = 'stylesheet';
$shadow.appendChild($link);

View file

@ -1,45 +0,0 @@
const expandBracketWords = require('./txt/expandBracketWords.js');
const propsRegex = /\((.*?)\)/;
export const parse = (str) => {
console.info('DEPRECATED use async fetch()->get() like LayoutGetter');
let array = str.split('\n');
array = array
.map(chunk => chunk.trim())
.filter(chunk => chunk.charAt(0) !== '#')
.filter(chunk => chunk.length > 0)
.map(chunk => chunk === '_empty_'?'':chunk)
.map(chunk => expandBracketWords(chunk));
array = [].concat.apply([], array);
const arrayWithProps = array
.map(chunk => {
let props = {};
let propArray = propsRegex.exec(chunk);
if(propArray) {
propArray = propArray[1].split(',');
chunk = chunk.replace(propsRegex,'').trim();
}
else {
propArray = [];
}
if(propArray.length > 0) {
propArray.map(prop => {
prop = prop.split('=');
props[prop[0]] = prop[1]?prop[1]:true;
});
}
return {
value: chunk,
props: props
};
});
return arrayWithProps;
};

View file

@ -1,35 +0,0 @@
const explodeRegex = /\[(.*?)\]/;
const explodeChunkVariables = (chunk) => {
let rt = [];
if(typeof chunk === 'object') {
chunk.map(innerChunk => {
rt = rt.concat(explodeChunkVariables(innerChunk));
});
return rt;
}
else {
let exploded = explodeRegex.exec(chunk);
if(exploded){
exploded = exploded[1].split(',');
rt = [];
exploded.map(word => {
rt.push(
chunk.replace(explodeRegex,word.trim())
);
});
}
return rt;
}
};
module.exports = (chunk) => {
while(explodeChunkVariables(chunk).length > 0) {
chunk = explodeChunkVariables(chunk);
}
if(typeof chunk === 'string') {
chunk = [chunk];
}
return chunk;
};

View file

@ -1,4 +1,4 @@
describe('Initialization', function() {
window.describe('Initialization', function() {
it('window.Pancakes should exist',function(done){
if(window.Pancakes) {
done();