tempile-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ast/base/Node.d.ts +9 -0
- package/dist/ast/base/Node.js +9 -0
- package/dist/ast/base/Pos.d.ts +10 -0
- package/dist/ast/base/Pos.js +1 -0
- package/dist/ast/base/Root.d.ts +13 -0
- package/dist/ast/base/Root.js +105 -0
- package/dist/ast/base/node-types.d.ts +18 -0
- package/dist/ast/base/node-types.js +19 -0
- package/dist/ast/base/parse5-type-guards.d.ts +4 -0
- package/dist/ast/base/parse5-type-guards.js +9 -0
- package/dist/ast/base/parse5-types.d.ts +5 -0
- package/dist/ast/base/parse5-types.js +1 -0
- package/dist/ast/base/parser-types.d.ts +3 -0
- package/dist/ast/base/parser-types.js +1 -0
- package/dist/ast/control/ElseIfNode.d.ts +13 -0
- package/dist/ast/control/ElseIfNode.js +41 -0
- package/dist/ast/control/ElseNode.d.ts +11 -0
- package/dist/ast/control/ElseNode.js +34 -0
- package/dist/ast/control/ForNode.d.ts +13 -0
- package/dist/ast/control/ForNode.js +37 -0
- package/dist/ast/control/IfNode.d.ts +17 -0
- package/dist/ast/control/IfNode.js +64 -0
- package/dist/ast/features/AttrExprNode.d.ts +1 -0
- package/dist/ast/features/AttrExprNode.js +13 -0
- package/dist/ast/features/ContentNode.d.ts +12 -0
- package/dist/ast/features/ContentNode.js +44 -0
- package/dist/ast/features/ImportNode.d.ts +12 -0
- package/dist/ast/features/ImportNode.js +51 -0
- package/dist/ast/features/IncludeNode.d.ts +14 -0
- package/dist/ast/features/IncludeNode.js +42 -0
- package/dist/ast/features/LogicNode.d.ts +11 -0
- package/dist/ast/features/LogicNode.js +48 -0
- package/dist/ast/features/OutNode.d.ts +11 -0
- package/dist/ast/features/OutNode.js +45 -0
- package/dist/ast/features/SlotNode.d.ts +12 -0
- package/dist/ast/features/SlotNode.js +39 -0
- package/dist/ast/features/TempileNode.d.ts +14 -0
- package/dist/ast/features/TempileNode.js +53 -0
- package/dist/ast/html/Attribute.d.ts +15 -0
- package/dist/ast/html/Attribute.js +1 -0
- package/dist/ast/html/CommentNode.d.ts +10 -0
- package/dist/ast/html/CommentNode.js +23 -0
- package/dist/ast/html/DoctypeNode.d.ts +8 -0
- package/dist/ast/html/DoctypeNode.js +13 -0
- package/dist/ast/html/ElementNode.d.ts +14 -0
- package/dist/ast/html/ElementNode.js +29 -0
- package/dist/ast/html/TextNode.d.ts +10 -0
- package/dist/ast/html/TextNode.js +23 -0
- package/dist/ast/nodes.d.ts +15 -0
- package/dist/ast/nodes.js +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/parser/parser.d.ts +6 -0
- package/dist/parser/parser.js +71 -0
- package/dist/utils/utils.d.ts +7 -0
- package/dist/utils/utils.js +74 -0
- package/package.json +37 -0
- package/tsconfig.json +15 -0
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tempile-core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "tempile-core",
|
|
5
|
+
"private": false,
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"type": "module",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"test:watch": "vitest"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"author": "Gökhan Altun",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/gokhanaltun/tempile-core.git"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "^25.0.3",
|
|
31
|
+
"typescript": "^5.9.3",
|
|
32
|
+
"vitest": "^4.0.16"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"parse5": "^8.0.0"
|
|
36
|
+
}
|
|
37
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"rootDir": "src",
|
|
4
|
+
"outDir": "dist",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"strict": true,
|
|
7
|
+
"module": "NodeNext",
|
|
8
|
+
"target": "ES2022",
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"skipLibCheck": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src/**/*"]
|
|
15
|
+
}
|