Skip to content

Commit d0b2a6a

Browse files
committed
Initial commit
0 parents  commit d0b2a6a

File tree

174 files changed

+12294
-0
lines changed

Some content is hidden

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

174 files changed

+12294
-0
lines changed

.bluemix/pipeline.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
stages:
3+
- name: Build
4+
inputs:
5+
- type: git
6+
branch: master
7+
triggers:
8+
- type: commit
9+
jobs:
10+
- name: meanjs-build
11+
type: builder
12+
artifact_dir: ./
13+
build_type: grunt
14+
script: |-
15+
#!/bin/bash
16+
# Install RVM, Ruby, and SASS
17+
# Needed when running grunt build
18+
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
19+
curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=sass
20+
# Start RVM
21+
source /home/jenkins/.rvm/scripts/rvm
22+
# Build MEANJS
23+
npm install
24+
grunt build
25+
- name: Deploy
26+
inputs:
27+
- type: job
28+
stage: Build
29+
job: meanjs-build
30+
jobs:
31+
- name: Deploy
32+
type: deployer
33+
target:
34+
url: ${CF_TARGET_URL}
35+
organization: ${CF_ORGANIZATION}
36+
space: ${CF_SPACE}
37+
application: ${CF_APP}
38+
script: |-
39+
#!/bin/bash
40+
cf push
41+
# view logs
42+
#cf logs "${CF_APP}" --recent

.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+
}

.cfignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# List of files and directories to ignore when deploying to Cloud Foundry
2+
.DS_Store
3+
.nodemonignore
4+
.sass-cache/
5+
npm-debug.log
6+
node_modules/
7+
public/lib
8+
app/tests/coverage/
9+
.bower-*/
10+
.idea/

.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: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# Howto with your editor: http://editorconfig.org/#download
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 = space
18+
indent_size = 2
19+
quote_type = single
20+
curly_bracket_next_line = false
21+
spaces_around_operators = true
22+
space_after_control_statements = true
23+
space_after_anonymous_functions = true
24+
spaces_in_brackets = false
25+
26+
# No Standard. Please document a standard if different from .js
27+
[**.yml, **.css]
28+
trim_trailing_whitespace = true
29+
indent_style = tab
30+
31+
[**.html]
32+
trim_trailing_whitespace = true
33+
indent_style = space
34+
indent_size = 2
35+
36+
# No standard. Please document a standard if different from .js
37+
[**.md]
38+
indent_style = tab
39+
40+
# Standard at:
41+
[Makefile]
42+
indent_style = tab
43+
44+
# The indentation in package.json will always need to be 2 spaces
45+
# https://github.com/npm/npm/issues/4718
46+
[package.json, bower.json]
47+
indent_style = space
48+
indent_size = 2

.eslintrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
rules: {
3+
indent: [2, 2, {"SwitchCase": 1}],
4+
no-multi-spaces: 2,
5+
no-underscore-dangle: 0,
6+
no-use-before-define: [1, "nofunc"],
7+
no-unused-expressions: 0,
8+
no-empty-class: 0,
9+
object-curly-spacing: [2, "always"],
10+
quotes: [1, "single"],
11+
space-in-parens: [2, "never"]
12+
},
13+
env: {
14+
node: true
15+
},
16+
globals: {
17+
angular: true,
18+
$: true,
19+
jQuery: true,
20+
moment: true,
21+
window: true,
22+
document: true,
23+
Modernizr: true,
24+
__TESTING__: true,
25+
beforeEach: true,
26+
expect: true,
27+
describe: true,
28+
it: true,
29+
element: true,
30+
by: true,
31+
browser: true,
32+
inject: true,
33+
register: true,
34+
sinon: true,
35+
_: false
36+
}
37+
}

.gitignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# OS
2+
# ===========
3+
.DS_Store
4+
ehthumbs.db
5+
Icon?
6+
Thumbs.db
7+
8+
# Node and related ecosystem
9+
# ==========================
10+
.nodemonignore
11+
.sass-cache/
12+
node_modules/
13+
public/lib/
14+
app/tests/coverage/
15+
.bower-*/
16+
.idea/
17+
coverage/
18+
19+
# MEAN.js app and assets
20+
# ======================
21+
public/dist/
22+
uploads
23+
modules/users/client/img/profile/uploads
24+
config/env/local.js
25+
*.pem
26+
27+
# Ignoring MEAN.JS's gh-pages branch for documenation
28+
_site/
29+
30+
# General
31+
# =======
32+
*.log
33+
*.csv
34+
*.dat
35+
*.out
36+
*.pid
37+
*.gz
38+
*.tmp
39+
*.bak
40+
*.swp
41+
logs/
42+
build/
43+
44+
# Sublime editor
45+
# ==============
46+
.sublime-project
47+
*.sublime-project
48+
*.sublime-workspace
49+
50+
# Eclipse project files
51+
# =====================
52+
.project
53+
.settings/
54+
.*.md.html
55+
.metadata
56+
*~.nib
57+
local.properties
58+
59+
# IntelliJ
60+
# ========
61+
*.iml
62+
63+
# Cloud9 IDE
64+
# =========
65+
.c9/
66+
data/
67+
mongod
68+
69+
# Visual Studio
70+
# =========
71+
*.suo
72+
*.ntvs*
73+
*.njsproj
74+
*.sln

.jshintrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
3+
"mocha": true, // Enable globals available when code is running inside of the Mocha tests.
4+
"jasmine": true, // Enable globals available when code is running inside of the Jasmine tests.
5+
"browser": true, // Standard browser globals e.g. `window`, `document`.
6+
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
7+
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
8+
"curly": false, // Require {} for every new block or scope.
9+
"eqeqeq": true, // Require triple equals i.e. `===`.
10+
"latedef": "nofunc", // Prohibit variable use before definition.
11+
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
12+
"undef": true, // Require all non-global variables be declared before they are used.
13+
"unused": false, // Warn unused variables.
14+
"strict": true, // Require `use strict` pragma in every file.
15+
"globals": { // Globals variables.
16+
"angular": true,
17+
"io": true,
18+
"ApplicationConfiguration": true
19+
},
20+
"predef": [ // Extra globals.
21+
"inject",
22+
"by",
23+
"browser",
24+
"element"
25+
],
26+
"devel": true // Allow development statements e.g. `console.log();`.
27+
}

.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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
language: node_js
2+
sudo: false
3+
node_js:
4+
- 0.10
5+
- 0.12
6+
- 4
7+
- 5
8+
# NodeJS v4 requires gcc 4.8
9+
env:
10+
- NODE_ENV=travis CXX="g++-4.8" CC="gcc-4.8"
11+
matrix:
12+
allow_failures:
13+
- node_js: 5
14+
services:
15+
- mongodb
16+
# gcc 4.8 requires ubuntu-toolchain-r-test
17+
addons:
18+
apt:
19+
sources:
20+
- ubuntu-toolchain-r-test
21+
packages:
22+
- g++-4.8
23+
- gcc-4.8
24+
- clang
25+
before_install:
26+
- gem update --system
27+
- gem install sass --version "=3.3.7"
28+
- npm i nsp -g
29+
- npm install protractor
30+
- "export DISPLAY=:99.0"
31+
- "sh -e /etc/init.d/xvfb start"
32+
- 'node_modules/protractor/bin/webdriver-manager update --standalone --firefox'
33+
- 'node_modules/protractor/bin/webdriver-manager start 2>&1 &'
34+
- sleep 3
35+
after_script:
36+
- nsp audit-package
37+
- grunt coverage
38+
notifications:
39+
webhooks:
40+
urls:
41+
- $GITTER_IM_URL
42+
on_success: change # options: [always|never|change] default: always
43+
on_failure: always # options: [always|never|change] default: always
44+
on_start: never # options: [always|never|change] default: always

0 commit comments

Comments
 (0)