Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: library structulibrary structural changeral change #505

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2728f8a
feat: pnpm (#1)
productdevbook Mar 4, 2023
837f0e7
feat: build structure (#2)
productdevbook Mar 4, 2023
8074f0d
feat: eslint (#3)
productdevbook Mar 4, 2023
dcfa103
chore: all dependencies update
productdevbook Mar 4, 2023
b2a36b8
chore: delete node_modules playground
productdevbook Mar 4, 2023
daf2c12
feat: vitest
productdevbook Mar 4, 2023
88084d6
Merge remote-tracking branch 'upstream/master' into v2
productdevbook Mar 25, 2023
a453a3e
fix: merge (#4)
productdevbook Mar 25, 2023
7075f33
Merge branch 'v2' into vitest
productdevbook Mar 25, 2023
ea80242
fix: general
productdevbook Mar 25, 2023
aec1ac6
fix: test
productdevbook Mar 25, 2023
6870ef7
more copy test js to ts
productdevbook Mar 26, 2023
f40abfc
more copy test js to ts
productdevbook Mar 26, 2023
9229468
more copy test js to ts
productdevbook Mar 26, 2023
c933128
more copy test js to ts
productdevbook Mar 26, 2023
f4ae54b
more copy test js to ts
productdevbook Mar 26, 2023
164f39b
more copy test js to ts
productdevbook Mar 27, 2023
6c68ec9
more copy test js to ts
productdevbook Mar 27, 2023
b09f70b
more copy test js to ts
productdevbook Mar 27, 2023
0c2a334
more copy test js to ts
productdevbook Mar 27, 2023
4f97c27
more copy test js to ts
productdevbook Mar 27, 2023
33d6c7f
Update override.test.ts
productdevbook Mar 27, 2023
06dfe2c
vitest to test folder name
productdevbook Mar 27, 2023
702dbe5
fix: env
productdevbook Mar 27, 2023
38ad648
Delete userContext.test.ts
productdevbook Mar 27, 2023
70ef1b3
Update processState.ts
productdevbook Mar 27, 2023
ccfd995
feat: vitest and ts (#5)
productdevbook Mar 27, 2023
dcf7187
Merge branch 'master' into vitest
productdevbook May 5, 2023
824a79f
fix: general
productdevbook May 5, 2023
d8720b5
Merge branch 'v2' into vitest
productdevbook May 5, 2023
2df628b
Merge pull request #6 from productdevbook/vitest
productdevbook May 5, 2023
8e213d9
fix: js to ts typo
productdevbook May 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "@antfu",
"rules": {
"no-console": "off",
"no-tabs": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/ban-ts-comment": "off"
},
"ignorePatterns": [
"node_modules",
"dist",
".github",
"**.js",
"docs",
"test"
]
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ coverage
apiPassword
releasePassword
.tmp
npm-debug.log
package-lock.json
lib
dist
**/node_modules
.env
.idea
.env
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-workspace-root-check=true
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You will need to setup the `supertokens-core` in order to to run the `supertoken
### Prerequisites

- OS: Linux or macOS
- Nodejs & npm
- Nodejs & pnpm[installation guide](https://pnpm.js.org/en/installation)
- IDE: [VSCode](https://code.visualstudio.com/download)(recommended) or equivalent IDE

### Project Setup
Expand All @@ -30,15 +30,15 @@ You will need to setup the `supertokens-core` in order to to run the `supertoken
`supertokens-node` and `supertokens-root` should exist side by side within the same parent directory
3. `cd supertokens-node`
4. Install the project dependencies
`npm i -d`
`pnpm i`
5. Add git pre-commit hooks
`npm run set-up-hooks`
`pnpm run set-up-hooks`

## Modifying Code

1. Open the `supertokens-node` project in your IDE and you can start modifying the code
2. After modifying the code, build your project to implement your changes
`npm run build-pretty`
`pnpm run build-pretty`

## Testing

Expand All @@ -48,7 +48,7 @@ You will need to setup the `supertokens-core` in order to to run the `supertoken
3. Navigate to the `supertokens-node` repository
`cd ../supertokens-node/`
4. Run all tests
`INSTALL_PATH=../supertokens-root npm test`
`INSTALL_PATH=../supertokens-root pnpm test`
5. If all tests pass the output should be:
![node tests passing](https://github.com/supertokens/supertokens-logo/blob/master/images/supertokens-node-tests-passing.png)

Expand Down
3 changes: 0 additions & 3 deletions framework/awsLambda/index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions framework/awsLambda/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions framework/express/index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions framework/express/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions framework/fastify/index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions framework/fastify/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions framework/hapi/index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions framework/hapi/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions framework/koa/index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions framework/koa/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions framework/loopback/index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions framework/loopback/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions index.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions index.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/build/constants.d.ts

This file was deleted.

19 changes: 0 additions & 19 deletions lib/build/constants.js

This file was deleted.

23 changes: 0 additions & 23 deletions lib/build/error.d.ts

This file was deleted.

30 changes: 0 additions & 30 deletions lib/build/error.js

This file was deleted.

91 changes: 0 additions & 91 deletions lib/build/framework/awsLambda/framework.d.ts

This file was deleted.

Loading