-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
48 lines (40 loc) · 935 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# make component name=ExampleComponent
# will create a directory called ExampleComponent
# and put these files in there.
# ExampleComponent
# |- index.ts
# |- ExampleComponent.tsx
# |- ExampleComponent.styles.ts
# |- ExampleComponent.type.ts
#
# the files are set up with the minimum code needed to get the component working.
# The new component is placed into the ./components directory
# How to create a component with the CLI : make component name=ExampleComponent
component:
sh scripts/create_component.sh ${name}
# same command for windows
win-component:
sh scripts/win_create_component.sh ${name}
# run tests before build
build:
npm run build
init:
npm install
npm run dev
start:
npm run dev
reset:
rm -rf .next
rm -rf node_modules
rm -rf package-lock.json
npm install
restart:
rm -rf .next
rm -rf node_modules
rm -rf package-lock.json
npm install
npm run dev
push:
npm run lint
npm run build
git push