Skip to content

Commit

Permalink
tools: ignore dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-chapin committed Jul 24, 2024
1 parent 6365512 commit e8a2056
Show file tree
Hide file tree
Showing 18 changed files with 244 additions and 329 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default [
},
...tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended
...tseslint.configs.recommended,
),
{
files: ["**/*.{js,jsx,ts,tsx}"],
Expand Down
8 changes: 4 additions & 4 deletions packages/livingsnow-logger/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
interface ILogger {
Info(message: string): void;
Warn(message: string): void;
Error(message: string): void;
Info(message: string): void;
Warn(message: string): void;
Error(message: string): void;
}
declare const Logger: ILogger;
export default Logger;
//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion packages/livingsnow-logger/dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 17 additions & 18 deletions packages/livingsnow-logger/dist/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
function TestLogger() {
return {
Info() {},
Warn() {},
Error() {},
};
return {
Info() { },
Warn() { },
Error() { },
};
}
// DevelopmentLogger is strictly used for debugging
function DevelopmentLogger() {
return {
Info(message) {
console.log(message);
},
Warn(message) {
console.log(message);
},
Error(message) {
console.log(message);
},
};
return {
Info(message) {
console.log(message);
},
Warn(message) {
console.log(message);
},
Error(message) {
console.log(message);
},
};
}
// ProductionLogger will pipe to a cloud reporting service
/* function ProductionLogger(): ILogger {
Expand All @@ -33,6 +33,5 @@ function DevelopmentLogger() {
};
} */
// TODO: figure out what ProductionLogger should do
const Logger =
process.env.JEST_WORKER_ID !== undefined ? TestLogger() : DevelopmentLogger();
const Logger = process.env.JEST_WORKER_ID !== undefined ? TestLogger() : DevelopmentLogger();
export default Logger;
2 changes: 1 addition & 1 deletion packages/livingsnow-network/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./records/v2/records";
export * from "./records/v2/types";
export * from "./photos/photos";
//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map
6 changes: 3 additions & 3 deletions packages/livingsnow-network/dist/photos/photos.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare const PhotosApi: {
baseUrl: string;
getUrl: (id: string) => string;
baseUrl: string;
getUrl: (id: string) => string;
};
export { PhotosApi };
//# sourceMappingURL=photos.d.ts.map
//# sourceMappingURL=photos.d.ts.map
12 changes: 6 additions & 6 deletions packages/livingsnow-network/dist/photos/photos.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const photosApi = () => {
const baseUrl = "https://snowalgaestorage.blob.core.windows.net/photos";
const getUrl = (id) => `${baseUrl}/${id}.jpg`;
return {
baseUrl,
getUrl,
};
const baseUrl = "https://snowalgaestorage.blob.core.windows.net/photos";
const getUrl = (id) => `${baseUrl}/${id}.jpg`;
return {
baseUrl,
getUrl,
};
};
const PhotosApi = photosApi();
export { PhotosApi };
4 changes: 2 additions & 2 deletions packages/livingsnow-network/dist/photos/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Photo } from "@livingsnow/record/src/types";
export type AppPhotoResponse = Photo & {
size: number;
size: number;
};
//# sourceMappingURL=types.d.ts.map
//# sourceMappingURL=types.d.ts.map
18 changes: 9 additions & 9 deletions packages/livingsnow-network/dist/records/v2/records.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { AlgaeRecord } from "@livingsnow/record";
import { AlgaeRecordResponseV2 } from "./types";
declare const RecordsApiV2: {
baseUrl: string;
getUrl: (page?: string) => string;
postUrl: string;
postPhotoUrl: (recordId: string) => string;
post: (record: AlgaeRecord) => Promise<AlgaeRecord>;
get: (page?: string) => Promise<AlgaeRecordResponseV2>;
getAll: () => Promise<AlgaeRecordResponseV2>;
postPhoto: (recordId: string, photoUri: string) => Promise<void>;
baseUrl: string;
getUrl: (page?: string) => string;
postUrl: string;
postPhotoUrl: (recordId: string) => string;
post: (record: AlgaeRecord) => Promise<AlgaeRecord>;
get: (page?: string) => Promise<AlgaeRecordResponseV2>;
getAll: () => Promise<AlgaeRecordResponseV2>;
postPhoto: (recordId: string, photoUri: string) => Promise<void>;
};
export { RecordsApiV2 };
//# sourceMappingURL=records.d.ts.map
//# sourceMappingURL=records.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e8a2056

Please sign in to comment.