Place
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@/media": "*",
|
||||
"@/new": "*",
|
||||
"@/next": "*",
|
||||
"@date-io/date-fns": "^2.14.0",
|
||||
"@ente/accounts": "*",
|
||||
|
||||
3
web/packages/new/.eslintrc.js
Normal file
3
web/packages/new/.eslintrc.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
extends: ["@/build-config/eslintrc-base"],
|
||||
};
|
||||
11
web/packages/new/README.md
Normal file
11
web/packages/new/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
## @/new
|
||||
|
||||
This package only exists so that we can write code that works with TypeScript
|
||||
strict mode. This provides a gradual way of migrating the existing code in the
|
||||
old packages to strict mode. Once there is sufficient gravity here, we can flip
|
||||
the switch on the original packages and move these back to where they came from.
|
||||
|
||||
### Packaging
|
||||
|
||||
This (internal) package exports a vanilla TypeScript library. We rely on the
|
||||
importing project to transpile and bundle it.
|
||||
7
web/packages/new/package.json
Normal file
7
web/packages/new/package.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@/new",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"dependencies": {},
|
||||
"devDependencies": {}
|
||||
}
|
||||
2
web/packages/new/photos/hello.ts
Normal file
2
web/packages/new/photos/hello.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/** Dummy function to get the package to behave. */
|
||||
export const hello = (ms: number) => ms;
|
||||
4
web/packages/new/tsconfig.json
Normal file
4
web/packages/new/tsconfig.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "@/build-config/tsconfig-typecheck.json",
|
||||
"include": ["."]
|
||||
}
|
||||
Reference in New Issue
Block a user