-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
578 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "@inlang/sdk-js", | ||
"type": "module", | ||
"scripts": { | ||
"build": "tsc --build ./tsconfig.build.json", | ||
"dev": "npm run tsc:watch", | ||
"---- TEST ----------------------------------------------------------": "", | ||
"test": "tsc && vitest", | ||
"tsc": "tsc --noEmit", | ||
"tsc:watch": "tsc --noEmit --watch", | ||
"vitest": "vitest run --passWithNoTests --coverage", | ||
"vitest:watch": "vitest watch --passWithNoTests --coverage", | ||
"---- LINT ----------------------------------------------------------": "", | ||
"lint": "cd ../.. && npm run lint:base ./source-code/sdk-js", | ||
"lint:fix": "cd ../.. && npm run lint:fix:base ./source-code/sdk-js", | ||
"format": "cd ../.. && npm run format:base ./source-code/sdk-js", | ||
"format:fix": "cd ../.. && npm run format:fix:base ./source-code/sdk-js", | ||
"---- OTHER ---------------------------------------------------------": "", | ||
"clean": "rm -r -f ./dist ./.turbo ./coverage ./node_modules" | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { test } from "vitest" | ||
|
||
test.skip("dummy") |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Exclude test and source map files when building for production | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": ["**/*.test.ts", "**/*.test-d.ts"], | ||
"compilerOptions": { | ||
"sourceMap": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "configs/typescript/tsconfig.base.json", | ||
"include": ["src/**/*.ts"], | ||
"compilerOptions": { | ||
// DOM because of fetch. TODO: extract fetch from this package and | ||
// let fetch be provided by the environment. | ||
"lib": ["ESNext", "DOM"], | ||
"types": [], | ||
"outDir": "./dist", | ||
"rootDir": "./src" | ||
} | ||
} |