Skip to content
This repository was archived by the owner on Nov 2, 2019. It is now read-only.

Commit 44fab03

Browse files
author
Henry Chen
committed
MEAN stack initialization
1 parent 7f06d75 commit 44fab03

File tree

205 files changed

+3816
-22380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+3816
-22380
lines changed

.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "public/lib"
3+
}

.csslintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"adjoining-classes": false,
3+
"box-model": false,
4+
"box-sizing": false,
5+
"floats": false,
6+
"font-sizes": false,
7+
"important": false,
8+
"known-properties": false,
9+
"overqualified-elements": false,
10+
"qualified-headings": false,
11+
"regex-selectors": false,
12+
"unique-headings": false,
13+
"universal-selector": false,
14+
"unqualified-attributes": false
15+
}

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# Howto with your editor:
4+
# Sublime: https://github.com/sindresorhus/editorconfig-sublime
5+
6+
# top-most EditorConfig file
7+
root = true
8+
9+
# Unix-style newlines with a newline ending every file
10+
[**]
11+
end_of_line = lf
12+
insert_final_newline = true
13+
14+
# Standard at: https://github.com/felixge/node-style-guide
15+
[**.js, **.json]
16+
trim_trailing_whitespace = true
17+
indent_style = tab
18+
quote_type = single
19+
curly_bracket_next_line = false
20+
spaces_around_operators = true
21+
space_after_control_statements = true
22+
space_after_anonymous_functions = false
23+
spaces_in_brackets = false
24+
25+
# No Standard. Please document a standard if different from .js
26+
[**.yml, **.html, **.css]
27+
trim_trailing_whitespace = true
28+
indent_style = tab
29+
30+
# No standard. Please document a standard if different from .js
31+
[**.md]
32+
indent_style = tab
33+
34+
# Standard at:
35+
[Makefile]
36+
indent_style = tab

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
.nodemonignore
3+
.sass-cache/
4+
npm-debug.log
5+
node_modules/
6+
public/dist
7+
public/lib
8+
app/tests/coverage/
9+
.bower-*/
10+
.idea/

.jshintrc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
3+
"browser": true, // Standard browser globals e.g. `window`, `document`.
4+
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
5+
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
6+
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
7+
"curly": false, // Require {} for every new block or scope.
8+
"eqeqeq": true, // Require triple equals i.e. `===`.
9+
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
10+
"latedef": true, // Prohibit variable use before definition.
11+
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
12+
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
13+
"quotmark": "single", // Define quotes to string values.
14+
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
15+
"undef": true, // Require all non-global variables be declared before they are used.
16+
"unused": false, // Warn unused variables.
17+
"strict": true, // Require `use strict` pragma in every file.
18+
"trailing": true, // Prohibit trailing whitespaces.
19+
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces
20+
"globals": { // Globals variables.
21+
"jasmine": true,
22+
"angular": true,
23+
"ApplicationConfiguration": true
24+
},
25+
"predef": [ // Extra globals.
26+
"define",
27+
"require",
28+
"exports",
29+
"module",
30+
"describe",
31+
"before",
32+
"beforeEach",
33+
"after",
34+
"afterEach",
35+
"it",
36+
"inject",
37+
"expect"
38+
],
39+
"indent": 4, // Specify indentation spacing
40+
"devel": true, // Allow development statements e.g. `console.log();`.
41+
"noempty": true // Prohibit use of empty blocks.
42+
}

.slugignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/app/tests

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"
4+
env:
5+
- NODE_ENV=travis
6+
services:
7+
- mongodb

Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM dockerfile/nodejs
2+
3+
MAINTAINER Matthias Luebken, [email protected]
4+
5+
WORKDIR /home/mean
6+
7+
# Install Mean.JS Prerequisites
8+
RUN npm install -g grunt-cli
9+
RUN npm install -g bower
10+
11+
# Install Mean.JS packages
12+
ADD package.json /home/mean/package.json
13+
RUN npm install
14+
15+
# Manually trigger bower. Why doesnt this work via npm install?
16+
ADD .bowerrc /home/mean/.bowerrc
17+
ADD bower.json /home/mean/bower.json
18+
RUN bower install --config.interactive=false --allow-root
19+
20+
# Make everything available for start
21+
ADD . /home/mean
22+
23+
# currently only works for development
24+
ENV NODE_ENV development
25+
26+
# Port 3000 for server
27+
# Port 35729 for livereload
28+
EXPOSE 3000 35729
29+
CMD ["grunt"]

LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)