Skip to content

Commit

Permalink
Removed testing logs. Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKulkarni committed Oct 27, 2023
1 parent 3a28b80 commit 64ff11c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions core/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ async function sayHello() {

useGracefulShutdown();

var { version, help, projectName, template, branch, network, shareUsageData } = await parseFlags(globalOptions);
const parsedFlags = await parseFlags(globalOptions);
const { version, help, projectName, shareUsageData } = parsedFlags;
let { template, network, branch } = parsedFlags;

template = makeInputsLowercase(template);
network = makeInputsLowercase(network);
branch = makeInputsLowercase(branch);

console.log('network', network);

const collectUsageData = await initializeUsageConfigIfneeded();
const config = loadConfig();

Expand Down
2 changes: 0 additions & 2 deletions core/create-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ export async function createApp(config: CreateMagicAppConfig) {
...config.data,
};

console.log('templateData', templateData);

const { gray, cyan } = chalk;
const timer = createTimer();

Expand Down
2 changes: 1 addition & 1 deletion core/utils/templateMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
PublishableApiKeyPrompt,
} from 'scaffolds/prompts';
import { CreateMagicAppConfig, pauseTimerAndSpinner } from 'core/create-app';
import { makeInputsLowercase } from 'core/flags';
import BaseScaffold from '../types/BaseScaffold';
import DedicatedScaffold, { flags as dedicatedFlags } from '../../scaffolds/nextjs-dedicated-wallet/scaffold';
import FlowDedicatedScaffold, {
Expand All @@ -21,7 +22,6 @@ import SolanaDedicatedScaffold, {
} from '../../scaffolds/nextjs-solana-dedicated-wallet/scaffold';
import UniversalScaffold, { flags as universalFlags } from '../../scaffolds/nextjs-universal-wallet/scaffold';
import { Timer } from './timer';
import { makeInputsLowercase } from 'core/flags';

export type Chain = 'evm' | 'solana' | 'flow';
export type Template =
Expand Down
6 changes: 4 additions & 2 deletions scaffolds/nextjs-dedicated-wallet/scaffold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ export default class DedicatedScaffold extends BaseScaffold {
this.data = data;

if (typeof this.source !== 'string') {
data.loginMethods = data.loginMethods.map((authType) => AuthTypePrompt.mapInputToLoginMethods(authType));
data.loginMethods.forEach((authType) => {
this.data.loginMethods = this.data.loginMethods.map((authType) =>
AuthTypePrompt.mapInputToLoginMethods(authType),
);
this.data.loginMethods.forEach((authType) => {
(this.source as string[]).push(`./src/components/magic/auth/${authType}.tsx`);
if (
authType === 'Discord' ||
Expand Down
6 changes: 4 additions & 2 deletions scaffolds/nextjs-flow-dedicated-wallet/scaffold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ export default class FlowDedicatedScaffold extends BaseScaffold {
this.data = data;

if (typeof this.source !== 'string') {
data.loginMethods = data.loginMethods.map((authType) => AuthTypePrompt.mapInputToLoginMethods(authType));
data.loginMethods.forEach((authType) => {
this.data.loginMethods = this.data.loginMethods.map((authType) =>
AuthTypePrompt.mapInputToLoginMethods(authType),
);
this.data.loginMethods.forEach((authType) => {
(this.source as string[]).push(`./src/components/magic/auth/${authType.replaceAll(' ', '')}.tsx`);
if (
authType === 'Discord' ||
Expand Down
6 changes: 4 additions & 2 deletions scaffolds/nextjs-solana-dedicated-wallet/scaffold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ export default class SolanaDedicatedScaffold extends BaseScaffold {
this.data = data;

if (typeof this.source !== 'string') {
data.loginMethods = data.loginMethods.map((authType) => AuthTypePrompt.mapInputToLoginMethods(authType));
data.loginMethods.forEach((authType) => {
this.data.loginMethods = this.data.loginMethods.map((authType) =>
AuthTypePrompt.mapInputToLoginMethods(authType),
);
this.data.loginMethods.forEach((authType) => {
(this.source as string[]).push(`./src/components/magic/auth/${authType.replaceAll(' ', '')}.tsx`);
if (
authType === 'Discord' ||
Expand Down

0 comments on commit 64ff11c

Please sign in to comment.