Skip to content

Commit

Permalink
version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Nov 18, 2024
1 parent 7400b5b commit 6d43c7d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 42 deletions.
3 changes: 0 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import path from "path";
import hljs from "highlight.js";
import markdownIt from "markdown-it";
import markdownAnchor from "markdown-it-anchor";
import UpgradeHelper from "@11ty/eleventy-upgrade-help";
const __dirname = path.resolve();



export default function (eleventyConfig) {
let options = {
html: true,
Expand Down
1 change: 0 additions & 1 deletion content/demos.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: "demos-layout"
---
<div class="demo-page row row-cols-2 row-cols-md-3 row-cols-lg-5 justify-content-center g-2 g-sm-3 mx-sm-2 mx-md-4">
{% for demo in collections['demo-item'] %}

{% capture shadow_color %}{% cycle "flixel-yellow", "flixel-red", "flixel-green", "flixel-dark-blue", "flixel-light-blue" %}{% endcapture %}
<div class="col demo-card text-white">
<a class="card px-0 text-center text-reset link-{{shadow_color}}" href="{{demo.url}}">
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bootstrap": "^5.3.3",
"highlight.js": "^11.9.0",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.1.0",
"markdown-it-anchor": "^9.2.0",
"sharp": "^0.33.2"
},
"scripts": {
Expand All @@ -32,12 +32,12 @@
},
"devDependencies": {
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-img": "^4.0.2",
"@11ty/eleventy-img": "^5.0.0",
"@liquify/prettier-config": "^1.2.1",
"@shopify/prettier-plugin-liquid": "^1.4.4",
"npm-run-all2": "^6.1.2",
"@shopify/prettier-plugin-liquid": "^1.6.0",
"npm-run-all2": "^7.0.1",
"prettier": "^3.2.5",
"sass": "^1.71.1",
"sass": "^1.81.0",
"shelljs": "^0.8.5",
"snazzy": "^9.0.0",
"standard": "*"
Expand Down
68 changes: 35 additions & 33 deletions scripts/install-flixel-docs-repo.cjs
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
const shell = require('shelljs')
const { exec } = require('child_process')
const { paths } = require('./install-docs-config.json')
const shell = require("shelljs");

Check failure on line 1 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Strings must use singlequote

Check failure on line 1 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Extra semicolon
const { exec } = require("child_process");

Check failure on line 2 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Strings must use singlequote

Check failure on line 2 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Extra semicolon
const { paths } = require("./install-docs-config.json");

Check failure on line 3 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Strings must use singlequote

Check failure on line 3 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Extra semicolon

if (!shell.which('git')) {
shell.echo('Sorry, this script requires git')
shell.exit(1)
if (!shell.which("git")) {

Check failure on line 5 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Strings must use singlequote
shell.echo("Sorry, this script requires git");

Check failure on line 6 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Unexpected tab character

Check failure on line 6 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Expected indentation of 2 spaces but found 1 tab

Check failure on line 6 in scripts/install-flixel-docs-repo.cjs

View workflow job for this annotation

GitHub Actions / test_matrix (test:js)

Strings must use singlequote
shell.exit(1);
}

console.log('Installing flixel-docs to the following paths:')
console.log(paths.join('\n'))
console.log("Installing flixel-docs to the following paths:");
console.log(paths.join("\n"));

const cwd = shell.pwd().stdout
console.log('Current folder: ' + cwd)
const cwd = shell.pwd().stdout;
console.log("Current folder: " + cwd);

for (const path of paths) {
installDocsToDir(cwd + path)
installDocsToDir(cwd + path);
}

async function installDocsToDir (path) {
if (shell.test('-e', path + '/.git')) {
console.log('Updating flixel-docs in ' + path + '...')
shell.cd(path)
exec('git fetch --all', (err, stdout, _) => {
if (err) {
console.error(err)
return
}
async function installDocsToDir(path) {
if (shell.test("-e", path + "/.git")) {
console.log("Updating flixel-docs in " + path + "...");
shell.cd(path);
exec("git fetch --all", (err, stdout, _) => {
if (err) {
console.error(err);
return;
}

exec('git pull', (pullerr, pullstdout, _) => {
if (pullerr) {
console.error(pullerr)
return
}
console.log(pullstdout.toString())
})
exec("git pull", (pullerr, pullstdout, _) => {
if (pullerr) {
console.error(pullerr);
return;
}
console.log(pullstdout.toString());
});

shell.cd(cwd)
})
} else {
console.log('Cloning flixel-docs to ' + path + '...')
exec('git clone --depth 1 --no-single-branch https://github.com/haxeflixel/flixel-docs ' + path)
}
shell.cd(cwd);
});
} else {
console.log("Cloning flixel-docs to " + path + "...");
exec(
"git clone --depth 1 --no-single-branch https://github.com/haxeflixel/flixel-docs " + path,
);
}
}

0 comments on commit 6d43c7d

Please sign in to comment.