Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Commit 84d7d77

Browse files
committed
Cleaning up Gulp tasks, readme, and testing for GitHub action.
1 parent 7507ce3 commit 84d7d77

7 files changed

Lines changed: 47 additions & 58 deletions

File tree

.github/workflows/pixel-vision-8-release-builder.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,6 @@ jobs:
6363
IFS='.' read -ra my_array <<< "${{ steps.compute_tag.outputs.next_tag }}"
6464
echo "CURRENT=${my_array[0]:1}.$((${my_array[1]} - 1)).$((${my_array[2]}))" >> $GITHUB_ENV
6565
echo "PREVIOUS=${my_array[0]:1}.$((${my_array[1]} - 2)).0" >> $GITHUB_ENV
66-
# - name: Create Changelog
67-
# id: changelog
68-
# uses: jimschubert/beast-changelog-action@v1
69-
# with:
70-
# FROM: v${{ env.PREVIOUS }}
71-
# TO: v${{ env.CURRENT }}
72-
73-
# - name: View Changelog
74-
# run: cat .github/CHANGELOG.md
75-
76-
# - name: save Changelog
77-
# id: log
78-
# run: |
79-
# REPORT="$(cat .github/CHANGELOG.md)"
80-
# REPORT="${REPORT//'%'/'%25'}"
81-
# REPORT="${REPORT//$'\n'/'%0A'}"
82-
# REPORT="${REPORT//$'\r'/'%0D'}"
83-
# echo "REPORT=$REPORT" >> $GITHUB_ENV
8466
8567
# Setup dotnet v5.0.x
8668
- name: Setup .NET Core
@@ -99,6 +81,7 @@ jobs:
9981
npm install gulp -g
10082
echo $VERSION
10183
gulp package
84+
10285
# Update the release with the change log
10386
- name: Update Release
10487
id: update_release

Build/Tasks/docs.js

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
// const gulp = require('gulp');
2-
// const markdownPdf = require('gulp-markdown-pdf');
3-
// const replace = require('gulp-replace');
4-
// const path = require("path");
5-
// const fs = require('fs');
1+
const gulp = require('gulp');
2+
const markdownPdf = require('gulp-markdown-pdf');
3+
const replace = require('gulp-replace');
4+
const path = require("path");
5+
const fs = require('fs');
66

7-
// gulp.task('docs-concatenate-markdown', function(cb){
7+
gulp.task('docs-concatenate-markdown', function(cb){
88

9-
// var rootPath = path.resolve('Docs/images/') + "/"
9+
var rootPath = path.resolve('Docs/images/') + "/"
1010

11-
// var toc = fs.readFileSync("Docs/_Sidebar.md", "utf8");
11+
var toc = fs.readFileSync("Docs/_Sidebar.md", "utf8");
1212

13-
// var lines = toc.split("\n");
13+
var lines = toc.split("\n");
1414

15-
// lines.splice(1, 0, "* [About](Home)");
15+
lines.splice(1, 0, "* [About](Home)");
1616

17-
// var markdown = "";
17+
var markdown = "";
1818

19-
// for (let i = 0; i < lines.length; i++) {
19+
for (let i = 0; i < lines.length; i++) {
2020

21-
// const line = lines[i];
21+
const line = lines[i];
2222

23-
// if(line.substring(0,1) == "#")
24-
// {
25-
// markdown += line
26-
// }
27-
// else if(line.substring(0,1) == "*")
28-
// {
23+
if(line.substring(0,1) == "#")
24+
{
25+
markdown += line
26+
}
27+
else if(line.substring(0,1) == "*")
28+
{
2929

30-
// let split = line.split("](");
30+
let split = line.split("](");
3131

32-
// markdown += "## " + split[0].substring(3) + "\n";
32+
markdown += "## " + split[0].substring(3) + "\n";
3333

34-
// let text = fs.readFileSync("Docs/" + split[1].substring(0, split[1].length-1) + ".md", "utf8")
34+
let text = fs.readFileSync("Docs/" + split[1].substring(0, split[1].length-1) + ".md", "utf8")
3535

36-
// markdown += text.replace(/\]\(images\//g, "](" + rootPath);;
37-
// }
36+
markdown += text.replace(/\]\(images\//g, "](" + rootPath);;
37+
}
3838

39-
// markdown += "\n";
39+
markdown += "\n";
4040

41-
// }
41+
}
4242

43-
// fs.writeFile('Releases/Source/docs.md', markdown, cb);
44-
// });
43+
fs.writeFile('Releases/Source/docs.md', markdown, cb);
44+
});
4545

46-
// gulp.task('docs-build-pdf', function(){
46+
gulp.task('docs-build-pdf', function(){
4747

48-
// var tmpDoc = 'Releases/Source/docs.md'
48+
var tmpDoc = 'Releases/Source/docs.md'
4949

50-
// return gulp.src(tmpDoc)
51-
// .pipe(markdownPdf())
52-
// .pipe(gulp.dest('Releases/Final/'));
50+
return gulp.src(tmpDoc)
51+
.pipe(markdownPdf())
52+
.pipe(gulp.dest('Releases/Final/'));
5353

54-
// })
54+
})
5555

56-
// gulp.task("build-docs", gulp.series('docs-concatenate-markdown', 'docs-build-pdf'));
56+
gulp.task("build-docs", gulp.series('docs-concatenate-markdown', 'docs-build-pdf'));

Game/Src/scene-editor-brush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--[[
22
## Space Station 8 `editor-plugin-brush.lua`
33
4-
]]
4+
]]--
55

66
INPUT_TIMER = "InputTimer"
77
BLINK_TIMER = "BlinkTimer"

Game/Src/scene-editor-mouse.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
--[[
22
## Space Station 8 `editor-plugin-mouse.lua`
33
4-
]]
4+
]]--
5+
56
MOUSE_TIMER = "MouseTimer"
67

78
-- Create the plugin table

Game/Src/scene-editor-options.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--[[
22
## Space Station 8 `editor-plugin-options.lua`
33
4-
]]
4+
]]--
55

66
-- Create the plugin table
77
local editorPlugin = {

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Space Station 8
2+
![Pixel Vision 8](https://github.com/PixelVision8/SpaceStation8/workflows/Space%20Station%208/badge.svg)
23

34
**Space Station 8** is a `Micro Platformer` created [in 72 hours for Ludum Dare 49](https://ldjam.com) based on a game I used to play on my original Macintosh called [Spacestation Pheta](https://en.wikipedia.org/wiki/Spacestation_Pheta). Space Station 8 is also heavily inspired by [Bitsy](http://make.bitsy.org) and my Fantasy Console, [Pixel Vision 8](https://pixelvision8.com), which I used to create the game.
45

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@
99
"author": "Jesse Freeman",
1010
"license": "ISC",
1111
"dependencies": {
12+
"chokidar": "^3.5.2",
1213
"del": "^6.0.0",
1314
"gulp": "^4.0.2",
1415
"gulp-dotnet-cli": "^1.1.0",
16+
"gulp-markdown-pdf": "^8.0.0",
1517
"gulp-rename": "^2.0.0",
18+
"gulp-replace": "^1.1.3",
19+
"gulp-shell": "^0.8.0",
1620
"gulp-string-replace": "^1.1.2",
1721
"gulp-zip": "^5.1.0",
1822
"require-dir": "^1.2.0",
23+
"tutorial-writer": "^0.1.4",
1924
"xmldom": "^0.6.0",
20-
"xpath": "^0.0.32",
21-
"gulp-shell": "^0.8.0"
25+
"xpath": "^0.0.32"
2226
}
2327
}

0 commit comments

Comments
 (0)