npx stylelint "sass/**/*.{css,scss,sass}"
npx html-linter --config ./html-linter.json templates/**/*.htm
This file contains hidden or 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
@ECHO OFF | |
CD /D "C:\gitrepos\sd-unity-4-0" | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat" | |
msbuild htmlUnity.sln /t:clean | |
call "msbuild" | |
start firefox -devTools http://localhost:49797/index.aspx | |
CD /D "C:\Program Files (x86)\IIS Express" | |
iisexpress /path:C:\gitrepos\sd-unity-4-0\ /port:49797 /clr:v4.0 | |
CMD |
This file contains hidden or 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 _msbuild = require('msbuild'); | |
var msbuild = new _msbuild(); | |
msbuild.sourcePath = 'c:/gitrepos/sd-unity-4-0/htmlUnity.sln'; | |
msbuild.config('version','16.0') | |
msbuild.build(); |
This file contains hidden or 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 bash | |
# Sass build only skin colors | |
# Use: type "colors" in bash console, or npm run colors, | |
# make sure eithe .bashrc or npm scripts are set up for this to work | |
# No Color | |
white='\e[1;37m' |
This file contains hidden or 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
C:\Users\fabio\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState |
This file contains hidden or 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
// 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] }); |
This file contains hidden or 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
"sass": "node-sass sass/app.scss --source-map-root --source-map-embed true", | |
"css:core": "npm run sass -s | exorcist css/app.css.map > css/app.css && npx postcss css/app.css -r", | |
"css:skin": "node build-skin" |
This file contains hidden or 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
// Script to build unity skins via nodejs and override main.css with current skin. | |
// Need execSync to execute command in nodejs. | |
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'; | |
// Work with file system. | |
const fs = require('fs'); |
This file contains hidden or 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 execSync = require('child_process').execSync; | |
let prompt = require('prompt'), | |
optimist = require('optimist') | |
sass = "node-sass --source-map true" | |
function getBuild(type) { | |
let map = | |
{ | |
"core": `${sass} sass/app.scss css/app.css && npx postcss css/app.css -r`, | |
"admin": `${sass} sass/skins/admin/admin.scss admin/css/admin.css && npx postcss admin/css/admin.css -r`, |
This file contains hidden or 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
green='\e[32m' | |
blue='\e[34m' | |
clear='\e[0m' | |
#Green | |
GREEN=`tput setaf 2` | |
# Red |