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
/*\ | |
title: $:/core/modules/blog.js | |
type: application/javascript | |
module-type: server-off | |
WordPress blog module | |
\*/ | |
(function(){ |
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
# Install package to local repo | |
sudo npm install . -g | |
# Delete package from local repo | |
sudo rm -r /usr/local/lib/node_modules/{module} | |
# Install package from local repo | |
npm install /usr/local/lib/node_modules/{module} |
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
TESTS = test/spec | |
REPORTER = spec | |
XML_FILE = reports/TEST-all.xml | |
HTML_FILE = reports/coverage.html | |
test: test-mocha | |
test-ci: | |
$(MAKE) test-mocha REPORTER=xUnit > $(XML_FILE) |
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
/* | |
Server app | |
*/ | |
var express = require('express'); | |
var app = express(); | |
var port = 3000; | |
app.configure(function () { | |
console.log('Doing [default] configure'); | |
app.use(express.static(__dirname + '/public')); |
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 RedisStore = require('connect-redis')(express); | |
app.use(express.cookieParser('appsecret')); | |
app.use(express.bodyParser()); | |
app.use(express.session({ secret:'appsecret', store:new RedisStore, cookie:{ maxAge:60000, expires: false } })); | |
app.use(express.cookieSession()); | |
app.use(app.router); |
NewerOlder