Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cleve-fauna committed Oct 6, 2022
0 parents commit bfb9cf8
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Logs
yarn-debug.log*
yarn-error.log*

# Dependency directories
node_modules/

# Serverless directories
.serverless/

# Emacs
*~
*#
Empty file added .gitmodules
Empty file.
14 changes: 14 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pretty-quick --staged

git submodule sync
git submodule update --init --recursive --remote

for SUB_MODULE in `cat .gitmodules | grep path | cut -d= -f2`
do
echo "updating git submodule $SUB_MODULE"
git add $SUB_MODULE
done;

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.prettierignore
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Typescript Repo Template

Template for making typescript repos.
5 changes: 5 additions & 0 deletions __tests__/functional/example.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe ("functional tests", () => {
it ("put funcitnoal tests here", () => {

});
});
5 changes: 5 additions & 0 deletions __tests__/integration/example.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe ("integration tests", () => {
it ("put integration tests here", () => {

});
});
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testPathIgnorePatterns: ["node_modules", "build"],
testMatch: ["**/__tests__/**/*.test.[jt]s?(x)"],
};
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "your repo name",
"version": "1.0.0",
"description": "your description",
"main": "index.js",
"repository": "your repo url",
"author": "Fauna",
"private": true,
"dependencies": {
},
"devDependencies": {
"@tsconfig/node16-strictest": "^1.0.3",
"@types/jest": "^28.1.6",
"@types/node": "^18.6.3",
"husky": "^7.0.0",
"jest": "^28.1.3",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
},
"scripts": {
"prepare": "husky install",
"build": "tsc --project ./",
"sync-submodules": "git submodule sync; git submodule update --init --recursive --remote",
"fauna-local": "docker start faunadb || docker run --rm -d --name faunadb -p 8443:8443 -p 8084:8084 fauna/faunadb:latest",
"test": "jest"
}
}
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@tsconfig/node16-strictest/tsconfig.json"
}

0 comments on commit bfb9cf8

Please sign in to comment.