View Concat and Minify Grunt
/****** | |
Concatinate css and js | |
*******/ | |
concat: { | |
js: { | |
src: 'src/js/*.js', | |
dest: 'dest/js/concat.js' | |
}, | |
css: { |
View nginxconfig
upstream app_website { | |
server 127.0.0.1:3000; // Port your node app is running on | |
} | |
# the nginx server instance | |
server { | |
listen 80; | |
server_name website.com; | |
return 301 http://www.website.com; | |
} |
View expressgeneratorstart
Windows | |
------- | |
DEBUG=appname:* npm start | |
Linux | |
------- | |
Terminal 1 | |
node-inspector |
View Grunt file SASS
module.exports = function(grunt) { | |
grunt.initConfig({ | |
sass: { | |
dist: { | |
options: { | |
includePaths: require('node-bourbon').includePaths, | |
includePaths: require('node-neat').includePaths | |
}, | |
files: { | |
'public/css/style.css': 'public/scss/style.scss' |
View bourbonGrunt
var path = require('path'); | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
sass: { | |
dist: { | |
options: { | |
includePaths: require('node-refills').includePaths | |
}, | |
files: { |
View SassPackageJson
{ | |
"name": "bitcointestnetfaucet", | |
"version": "0.0.0", | |
"private": true, | |
"scripts": { | |
"start": "node ./bin/www" | |
}, | |
"dependencies": { | |
"express": "~4.9.0", | |
"body-parser": "~1.8.1", |
View nodegypwindows
npm install <package> --msvs_version=<.net version> |
View calcpricefiddle
http://jsfiddle.net/v7tmu6ss/3/ |
View recactcounter
http://jsfiddle.net/kb3gN/8968/ |
View knockoutsample.js
var ViewModel = { | |
inputValue : ko.observable() | |
}; | |
ko.applyBindings(ViewModel); | |
var value = $('#text').data('value'); | |
ViewModel.inputValue(value); |
OlderNewer