npm i
npm run build -- index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir webp && ls -p | grep -v / | sed -e 'p;s/\.[pj][pn]g$//' | xargs -n2 bash -c 'cwebp -q 90 -z 8 -m 6 $0 -o webp/$1.webp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('./test.xml'); | |
fest.app(); |
Jinja2 | Nunjucks | Support | |
---|---|---|---|
Filters | 50 | 40 | 80% |
Fully compatible | 50 | 27 | 54% |
Jinja2 | Nunjucks | Compatible | Comment |
---|---|---|---|
abs | abs | ✔️ | abs /Math.abs alias |
attr | |||
batch | batch | ✔️ | same implementation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ucs2decode = require('transliteration/lib/node/utils').ucs2decode; | |
// getAlphabet is just function that returns array of required chars for transliteration | |
const transliterationRanges = getAlphabet('а', 'я') | |
// A little bit of magic from `transliteration` sources, that used | |
// for searching symbols by charmap.json | |
.map((char) => ucs2decode(char) >> 8) | |
// Leave only unique values | |
.filter((char, i, chars) => ( | |
chars.includes(char, Math.min(i + 1, chars.length)) === false |
Convert a bunch of dirs to Webpack entries
foo
|- bar
| `- index.js
|- qux
`- baz
`- index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch", | |
"case", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Depends on Underscore `extend`. | |
*/ | |
/** | |
* @namespace app | |
*/ | |
window.app = app || {}; | |
/** |