summaryrefslogtreecommitdiff
path: root/packages/pogen/example
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-03-27 13:55:15 +0100
committerFlorian Dold <florian@dold.me>2021-03-27 13:55:15 +0100
commitc26a41ce70a56c73571c51e1fb4aca5a5b4de225 (patch)
treeabbda3d07a381d8fc8cb75fae00288bc26c8a732 /packages/pogen/example
parent35bbe6af2db1bd69ae661610fa234541c1d2d570 (diff)
downloadwallet-core-c26a41ce70a56c73571c51e1fb4aca5a5b4de225.tar.gz
wallet-core-c26a41ce70a56c73571c51e1fb4aca5a5b4de225.tar.bz2
wallet-core-c26a41ce70a56c73571c51e1fb4aca5a5b4de225.zip
pogen WIP
Diffstat (limited to 'packages/pogen/example')
-rw-r--r--packages/pogen/example/proj1/package.json11
-rw-r--r--packages/pogen/example/proj1/src/sample.ts0
-rw-r--r--packages/pogen/example/proj1/tsconfig.json27
-rw-r--r--packages/pogen/example/test.ts3
4 files changed, 40 insertions, 1 deletions
diff --git a/packages/pogen/example/proj1/package.json b/packages/pogen/example/proj1/package.json
new file mode 100644
index 000000000..954139ecf
--- /dev/null
+++ b/packages/pogen/example/proj1/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "proj1",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "",
+ "license": "ISC"
+}
diff --git a/packages/pogen/example/proj1/src/sample.ts b/packages/pogen/example/proj1/src/sample.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/packages/pogen/example/proj1/src/sample.ts
diff --git a/packages/pogen/example/proj1/tsconfig.json b/packages/pogen/example/proj1/tsconfig.json
new file mode 100644
index 000000000..30cb65e1d
--- /dev/null
+++ b/packages/pogen/example/proj1/tsconfig.json
@@ -0,0 +1,27 @@
+{
+ "compileOnSave": true,
+ "compilerOptions": {
+ "composite": true,
+ "declaration": true,
+ "declarationMap": false,
+ "target": "ES6",
+ "module": "ESNext",
+ "moduleResolution": "node",
+ "sourceMap": true,
+ "lib": ["es6"],
+ "types": ["node"],
+ "noImplicitReturns": true,
+ "noFallthroughCasesInSwitch": true,
+ "strict": true,
+ "strictPropertyInitialization": false,
+ "outDir": "lib",
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "incremental": true,
+ "esModuleInterop": true,
+ "importHelpers": true,
+ "rootDir": "./src",
+ "typeRoots": ["./node_modules/@types"]
+ },
+ "include": ["src/**/*"]
+}
diff --git a/packages/pogen/example/test.ts b/packages/pogen/example/test.ts
index d7d5d88d6..021f3f328 100644
--- a/packages/pogen/example/test.ts
+++ b/packages/pogen/example/test.ts
@@ -19,9 +19,10 @@ It has multiple lines, and a trailing empty line.
*/
console.log(/*lol*/i18n.foo`Hello7,${123} World${42}`);
-
+// @ts-expect-error
i18n.plural(i18n`one ${"foo"}`, i18`many ${"bar"}`);
+// @ts-expect-error
i18n.plural(i18n.foo`one bla ${"foo"}`, i18.foo`many bla ${"bar"}`);
let x = 42;