Skip to content

Commit 34d0198

Browse files
committed
Move everything related to Formatting to format/
1 parent 699e0e8 commit 34d0198

File tree

17 files changed

+10
-9
lines changed

17 files changed

+10
-9
lines changed
File renamed without changes.

lib/tools.ts renamed to format/lib/tools.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {NodeType} from "../format/ast";
2-
import {Bundle} from "../format/bundle";
3-
import {ErrorKind} from "../format/error";
4-
import {Resource} from "../format/resource";
5-
import {Value} from "../format/value";
1+
import {NodeType} from "../resolver/ast";
2+
import {Bundle} from "../resolver/bundle";
3+
import {ErrorKind} from "../resolver/error";
4+
import {Resource} from "../resolver/resource";
5+
import {Value} from "../resolver/value";
66

77
type Variables = Map<string, Value>;
88

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

format/resource.ts renamed to format/resolver/resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Resource as ResourceParser} from "../syntax/parser/grammar";
1+
import {Resource as ResourceParser} from "../../syntax/parser/grammar";
22
import {Entry} from "./ast";
33

44
export class Resource {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

bin/format.ts renamed to format/tools/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import parseArgs from "minimist";
2-
import {Resource} from "../format/resource";
32
import {fromFile, fromStdin} from "../lib/input";
43
import {formatMessage, formatResource} from "../lib/tools";
4+
import {Resource} from "../resolver/resource";
55

66
const argv = parseArgs(process.argv.slice(2), {
77
boolean: ["help"],
File renamed without changes.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"private": true,
66
"scripts": {
77
"bench": "node -r esm --harmony-async-iteration ./syntax/benchmarks/bench.js ./syntax/benchmarks/gecko_strings.ftl",
8+
"build:impls": "tsc",
89
"build:guide": "gitbook build guide build/guide",
9-
"build": "npm run --silent build:guide",
10+
"build": "npm run --silent build:impls && npm run --silent build:guide",
1011
"ci": "npm run --silent lint && npm test && npm run --silent test:ebnf",
1112
"clean": "rm -rf build",
1213
"deploy": "gh-pages -d build",

syntax/parser/grammar.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Resource} from "../../format/ast";
1+
import {Resource} from "../../format/resolver/ast";
22
interface Result<T, E> {
33
fold(s: (value: T) => T, f: (err: E) => never): T;
44
}

0 commit comments

Comments
 (0)