View rename.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
var fs = require('fs'); | |
var path = require('path'); | |
const replacePackageByIndex = function(dir) { | |
const list = fs.readdirSync(dir); | |
const dirName = path.basename(dir) | |
list.forEach(function(file) { | |
if (file === "package.json") { | |
fs.writeFile(`${dir}/index.js`, createIndexContents(dirName), (err) => { | |
if (err) { |
View gist:83114074087666967da3
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 sauceConnectLauncher = require('sauce-connect-launcher'); | |
// connects to saucelabs server and runs protractor e2e tests against saucelabs server | |
gulp.task('e2e_protractor_sauce', function() { | |
sauceConnectLauncher({ | |
username: 'xxx', | |
accessKey: 'xxxx', | |
// logger: console.log | |
}, function (err, sauceConnectProcess) { | |
if (err) { |
View Create the following folders and files in your theme
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
folder ds_layouts | |
> folder ds_1col_linked | |
> file ds-1col-linked.tpl.php | |
> file ds_1col_linked.inc |
View Allowed html elements
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
<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <p> <br/> <img> <table> <thead> <tbody> <tfoot> <tr> <th> <td> <hr/> |