generator-adorable's People
generator-adorable's Issues
base requirements for deploying to heroku
# Procfile
web: node server.js
// server.js
var path = require('path');
var express = require('express');
var app = express();
var staticPath = path.resolve(__dirname, 'dist');
var bowerPath = path.resolve(__dirname, 'dist/bower_components');
app.use(express.static(staticPath));
app.use('/bower_components', express.static(bowerPath));
app.listen(process.env.PORT || 3002, function() {
console.log('listening');
});
base package.json for gulp/angular projects
{
"name": "<PROJECT NAME>",
"private": true,
"version": "0.0.1",
"description": "<PROJECT DESCRIPTION>",
"keywords": [],
// START -- THIS IS FOR NW.JS
"window": {
"icon": "app/images/icon.png",
"frame": false,
"toolbar": false,
"width": 400,
"height": 600,
"position": "center",
"resizable": true,
"always-on-top": true
},
"webkit": {
"plugin": false
},
"main": "index.html#main",
// END
"dependencies": {
"angular": "^1.3.15",
"babel-core": "^5.4.2",
"babel-loader": "^5.1.0",
"bower": "^1.4.1",
"browser-sync": "^2.7.1",
"browserify": "^7.0.0",
"del": "^1.1.1",
"express": "^4.12.3",
"gulp": "^3.8.11",
"gulp-filter": "^2.0.2",
"gulp-inject": "^1.2.0",
"gulp-jade": "^1.0.0",
"gulp-jshint": "^1.11.0",
"gulp-load-plugins": "^0.10.0",
"gulp-load-plugins": "^0.10.0",
"gulp-plumber": "^1.0.0",
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.0.1",
"gulp-sass-bulk-import": "^0.3.0",
"gulp-util": "^3.0.4",
"gulp-watch": "^4.2.4",
"gulp-webpack": "^1.4.0",
"jshint-stylish": "^2.0.0",
"jsx-loader": "^0.13.2",
"lodash": "^3.8.0",
"main-bower-files": "^2.8.0",
"mocha": "^2.0.1",
"node-bourbon": "^4.2.2",
"node-libs-browser": "^0.5.0",
"watchify": "^2.1.1",
"webpack": "^1.9.6"
},
"devDependencies": {
"bulk-require": "^0.2.1",
"chai": "^1.10.0",
"node-webkit-builder": "^1.0.11" // for nw.js
},
"scripts": {
"postinstall": "bower install && gulp",
"start": "node_modules/.bin/nodewebkit ./dist", // for nw.js
"start": "$(npm bin)/gulp serve", // for nw.js
"test": "mocha"
}
}
base .jshintrc for js projects
{
"esnext": true,
"globalstrict": true,
"bitwise": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"white": true,
"validthis": true,
"globals": {
"console": false,
"braintree": false,
"angular": false,
// Angular Mocks
"inject": false,
"module": false,
// JASMINE
"describe": false,
"it": false,
"before": false,
"beforeEach": false,
"after": false,
"afterEach": false,
"expect": false
},
"predef": [
"require",
"__dirname",
"gulp",
"global",
"process",
"exports"
]
}
base webpack.config.js for javascript projects
module.exports = {
devtool: '#source-map',
output: {
filename: '[name].js',
sourcemapFilename: '[name].map'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
},
resolve: {
extensions: ['', '.js']
}
};
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.