Skip to content

Instantly share code, notes, and snippets.

@Dragod
Last active December 4, 2020 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragod/58a24a58f88f848a7b0dabdc9f21d210 to your computer and use it in GitHub Desktop.
Save Dragod/58a24a58f88f848a7b0dabdc9f21d210 to your computer and use it in GitHub Desktop.
node build unity skin
// Script to build unity skins via node
const execSync = require('child_process').execSync;
// Default value `amazon-site-lite` if no args provided via CLI.
const skin = process.argv[2] || 'amazon-site-lite';
// Run the node-sass
execSync('node-sass sass/skins/' + skin + '/' + skin + '.scss > assets/' + skin + '/css/' + skin + '.css', { stdio: [0, 1, 2] });
// Print message for task completed
execSync("echo Build skin: " + skin + " completed", { stdio: [0, 1, 2] });
// Run this on command line to build the skin
// npm run css:skin -- ioc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment