Skip to content

Commit a1ad6bc

Browse files
committed
Remove NPM config from Taskfile as it is no longer needed with react 19
1 parent 32e726a commit a1ad6bc

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

Taskfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function banner {
1919
# =========================================================
2020

2121
function task:init { ## Set up the project for local development
22-
project:npm-config
2322
project:git-config
2423
task:update
2524
task:help
@@ -52,12 +51,6 @@ function project:install-dependencies {
5251
npm install
5352
}
5453

55-
function project:npm-config {
56-
title "Configuring NPM"
57-
npm config --location=project set legacy-peer-deps=true \
58-
&& echo -e "All ${GREEN}good${RESET}."
59-
}
60-
6154
function project:git-config {
6255
title "Setting git configuration"
6356
git config --local core.hooksPath dev/git-hooks

src/components/Generator/GeneredTaskfile/GeneratedTaskfile.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use client';
22

3-
import {ReactElement} from 'react';
4-
import {taskfile} from '@/components/Generator/GeneredTaskfile/taskfile';
5-
import {useFormContext} from 'react-hook-form';
6-
import {GeneratorSettings} from '@/components/Generator/Generator';
3+
import { ReactElement } from 'react';
4+
import { taskfile } from '@/components/Generator/GeneredTaskfile/taskfile';
5+
import { useFormContext } from 'react-hook-form';
6+
import { GeneratorSettings } from '@/components/Generator/Generator';
77
import SaveFile from './SaveFile';
8-
import {highlighter} from './Highlighter';
8+
import { highlighter } from './Highlighter';
99

1010
const GeneratedTaskfile = (): ReactElement => {
1111
const form = useFormContext<GeneratorSettings>();

src/components/Generator/GeneredTaskfile/SaveFile/SaveFile.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import {ReactElement, useState} from 'react';
3+
import { ReactElement, useState } from 'react';
44

55
import styles from './save-file.module.scss';
66

@@ -19,7 +19,7 @@ const CopyToClipboard = ({ content }: CopyProps): ReactElement => {
1919
};
2020

2121
const download = (): void => {
22-
const blob = new Blob([content], {type: 'text/x-shellscript'});
22+
const blob = new Blob([content], { type: 'text/x-shellscript' });
2323
const elem = window.document.createElement('a');
2424
elem.href = window.URL.createObjectURL(blob);
2525
elem.download = 'Taskfile';
@@ -31,7 +31,12 @@ const CopyToClipboard = ({ content }: CopyProps): ReactElement => {
3131
return (
3232
<div className={styles.container}>
3333
<button type="button" className={`${styles.download}`} onClick={download} title="Download Taskfile" />
34-
<button type="button" className={`${styles.copy} ${isCopied && styles.copied}`} onClick={onClick} title="Copy Taskfile content" />
34+
<button
35+
type="button"
36+
className={`${styles.copy} ${isCopied && styles.copied}`}
37+
onClick={onClick}
38+
title="Copy Taskfile content"
39+
/>
3540
</div>
3641
);
3742
};

src/components/Generator/GeneredTaskfile/SaveFile/save-file.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
background-repeat: no-repeat;
2323
background-position: center;
2424
border-radius: 0.2rem;
25-
transition:
26-
background-color 200ms ease-in-out;
25+
transition: background-color 200ms ease-in-out;
2726
}
2827

2928
.download {
@@ -32,10 +31,11 @@
3231

3332
.copy {
3433
background-image: url('./clipboard.svg');
35-
background-size: 1.0rem;
34+
background-size: 1rem;
3635
}
3736

38-
.copy:hover, .download:hover {
37+
.copy:hover,
38+
.download:hover {
3939
color: #fff;
4040
border-color: #fff;
4141
}

0 commit comments

Comments
 (0)