mirror of https://github.com/sveltejs/svelte
parent
df1870df8b
commit
c98e1f49d3
@ -1,23 +1,28 @@
|
|||||||
{
|
{
|
||||||
"html": {
|
"hash": 825536165,
|
||||||
"start": 0,
|
"html": {
|
||||||
"end": 15,
|
"start": 0,
|
||||||
"type": "Fragment",
|
"end": 15,
|
||||||
"children": [{
|
"type": "Fragment",
|
||||||
"attributes": [{
|
"children": [
|
||||||
"end": 14,
|
{
|
||||||
"name": "html",
|
"start": 0,
|
||||||
"start": 10,
|
"end": 15,
|
||||||
"type": "Attribute",
|
"type": "Element",
|
||||||
"value": true
|
"name": "!doctype",
|
||||||
}],
|
"attributes": [
|
||||||
"children": [],
|
{
|
||||||
"end": 15,
|
"start": 10,
|
||||||
"name": "!doctype",
|
"end": 14,
|
||||||
"start": 0,
|
"type": "Attribute",
|
||||||
"type": "Element"
|
"name": "html",
|
||||||
}]
|
"value": true
|
||||||
},
|
}
|
||||||
"css": null,
|
],
|
||||||
"js": null
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"css": null,
|
||||||
|
"js": null
|
||||||
}
|
}
|
@ -1,14 +1,17 @@
|
|||||||
{
|
{
|
||||||
"html": {
|
"hash": 3659433152,
|
||||||
"start": 0,
|
"html": {
|
||||||
"end": 9,
|
"start": 0,
|
||||||
"type": "Fragment",
|
"end": 9,
|
||||||
"children": [
|
"type": "Fragment",
|
||||||
{
|
"children": [
|
||||||
"start": 0,
|
{
|
||||||
"end": 9,
|
"start": 0,
|
||||||
"type": "YieldTag"
|
"end": 9,
|
||||||
}
|
"type": "YieldTag"
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
|
},
|
||||||
|
"css": null,
|
||||||
|
"js": null
|
||||||
}
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
// this file will replace all the expected.js and expected-bundle.js files with
|
||||||
|
// their _actual equivalents. Only use it when you're sure that you haven't
|
||||||
|
// broken anything!
|
||||||
|
const fs = require("fs");
|
||||||
|
const glob = require("glob");
|
||||||
|
|
||||||
|
glob.sync("samples/*/_actual.json", { cwd: __dirname }).forEach(file => {
|
||||||
|
const actual = fs.readFileSync(`${__dirname}/${file}`, "utf-8");
|
||||||
|
fs.writeFileSync(
|
||||||
|
`${__dirname}/${file.replace("_actual", "output")}`,
|
||||||
|
actual
|
||||||
|
);
|
||||||
|
});
|
Loading…
Reference in new issue