diff --git a/.nycrc.json b/.nycrc.json deleted file mode 100644 index 186f89c6..00000000 --- a/.nycrc.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "all": true, - "lines": 100, - "branches": 100, - "functions": 100, - "watermarks": { - "lines": [ - 100, - 100 - ], - "functions": [ - 100, - 100 - ], - "branches": [ - 100, - 100 - ], - "statements": [ - 100, - 100 - ] - }, - "extension": [ - ".ts" - ], - "reporter": [ - "text-summary", - "html" - ], - "include": [ - "**/main/**" - ], - "exclude": [] -} \ No newline at end of file diff --git a/.odzrc.json b/.odzrc.json new file mode 100644 index 00000000..0eafd88a --- /dev/null +++ b/.odzrc.json @@ -0,0 +1,9 @@ +{ + "reporters": [ + "text", + "html" + ], + "sources": [ + "src/main/**/*.ts" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 74d5bf99..fe5ebd72 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ First-class TypeScript and JavaScript Twig compiler This projects needs at least **node.js 16.0.0** to run. -It is also strongly recommended to have [ts-node](https://www.npmjs.com/package/ts-node) and [nyc](https://www.npmjs.com/package/nyc) installed globally to ease the writing of tests and the tracking of the code coverage. +It is also strongly recommended to have [ts-node](https://www.npmjs.com/package/ts-node) and [One Double Zero](https://www.npmjs.com/package/one-double-zero) installed globally to ease the writing of tests and the tracking of the code coverage. ## Usage @@ -48,7 +48,7 @@ ts-node src/test/tests/integration/comparison/to-array.ts It is even possible - and recommended - to track the coverage while writing tests: ```shell -nyc ts-node src/test/tests/integration/comparison/to-array.ts +odz ts-node src/test/tests/integration/comparison/to-array.ts ``` Of course, it is also perfectly possible to pipe the result of the test to your favorite tap formatter: diff --git a/src/main/lib/node/use.ts b/src/main/lib/node/use.ts deleted file mode 100644 index 6cac8d59..00000000 --- a/src/main/lib/node/use.ts +++ /dev/null @@ -1,26 +0,0 @@ -import {createBaseNode, type TwingBaseNode} from "../node"; -import type {TwingConstantNode} from "./expression/constant"; - -export interface TwingUseNode extends TwingBaseNode<"use", {}, { - template: TwingConstantNode; - targets: TwingBaseNode>>; -}> { - -} - -export const createUseNode = ( - template: TwingUseNode["children"]["template"], - targets: TwingUseNode["children"]["targets"], - line: number, - column: number, - tag: string -) => { - return createBaseNode("use", {}, { - template, - targets - }, line, column, tag); -}; diff --git a/src/test/tsconfig.json b/src/test/tsconfig.json index 0a9b9acd..ce4929ff 100644 --- a/src/test/tsconfig.json +++ b/src/test/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "inlineSourceMap": true + "inlineSourceMap": true, + "inlineSources": true }, "include": [ "index.ts"