mirror of
https://github.com/wekan/wekan.git
synced 2026-03-09 15:12:34 +01:00
Include to Wekan packages directory contents, so that meteor command would build all directly.
This also simplifies build scripts. Thanks to xet7 !
This commit is contained in:
parent
6117097a93
commit
73e265d8fd
354 changed files with 36977 additions and 106 deletions
5327
packages/markdown/marked/test/specs/commonmark/commonmark.0.29.json
Normal file
5327
packages/markdown/marked/test/specs/commonmark/commonmark.0.29.json
Normal file
File diff suppressed because it is too large
Load diff
24
packages/markdown/marked/test/specs/commonmark/getSpecs.js
Normal file
24
packages/markdown/marked/test/specs/commonmark/getSpecs.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
const fetch = require('node-fetch');
|
||||
const marked = require('../../../');
|
||||
const htmlDiffer = require('../../helpers/html-differ.js');
|
||||
const fs = require('fs');
|
||||
|
||||
fetch('https://raw.githubusercontent.com/commonmark/commonmark.js/master/package.json')
|
||||
.then(res => res.json())
|
||||
.then(pkg => pkg.version.replace(/^(\d+\.\d+).*$/, '$1'))
|
||||
.then(version =>
|
||||
fetch(`https://spec.commonmark.org/${version}/spec.json`)
|
||||
.then(res => res.json())
|
||||
.then(specs => {
|
||||
specs.forEach(spec => {
|
||||
const html = marked(spec.markdown, {headerIds: false});
|
||||
if (!htmlDiffer.isEqual(html, spec.html)) {
|
||||
spec.shouldFail = true;
|
||||
}
|
||||
});
|
||||
fs.writeFileSync(`commonmark.${version}.json`, JSON.stringify(specs, null, 2) + '\n');
|
||||
})
|
||||
)
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue