Skip to content

Commit 31c54df

Browse files
committed
added more build in tasks
1 parent 9b9188a commit 31c54df

2 files changed

Lines changed: 47 additions & 5 deletions

File tree

crates/samfileparser/buildin.samfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,19 @@
1717
# so no worries that they will slow down the parser
1818
# target\debug\build\samfileparser-947b3b80d6e6026e\out\builtin_filtered.rs
1919

20+
21+
#
22+
# #######################################################
23+
#
24+
# ############## Minisite Tasks
25+
#
26+
2027
# a task for minisite to copy the links.md file to the pages directory
2128
# to bundle them into a minisite HTML File
2229
# more infos about that here:
2330
# https://shadowdara.wordpress.com/2026/06/30/minisite-a-site-in-only-one-html-file/
31+
#
32+
# seg _build_in_copy_links_md
2433
_build_in_copy_links_md:
2534
MV .samengine/links.md pages/links.md
2635

@@ -29,6 +38,8 @@ _build_in_copy_links_md:
2938
# for projects or games with npm
3039
# More Infos can be found here: (scroll to the bottom of the article)
3140
# https://shadowdara.wordpress.com/2026/06/30/minisite-a-site-in-only-one-html-file/
41+
#
42+
# seg _build_in_minisite_build_bun
3243
_build_in_minisite_build_bun:
3344
SHELL bun x seg -l view
3445
TASK _build_in_copy_links_md
@@ -39,7 +50,38 @@ _build_in_minisite_build_bun:
3950
# for projects or games with bun
4051
# More Infos can be found here: (scroll to the bottom of the article)
4152
# https://shadowdara.wordpress.com/2026/06/30/minisite-a-site-in-only-one-html-file/
53+
#
54+
# seg _build_in_minisite_build_npm
4255
_build_in_minisite_build_npm:
4356
SHELL npx seg -l view
4457
TASK _build_in_copy_links_md
4558
SHELL npx sam-cli minisite
59+
60+
61+
# Ignore Godot File addon
62+
# Ignore autogenerated Files from the 3D Models!
63+
#
64+
# seg _build_in_gitignore_godot
65+
_build_in_gitignore_godot:
66+
APPEND .gitignore '# Ignore autogenerated Files image from the 3D Models'
67+
APPEND .gitignore models/*.png
68+
APPEND .gitignore models/*.png.import
69+
APPEND .gitignore models/*.jpg
70+
APPEND .gitignore models/*.jpg.import
71+
APPEND .gitignore models/*.jpeg
72+
APPEND .gitignore models/*.jpeg.import
73+
ECHO Ignored all images files form 3D Models by Godot
74+
75+
76+
# Ignore samengine File addon
77+
# Ignore autogenerated files from samengine
78+
#
79+
# seg _build_in_gitignore_samengine
80+
_build_in_gitignore_samengine:
81+
APPEND .gitignore '# Ignore autogenerated files from samengine'
82+
APPEND .gitignore .samengine/config.mjs
83+
APPEND .gitignore dist
84+
APPEND .gitignore .samengine/links.md
85+
APPEND .gitignore .samengine/links.txt
86+
APPEND .gitignore pages/links.md
87+
ECHO Ignore autogenerated files from samengine#

crates/samfileparser/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ fn parse_line(line: &str, conf: &RunConfig, idx: usize) -> Option<Command> {
11761176
);
11771177
}
11781178

1179-
let rest = args[1..].join(" ");
1179+
let rest = args[2..].join(" ");
11801180

11811181
return Some(Command::WriteLin(args[1].clone(), rest.to_string()));
11821182
}
@@ -1191,7 +1191,7 @@ fn parse_line(line: &str, conf: &RunConfig, idx: usize) -> Option<Command> {
11911191
);
11921192
}
11931193

1194-
let rest = args[1..].join(" ");
1194+
let rest = args[2..].join(" ");
11951195

11961196
return Some(Command::Append(args[1].clone(), rest.to_string()));
11971197
}
@@ -1205,7 +1205,7 @@ fn parse_line(line: &str, conf: &RunConfig, idx: usize) -> Option<Command> {
12051205
);
12061206
}
12071207

1208-
let rest = args[1..].join(" ");
1208+
let rest = args[2..].join(" ");
12091209

12101210
return Some(Command::AppendWin(args[1].clone(), rest.to_string()));
12111211
}
@@ -1219,7 +1219,7 @@ fn parse_line(line: &str, conf: &RunConfig, idx: usize) -> Option<Command> {
12191219
);
12201220
}
12211221

1222-
let rest = args[1..].join(" ");
1222+
let rest = args[2..].join(" ");
12231223

12241224
return Some(Command::AppendMac(args[1].clone(), rest.to_string()));
12251225
}
@@ -1233,7 +1233,7 @@ fn parse_line(line: &str, conf: &RunConfig, idx: usize) -> Option<Command> {
12331233
);
12341234
}
12351235

1236-
let rest = args[1..].join(" ");
1236+
let rest = args[2..].join(" ");
12371237

12381238
return Some(Command::AppendLin(args[1].clone(), rest.to_string()));
12391239
}

0 commit comments

Comments
 (0)