Skip to content

Commit ee4255a

Browse files
authored
Merge pull request #4 from EOS-uiux-Solutions/dev
[React Package] - Script for scaffolding React components
2 parents 02de0ef + c4367dc commit ee4255a

File tree

15 files changed

+13283
-48
lines changed

15 files changed

+13283
-48
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/root/src/
2+
/root/es/
3+
/root/lib/
4+
/root/svg/

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ es
88
lib
99
svg
1010

11-
yarn.lock
12-
package-lock.json
11+
yarn.lock

gulpfile.ts

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,48 @@
1-
import { series, parallel } from 'gulp';
2-
import { clean } from './utils/clean';
3-
import { copy } from './utils/copy';
1+
import { series, parallel } from 'gulp'
2+
import { clean } from './utils/clean'
3+
import { copy } from './utils/copy'
44

55
export default series(
66

7-
// Cleaning 'src','svg','es','lib' before copying SVGs from 'EOS-Icons'
8-
clean(['src','svg','es','lib']),
9-
10-
// Running all the tasks of copying SVGs from 'EOS-Icons' in parallel
11-
parallel(
12-
13-
copy({
14-
from: ['node_modules/eos-icons/svg/*.svg'],
15-
toDir: 'svg/filled'
16-
}),
17-
18-
copy({
19-
from: ['node_modules/eos-icons/svg/material/*.svg'],
20-
toDir: 'svg/filled'
21-
}),
22-
23-
copy({
24-
from: ['node_modules/eos-icons/animated-svg/*.svg'],
25-
toDir: 'svg/animated'
26-
}),
27-
28-
copy({
29-
from: ['node_modules/eos-icons/svg-outlined/*.svg'],
30-
toDir: 'svg/outlined'
31-
}),
32-
33-
copy({
34-
from: ['node_modules/eos-icons/svg-outlined/material/*.svg'],
35-
toDir: 'svg/outlined'
36-
})
37-
)
38-
);
7+
// Cleaning 'src','svg','es','lib' before copying SVGs from 'EOS-Icons'
8+
clean(['src', 'svg', 'es', 'lib']),
9+
10+
// Running all the tasks of copying SVGs from 'EOS-Icons' in parallel
11+
parallel(
12+
13+
copy({
14+
from: ['node_modules/eos-icons/svg/*.svg'],
15+
toDir: 'svg/filled'
16+
}),
17+
18+
copy({
19+
from: ['node_modules/eos-icons/svg/material/*.svg'],
20+
toDir: 'svg/filled'
21+
}),
22+
23+
copy({
24+
from: ['node_modules/eos-icons/animated-svg/*.svg'],
25+
toDir: 'svg/animated'
26+
}),
27+
28+
copy({
29+
from: ['node_modules/eos-icons/svg-outlined/*.svg'],
30+
toDir: 'svg/outlined'
31+
}),
32+
33+
copy({
34+
from: ['node_modules/eos-icons/svg-outlined/material/*.svg'],
35+
toDir: 'svg/outlined'
36+
}),
37+
38+
copy({
39+
from: ['template/index.ts'],
40+
toDir: 'src/'
41+
}),
42+
43+
copy({
44+
from: ['utils/helper.ts'],
45+
toDir: 'src/'
46+
})
47+
)
48+
)

interface/index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
export interface CopyCreatorOptions {
22
from: string[];
33
toDir: string;
4-
}
4+
}
5+
6+
export interface IconGenerateScript {
7+
type: string;
8+
from: string;
9+
}
10+
11+
export interface TemplateProps {
12+
fileName: string;
13+
data: string;
14+
}

0 commit comments

Comments
 (0)