First attempt at Python port, expand tests.

This commit is contained in:
Joshua Bemenderfer
2023-02-07 16:38:23 -05:00
parent ac821e448d
commit e72ff2eccf
11 changed files with 365 additions and 82 deletions

View File

@@ -1,6 +1,6 @@
import fs from 'node:fs/promises'
import { useDocument } from '@terrace/core'
import { createReadlineReader } from '@terrace/core/readers/node-readline'
import { createFileReader } from '@terrace/core/readers/node-readline'
function useHelpers({ next, level, head, tail }) {
@@ -18,7 +18,7 @@ function useHelpers({ next, level, head, tail }) {
}
async function buildPackage() {
const { next, level, head, tail, match } = useDocument(createReadlineReader('./repo/package.tce'))
const { next, level, head, tail, match } = useDocument(createFileReader('./repo/package.tce'))
const { kvObject } = useHelpers({ next, level, head, tail })
const pkg = {}
@@ -38,7 +38,7 @@ async function buildPackage() {
}
async function buildTurbo() {
const { next, level, head, tail, match } = useDocument(createReadlineReader('./repo/turbo.tce'))
const { next, level, head, tail, match } = useDocument(createFileReader('./repo/turbo.tce'))
const { kvObject } = useHelpers({ next, level, head, tail })
const turbo = {}

View File

@@ -8,7 +8,7 @@ scripts
build:repo node ./repo/build.js
build turbo run build --cache-dir=.turbo
dev turbo run dev --no-cache --force
test turbo run test --no-cache --force
test turbo run test --filter=@terrace/test --no-cache --force
devDependencies
@terrace/core workspace:*