initial
This commit is contained in:
163
node_modules/pug-linker/test/errors/child-with-tags.input.json
generated
vendored
Normal file
163
node_modules/pug-linker/test/errors/child-with-tags.input.json
generated
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
{
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Extends",
|
||||
"file": {
|
||||
"type": "FileReference",
|
||||
"path": "../fixtures/layout",
|
||||
"line": 1,
|
||||
"filename": "child-with-tags.pug",
|
||||
"fullPath": "../fixtures/layout.pug",
|
||||
"str": "doctype\n\nhtml\n head\n block head\n <title>Hello world!</title>\n body\n block body\n",
|
||||
"ast": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Doctype",
|
||||
"val": "",
|
||||
"line": 1,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "html",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "head",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Text",
|
||||
"val": "<title>Hello world!</title>",
|
||||
"filename": "../fixtures/layout.pug",
|
||||
"line": 6,
|
||||
"isHtml": true
|
||||
}
|
||||
],
|
||||
"line": 5,
|
||||
"filename": "../fixtures/layout.pug",
|
||||
"name": "head",
|
||||
"mode": "replace"
|
||||
}
|
||||
],
|
||||
"line": 4,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 4,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "body",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [],
|
||||
"line": 8,
|
||||
"filename": "../fixtures/layout.pug",
|
||||
"name": "body",
|
||||
"mode": "replace"
|
||||
}
|
||||
],
|
||||
"line": 7,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 7,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
}
|
||||
],
|
||||
"line": 3,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 3,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
}
|
||||
],
|
||||
"line": 0,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
}
|
||||
},
|
||||
"line": 1,
|
||||
"filename": "child-with-tags.pug"
|
||||
},
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "p",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Text",
|
||||
"val": "Hello world!",
|
||||
"line": 4,
|
||||
"filename": "child-with-tags.pug"
|
||||
}
|
||||
],
|
||||
"line": 4,
|
||||
"filename": "child-with-tags.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 4,
|
||||
"filename": "child-with-tags.pug"
|
||||
}
|
||||
],
|
||||
"line": 3,
|
||||
"filename": "child-with-tags.pug",
|
||||
"name": "body",
|
||||
"mode": "replace"
|
||||
},
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "p",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Text",
|
||||
"val": "BAD!!!",
|
||||
"line": 6,
|
||||
"filename": "child-with-tags.pug"
|
||||
}
|
||||
],
|
||||
"line": 6,
|
||||
"filename": "child-with-tags.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 6,
|
||||
"filename": "child-with-tags.pug"
|
||||
}
|
||||
],
|
||||
"line": 0,
|
||||
"filename": "child-with-tags.pug"
|
||||
}
|
||||
140
node_modules/pug-linker/test/errors/extends-not-first.input.json
generated
vendored
Normal file
140
node_modules/pug-linker/test/errors/extends-not-first.input.json
generated
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "p",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Text",
|
||||
"val": "Hey",
|
||||
"line": 2,
|
||||
"filename": "extends-not-first.pug"
|
||||
}
|
||||
],
|
||||
"line": 2,
|
||||
"filename": "extends-not-first.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 2,
|
||||
"filename": "extends-not-first.pug"
|
||||
}
|
||||
],
|
||||
"line": 1,
|
||||
"filename": "extends-not-first.pug",
|
||||
"name": "body",
|
||||
"mode": "replace"
|
||||
},
|
||||
{
|
||||
"type": "Extends",
|
||||
"file": {
|
||||
"type": "FileReference",
|
||||
"path": "../fixtures/layout",
|
||||
"line": 4,
|
||||
"filename": "extends-not-first.pug",
|
||||
"fullPath": "../fixtures/layout.pug",
|
||||
"str": "doctype\n\nhtml\n head\n block head\n <title>Hello world!</title>\n body\n block body\n",
|
||||
"ast": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Doctype",
|
||||
"val": "",
|
||||
"line": 1,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "html",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "head",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Text",
|
||||
"val": "<title>Hello world!</title>",
|
||||
"filename": "../fixtures/layout.pug",
|
||||
"line": 6,
|
||||
"isHtml": true
|
||||
}
|
||||
],
|
||||
"line": 5,
|
||||
"filename": "../fixtures/layout.pug",
|
||||
"name": "head",
|
||||
"mode": "replace"
|
||||
}
|
||||
],
|
||||
"line": 4,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 4,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "body",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [],
|
||||
"line": 8,
|
||||
"filename": "../fixtures/layout.pug",
|
||||
"name": "body",
|
||||
"mode": "replace"
|
||||
}
|
||||
],
|
||||
"line": 7,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 7,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
}
|
||||
],
|
||||
"line": 3,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 3,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
}
|
||||
],
|
||||
"line": 0,
|
||||
"filename": "../fixtures/layout.pug"
|
||||
}
|
||||
},
|
||||
"line": 4,
|
||||
"filename": "extends-not-first.pug"
|
||||
}
|
||||
],
|
||||
"line": 0,
|
||||
"filename": "extends-not-first.pug"
|
||||
}
|
||||
58
node_modules/pug-linker/test/errors/unexpected-block.input.json
generated
vendored
Normal file
58
node_modules/pug-linker/test/errors/unexpected-block.input.json
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Extends",
|
||||
"file": {
|
||||
"type": "FileReference",
|
||||
"path": "../fixtures/empty.pug",
|
||||
"line": 1,
|
||||
"filename": "unexpected-block.pug",
|
||||
"fullPath": "../fixtures/empty.pug",
|
||||
"str": "",
|
||||
"ast": {
|
||||
"type": "Block",
|
||||
"nodes": [],
|
||||
"line": 0,
|
||||
"filename": "../fixtures/empty.pug"
|
||||
}
|
||||
},
|
||||
"line": 1,
|
||||
"filename": "unexpected-block.pug"
|
||||
},
|
||||
{
|
||||
"type": "NamedBlock",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Tag",
|
||||
"name": "div",
|
||||
"selfClosing": false,
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "Text",
|
||||
"val": "Hello World",
|
||||
"line": 4,
|
||||
"filename": "unexpected-block.pug"
|
||||
}
|
||||
],
|
||||
"line": 4,
|
||||
"filename": "unexpected-block.pug"
|
||||
},
|
||||
"attrs": [],
|
||||
"attributeBlocks": [],
|
||||
"isInline": false,
|
||||
"line": 4,
|
||||
"filename": "unexpected-block.pug"
|
||||
}
|
||||
],
|
||||
"line": 3,
|
||||
"filename": "unexpected-block.pug",
|
||||
"name": "foo",
|
||||
"mode": "replace"
|
||||
}
|
||||
],
|
||||
"line": 0,
|
||||
"filename": "unexpected-block.pug"
|
||||
}
|
||||
Reference in New Issue
Block a user