Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
67d132a9
Verified
Commit
67d132a9
authored
Nov 1, 2023
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: documentation
parent
98e6ebd7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Taskfile.yml
+8
-0
8 additions, 0 deletions
Taskfile.yml
devenv.nix
+10
-18
10 additions, 18 deletions
devenv.nix
with
18 additions
and
18 deletions
Taskfile.yml
+
8
−
0
View file @
67d132a9
...
@@ -25,6 +25,14 @@ tasks:
...
@@ -25,6 +25,14 @@ tasks:
cmds
:
cmds
:
-
build-doc
-
build-doc
publish-doc
:
silent
:
true
desc
:
Publish the documentation to dist/doc
aliases
:
-
bpd
cmds
:
-
publish-doc
run-tests
:
run-tests
:
silent
:
true
silent
:
true
desc
:
Run the tests
desc
:
Run the tests
...
...
This diff is collapsed.
Click to expand it.
devenv.nix
+
10
−
18
View file @
67d132a9
...
@@ -201,7 +201,7 @@ ${pkgs.gnused}/bin/sed -i -E "s_(\"[0-9]+\.[0-9]+\.[0-9]+\")_\"''${VERSION}\"_g"
...
@@ -201,7 +201,7 @@ ${pkgs.gnused}/bin/sed -i -E "s_(\"[0-9]+\.[0-9]+\.[0-9]+\")_\"''${VERSION}\"_g"
''
;
''
;
scripts
.
create-pol
i
fill
.
exec
=
''
scripts
.
create-pol
y
fill
.
exec
=
''
TMPFILE=
${
config
.
devenv
.
root
}
/.devenv/monster.js
TMPFILE=
${
config
.
devenv
.
root
}
/.devenv/monster.js
touch $TMPFILE
touch $TMPFILE
...
@@ -239,7 +239,7 @@ VERSION=$(cat "${config.devenv.root}/package.json" | jq -r '.version')
...
@@ -239,7 +239,7 @@ VERSION=$(cat "${config.devenv.root}/package.json" | jq -r '.version')
update-versions
update-versions
build-monster-mjs
build-monster-mjs
create-pol
i
fill
create-pol
y
fill
find
''$
{TEST_CASES_PATH} -type f | sed "s|^$TEST_CASES_PATH||" >
''$
{TEST_PATH}web/import.js
find
''$
{TEST_CASES_PATH} -type f | sed "s|^$TEST_CASES_PATH||" >
''$
{TEST_PATH}web/import.js
...
@@ -281,24 +281,11 @@ if [ "$profileExists" -eq "0" ]; then
...
@@ -281,24 +281,11 @@ if [ "$profileExists" -eq "0" ]; then
exit 1
exit 1
fi
fi
if [ -d
${
config
.
devenv
.
root
}
/dist/doc ]; then
rm -rf
${
config
.
devenv
.
root
}
/dist/doc
fi
build-doc
code=$?
if [ "$code" -ne "0" ]; then
echo -e "
''$
{RED}✖ Generate doc failed.
''$
{RESET}"
exit 1
fi
echo -e "
''$
{GREEN}✔ Generate doc successful.
''$
{RESET}"
if [ ! -d
${
config
.
devenv
.
root
}
/dist/doc ]; then
if [ ! -d
${
config
.
devenv
.
root
}
/dist/doc ]; then
echo -e "
''$
{RED}✖ No doc found.
''$
{RESET}"
echo -e "
''$
{RED}✖ No doc found.
''$
{RESET}"
exit 1
exit 1
fi
fi
${
pkgs
.
awscli2
}
/bin/aws --profile=shopcloud s3 --recursive --only-show-errors cp
${
config
.
devenv
.
root
}
/dist/doc/ s3://monsterjs.org/en/api/
${
pkgs
.
awscli2
}
/bin/aws --profile=shopcloud s3 --recursive --only-show-errors cp
${
config
.
devenv
.
root
}
/dist/doc/ s3://monsterjs.org/en/api/
code=$?
code=$?
...
@@ -314,7 +301,12 @@ echo -e "''${GREEN}✔ Upload successful.''${RESET}"
...
@@ -314,7 +301,12 @@ echo -e "''${GREEN}✔ Upload successful.''${RESET}"
rm -rf
${
config
.
devenv
.
root
}
/dist/doc
rm -rf
${
config
.
devenv
.
root
}
/dist/doc
update-versions
update-versions
create-polifill
create-polyfill
if [ -d
${
config
.
devenv
.
root
}
/dist/doc ]; then
rm -rf
${
config
.
devenv
.
root
}
/dist/doc
mkdir -p
${
config
.
devenv
.
root
}
/dist/doc
fi
${
config
.
devenv
.
root
}
/node_modules/.bin/jsdoc -c
${
config
.
devenv
.
root
}
/doc/jsdoc.json
${
config
.
devenv
.
root
}
/node_modules/.bin/jsdoc -c
${
config
.
devenv
.
root
}
/doc/jsdoc.json
${
pkgs
.
nodejs_20
}
/bin/node
${
config
.
devenv
.
root
}
/opt/scripts/replace-skypack.cjs
${
config
.
devenv
.
root
}
${
pkgs
.
nodejs_20
}
/bin/node
${
config
.
devenv
.
root
}
/opt/scripts/replace-skypack.cjs
${
config
.
devenv
.
root
}
...
...
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