Skip to content

Commit 8ccf1a2

Browse files
authored
Revision 0.9.2 (#6)
- Task automation update
1 parent 4c40925 commit 8ccf1a2

File tree

6 files changed

+75
-325
lines changed

6 files changed

+75
-325
lines changed

deno.lock

+49-293
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks.ts

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Task } from 'https://raw.githubusercontent.com/sinclairzx81/tasksmith/main/src/index.ts'
1+
import { Task } from 'https://raw.githubusercontent.com/sinclairzx81/tasksmith/0.8.0/src/index.ts'
22

33
// ------------------------------------------------------------------
44
// Clean
@@ -27,24 +27,23 @@ Task.run('test', async () => {
2727
// ------------------------------------------------------------------
2828
// Build
2929
// ------------------------------------------------------------------
30-
Task.run('build', async () => {
31-
await Task.build('src', {
32-
target: 'target',
33-
include: ['license', 'readme.md'],
34-
packageJson: {
35-
name: '@sinclair/parsebox',
36-
description: 'Parser Combinators in the TypeScript Type System',
37-
version: '0.9.1',
38-
keywords: ['typescript', 'parser', 'combinator'],
39-
license: 'MIT',
40-
author: 'sinclairzx81',
41-
repository: {
42-
type: 'git',
43-
url: 'https://github.com/sinclairzx81/parsebox'
44-
}
45-
},
46-
})
47-
})
30+
Task.run('build', () => Task.build('src', {
31+
compiler: 'latest',
32+
outdir: 'target',
33+
additional: ['license', 'readme.md'],
34+
packageJson: {
35+
name: '@sinclair/parsebox',
36+
description: 'Parser Combinators in the TypeScript Type System',
37+
version: '0.9.2',
38+
keywords: ['typescript', 'parser', 'combinator'],
39+
license: 'MIT',
40+
author: 'sinclairzx81',
41+
repository: {
42+
type: 'git',
43+
url: 'https://github.com/sinclairzx81/parsebox'
44+
}
45+
},
46+
}))
4847
// ------------------------------------------------------------------
4948
// Publish
5049
// ------------------------------------------------------------------

test/__tests__/runtime/assert.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { assertEquals } from 'jsr:@std/assert'
2+
3+
export function Assert(left: unknown, right: unknown) {
4+
assertEquals(left, right)
5+
}

test/__tests__/runtime/guard.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
// deno-lint-ignore-file
22

33
import { Runtime } from '@sinclair/parsebox'
4-
import { deepStrictEqual } from 'node:assert'
5-
6-
function Assert(left: unknown, right: unknown) {
7-
deepStrictEqual(left, right)
8-
}
4+
import { Assert } from './assert.ts'
95

106
Deno.test('IsArray', () => {
117
// @ts-ignore

test/__tests__/runtime/parse.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { Runtime } from '@sinclair/parsebox'
2-
import { deepStrictEqual } from 'node:assert'
2+
import { Assert } from './assert.ts'
33

4-
function Assert(left: unknown, right: unknown) {
5-
deepStrictEqual(left, right)
6-
}
74
// ----------------------------------------------------------------
85
// Array
96
// ----------------------------------------------------------------

test/__tests__/runtime/token.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { Runtime } from '@sinclair/parsebox'
2-
import { deepStrictEqual } from 'node:assert'
2+
import { Assert } from './assert.ts'
33

4-
function Assert(left: unknown, right: unknown) {
5-
deepStrictEqual(left, right)
6-
}
74
Deno.test('Empty', () => {
85
Assert(Runtime.Token.Const('', ''), ['', ''])
96
Assert(Runtime.Token.Const('', 'A'), ['', 'A'])

0 commit comments

Comments
 (0)