setup basic locker app

This commit is contained in:
Abhinav 2023-11-09 12:02:09 +05:30
parent c2191515ee
commit 4ae36c34df
9 changed files with 70 additions and 0 deletions

13
apps/locker/.eslintrc.js Normal file
View file

@ -0,0 +1,13 @@
module.exports = {
// When root is set to true, ESLint will stop looking for configuration files in parent directories.
// This is required here to ensure desktop picks the right eslint config, where this app is
// packaged as a submodule.
root: true,
extends: ['@ente/eslint-config'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
ignorePatterns: ['.eslintrc.js'],
};

5
apps/locker/next-env.d.ts vendored Normal file
View file

@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View file

@ -0,0 +1,3 @@
const nextConfigBase = require('@ente/shared/next/next.config.base.js');
module.exports = nextConfigBase;

10
apps/locker/package.json Normal file
View file

@ -0,0 +1,10 @@
{
"name": "locker",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"lint": "next lint"
}
}

View file

@ -0,0 +1,3 @@
import { setupSentry } from '@ente/shared/sentry/config/sentry.config.base';
setupSentry();

View file

@ -0,0 +1,3 @@
defaults.url=https://sentry.ente.io/
defaults.org=ente
defaults.project=locker-web

View file

View file

@ -0,0 +1,9 @@
const IndexPage = () => {
return (
<div>
<h1>Locker</h1>
</div>
);
};
export default IndexPage;

24
apps/locker/tsconfig.json Normal file
View file

@ -0,0 +1,24 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./src",
"downlevelIteration": true,
"jsx": "preserve",
"jsxImportSource": "@emotion/react",
"lib": ["dom", "dom.iterable", "esnext", "webworker"],
"noImplicitAny": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"strictNullChecks": false,
"target": "es5",
"useUnknownInCatchVariables": false
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.js",
"../../packages/shared/themes/mui-theme.d.ts"
],
"exclude": ["node_modules", "out", ".next", "thirdparty"]
}