Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
json-schema-faker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fork
json-schema-faker
Commits
c80dcd87
Commit
c80dcd87
authored
5 years ago
by
Alvaro Cabrera Durán
Browse files
Options
Downloads
Patches
Plain Diff
Update .editorconfig
parent
a56bde53
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.editorconfig
+15
-2
15 additions, 2 deletions
.editorconfig
Makefile
+16
-16
16 additions, 16 deletions
Makefile
with
31 additions
and
18 deletions
.editorconfig
+
15
−
2
View file @
c80dcd87
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root
=
true
root
=
true
[*]
[*.md]
trim_trailing_whitespace
=
false
[*.js]
trim_trailing_whitespace
=
true
trim_trailing_whitespace
=
true
insert_final_newline
=
true
# Unix-style newlines with a newline ending every file
[*]
indent_style
=
space
indent_style
=
space
indent_size
=
2
indent_size
=
2
end_of_line
=
lf
end_of_line
=
lf
charset
=
utf-8
insert_final_newline
=
true
[{Makefile,todo}]
indent_style
=
tab
This diff is collapsed.
Click to expand it.
Makefile
+
16
−
16
View file @
c80dcd87
...
@@ -18,33 +18,33 @@ export NODE_ENV
...
@@ -18,33 +18,33 @@ export NODE_ENV
# utils
# utils
define
iif
define
iif
@(($(1)
>
/dev/null
2>&1)
&&
printf
"\r* $(2)\n"
)
||
printf
"\r* $(3)\n"
@(($(1)
>
/dev/null
2>&1)
&&
printf
"\r* $(2)\n"
)
||
printf
"\r* $(3)\n"
endef
endef
# display all targets-with-help in this file
# display all targets-with-help in this file
?
:
Makefile
?
:
Makefile
@awk -F'
:
.*?
##
' '/^[a-z
\\
%!:-]+:.*
##
/{gsub("%"
,
"*"
,
$$1);gsub("
\\\\
"
,
":*"
,
$$1);printf "
\0
33[36m%8s
\0
33[0m %s
\n
"
,
$$1
,
$$2}' $<
@
awk
-F
':.*?##'
'/^[a-z\\%!:-]+:.*##/{gsub("%","*",$$1);gsub("\\\\",":*",$$1);printf "\033[36m%8s\033[0m %s\n",$$1,$$2}'
$<
dist
:
deps
##
Build artifact for production
dist
:
deps
##
Build artifact for production
@(git
worktree
remove
$(src)
--force
>
/dev/null
2>&1)
||
true
@
(
git worktree remove
$(
src
)
--force
>
/dev/null 2>&1
)
||
true
@git
worktree
add
$(src)
$(target)
@
git worktree add
$(
src
)
$(
target
)
@cd
$(src)
&&
rm
-rf
*
@
cd
$(
src
)
&&
rm
-rf
*
@cp
-r
public/*
build
@
cp
-r
public/
*
build
@npm
run
build
@
npm run build
clean
:
##
Remove cache and generated artifacts
clean
:
##
Remove cache and generated artifacts
@
$(
call
iif,rm
-r
$(
src
)
dist,Built artifacts were deleted,Artifacts already deleted
)
@$(
call iif,rm
-r
$(
src
)
dist,Built artifacts were deleted,Artifacts already deleted
)
@
$(
call
iif,unlink .tarima,Cache file was deleted,Cache file already deleted
)
@$(
call iif,unlink .tarima,Cache file was deleted,Cache file already deleted
)
deploy
:
$(src)
##
Push built artifacts to github!
deploy
:
$(src)
##
Push built artifacts to github!
@cd
$(src)
&&
git
add
.
&&
git
commit
-m
"$(message)"
@
cd
$(
src
)
&&
git add
.
&&
git commit
-m
"
$(
message
)
"
@git
push
origin
$(target)
-f
@
git push origin
$(
target
)
-f
deps
:
##
Check for installed dependencies
deps
:
##
Check for installed dependencies
@(((ls
node_modules
|
grep
.)
>
/dev/null
2>&1)
||
npm
i)
||
true
@
(((
ls
node_modules |
grep
.
)
>
/dev/null 2>&1
)
||
npm i
)
||
true
purge
:
clean
##
Remove all from node_modules/*
purge
:
clean
##
Remove all from node_modules/*
@printf
"\r* Removing all dependencies... "
@
printf
"
\r
* Removing all dependencies... "
@rm
-rf
node_modules/.{bin,cache}
@
rm
-rf
node_modules/.
{
bin,cache
}
@rm
-rf
node_modules/*
@
rm
-rf
node_modules/
*
@echo
"OK"
@
echo
"OK"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment