This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/plugins/healthcheck/server/bootstrap.js | |
/** | |
With a plugin called healthcheck, this exposes a URL of /status without any /api or /admin prefix | |
**/ | |
module.exports = ({ strapi }) => { | |
const routes = [ | |
{ | |
method: 'GET', | |
path: `/status`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
// Sourced from https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes | |
const changes = fs.readFileSync('icon-changes.csv', 'utf8'); | |
const icons = changes.split('\r\n'); | |
const OLD_PREFIX = 'fa fa-'; | |
const ROOT_FOLDER = 'src'; | |
const DRY_RUN = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var game; | |
function createGame() { | |
game = new MyGame.Game(); | |
game.state.onStateChange.add(function (state) { | |
if (state === 'menu') { | |
runTests(); // wait for boot + preload to complete before running tests | |
} | |
}, this); | |
game.play(); // init's game and sets the initial Phaser.State |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict'; | |
/** | |
* Usage: | |
* | |
* grunt.registerTask('checkAndroidManifest', 'Check manifest', function () { | |
* var done = this.async(), | |
* checkAndroidManifest = require('./bin/grunt-fix-manifest.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CordovaBackupAgentHelper extends BackupAgentHelper { | |
static final String FILE_NAME = "gameData.json"; | |
static final String FILES_BACKUP_KEY = "data_file"; | |
@Override | |
public void onCreate() { | |
FileBackupHelper helper = new FileBackupHelper(this, FILE_NAME); | |
addHelper(FILES_BACKUP_KEY, helper); | |
} |