-
-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1e531a9
Showing
41 changed files
with
1,602 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "app/bower_components" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.js] | ||
indent_size = 2 | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{package.json,bower.json,.travis.yml}] | ||
indent_size = 2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Automatically normalize line endings for all text-based files | ||
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion | ||
* text=auto | ||
|
||
# For the following file types, normalize line endings to LF on | ||
# checkin and prevent conversion to CRLF when they are checked out | ||
# (this is required in order to prevent newline related issues like, | ||
# for example, after the build script is run) | ||
.* text eol=lf | ||
*.css text eol=lf | ||
*.html text eol=lf | ||
*.js text eol=lf | ||
*.json text eol=lf | ||
*.md text eol=lf | ||
*.sh text eol=lf | ||
*.txt text eol=lf | ||
*.xml text eol=lf | ||
|
||
# Exclude the `.htaccess` file from GitHub's language statistics | ||
# https://github.com/github/linguist#using-gitattributes | ||
dist/.htaccess linguist-vendored |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
node_modules | ||
dist | ||
www | ||
platforms | ||
release | ||
.tmp | ||
app/styles/**/*.css | ||
app/styles/**/*.css.map | ||
.sass-cache | ||
bower_components | ||
app/bower_components | ||
*.log |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"requireCurlyBraces": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"try", | ||
"catch" | ||
], | ||
"requireOperatorBeforeLineBreak": true, | ||
"requireCamelCaseOrUpperCaseIdentifiers": { | ||
"allowedPrefixes": [ | ||
"opt_" | ||
], | ||
"allExcept": [ | ||
"var_args" | ||
] | ||
}, | ||
"maximumLineLength": false, | ||
"validateIndentation": 2, | ||
"validateQuoteMarks": "'", | ||
"disallowMultipleLineStrings": true, | ||
"disallowMixedSpacesAndTabs": true, | ||
"disallowTrailingWhitespace": true, | ||
"disallowSpaceAfterPrefixUnaryOperators": true, | ||
"disallowMultipleVarDecl": true, | ||
"disallowKeywordsOnNewLine": [ | ||
"else" | ||
], | ||
"requireSpaceAfterKeywords": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"switch", | ||
"return", | ||
"try", | ||
"catch" | ||
], | ||
"requireSpaceBeforeBinaryOperators": [ | ||
"=", | ||
"+=", | ||
"-=", | ||
"*=", | ||
"/=", | ||
"%=", | ||
"<<=", | ||
">>=", | ||
">>>=", | ||
"&=", | ||
"|=", | ||
"^=", | ||
"+=", | ||
"+", | ||
"-", | ||
"*", | ||
"/", | ||
"%", | ||
"<<", | ||
">>", | ||
">>>", | ||
"&", | ||
"|", | ||
"^", | ||
"&&", | ||
"||", | ||
"===", | ||
"==", | ||
">=", | ||
"<=", | ||
"<", | ||
">", | ||
"!=", | ||
"!==" | ||
], | ||
"requireSpaceAfterBinaryOperators": true, | ||
"requireSpacesInConditionalExpression": true, | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireSpacesInForStatement": true, | ||
"requireLineFeedAtFileEnd": true, | ||
"requireSpacesInFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInsideObjectBrackets": "all", | ||
"disallowSpacesInsideArrayBrackets": "all", | ||
"disallowSpacesInsideParentheses": true, | ||
"disallowMultipleLineBreaks": false, | ||
"disallowNewlineBeforeBlockStatements": true, | ||
"disallowKeywords": [ | ||
"with" | ||
], | ||
"disallowSpacesInFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInFunctionDeclaration": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInCallExpression": true, | ||
"disallowSpaceAfterObjectKeys": true, | ||
"requireSpaceBeforeObjectValues": true, | ||
"requireCapitalizedConstructors": true, | ||
"requireDotNotation": true, | ||
"requireSemicolons": true, | ||
"validateParameterSeparator": ", ", | ||
"jsDoc": { | ||
"checkParamNames": true, | ||
"requireParamTypes": true, | ||
"checkRedundantParams": true, | ||
"checkReturnTypes": true, | ||
"checkRedundantReturns": true, | ||
"requireReturnTypes": true, | ||
"checkTypes": true, | ||
"checkRedundantAccess": true | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"node": true, | ||
"browser": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"indent": 4, | ||
"latedef": "nofunc", | ||
"noarg": true, | ||
"quotmark": "single", | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"globals": { | ||
"angular": false, | ||
"browser": false, | ||
"jasmine": false, | ||
"describe": false, | ||
"xdescribe": false, | ||
"before": false, | ||
"beforeEach": false, | ||
"after": false, | ||
"afterEach": false, | ||
"it": false, | ||
"xit": false, | ||
"it": false, | ||
"inject": false, | ||
"expect": false, | ||
"spyOn": false | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
before_script: | ||
- 'npm install -g bower grunt-cli' | ||
- 'bower install' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"generator-moda": { | ||
"testSuffix": ".spec", | ||
"testPassOnDefault": true, | ||
"alwaysSkipDialog": false, | ||
"stylePrefix": "_", | ||
"editorCommand": "idea", | ||
"uiRouter": true, | ||
"pathOutputStyle": "dasherize", | ||
"routesFile": "app/scripts/routes.js", | ||
"fileExt": { | ||
"script": ".js", | ||
"tpl": ".html", | ||
"style": ".scss" | ||
}, | ||
"dirs": { | ||
"app": "app", | ||
"appModules": "scripts", | ||
"globalComponents": "main", | ||
"routes": "routes" | ||
}, | ||
"subGenerators": { | ||
"directive": { | ||
"suffix": "-d", | ||
"globalDir": "", | ||
"createDirectory": true | ||
}, | ||
"controller": { | ||
"suffix": "-c", | ||
"nameSuffix": "Ctrl", | ||
"globalDir": "", | ||
"createDirectory": true | ||
}, | ||
"component": { | ||
"suffix": "-cp", | ||
"globalDir": "", | ||
"createDirectory": true | ||
}, | ||
"service": { | ||
"suffix": "-s", | ||
"globalDir": "main/global-services" | ||
}, | ||
"factory": { | ||
"suffix": "-f", | ||
"globalDir": "main/global-services" | ||
}, | ||
"filter": { | ||
"suffix": "-filter", | ||
"globalDir": "main/global-filters" | ||
}, | ||
"provider": { | ||
"suffix": "-p", | ||
"globalDir": "main/global-services" | ||
}, | ||
"decorator": { | ||
"suffix": "-decorator", | ||
"nameSuffix": "Decorator", | ||
"globalDir": "main/global-services" | ||
}, | ||
"mod": { | ||
"prefix": "_", | ||
"createDirectory": true | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# superProductvity | ||
|
||
This project was generated with [yo angular modular generator](https://github.com/johannesjo/generator-modular-angular) | ||
version 1.2.4. | ||
|
||
## Build & development | ||
|
||
Run `gulp` for development, `gulp build` for building and `gulp buildCordova` for building the hybrid-app. | ||
|
||
## Testing | ||
|
||
Unit tests are automatically run with the default task. End-to-End tests are run via `gulp e2e`. | ||
|
||
## The gulp tasks | ||
As per default the following tasks are available at your convenience: | ||
|
||
* `gulp`: The development task. Runs all the injectors on file-change, file-creation or file-deletion. Unit-tests are run in parallel, as well as the sass-compilation. | ||
* `gulp injectAll`: Runs all the injectors once. | ||
* `gulp build`: Minifies your JavaScript via ng-annotate, your css, your images and your html files and copies everything to the www-folder. | ||
* `gulp test`: Runs your unit tests with the keep-alive option. | ||
* `gulp testSingle`: Runs your unit tests once. | ||
* `gulp e2e`: Runs your end to end tests once. | ||
|
||
The mobile tasks require a little preparation described in the next section. | ||
|
||
* `gulp cordovaDev`: Symlinks your app-folder to www and runs the emulator for easy live development. | ||
* `gulp cordovaRun`: Symlinks your app-folder to www and runs it on your device if connected. | ||
|
||
Of course there are also all the [standard cordova commands](https://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html) available as well. If you want to build a release run: | ||
``` | ||
gulp build | ||
cordova build android --release | ||
``` | ||
|
||
For all cordova related commands there is an optional platform parameter you can use to specify the platform for the cordova task. E.g. `gulp cordovaDev --platform=android` to run the android emulator. Alternatively you can edit the config.js to change the default platform. | ||
|
||
All tasks can be edited freely and can be found in the /tasks folder. | ||
|
||
## Setting up the hybrid build | ||
Compiling your app to a hybrid app requires a little bit of configuration and you need to have cordova installed. Fortunately [that is quite easy](http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface). | ||
|
||
If everything is in place, you need to add the platforms you want to build your app on. For Android you would run: | ||
``` | ||
cordova platform add android | ||
``` | ||
If you get the message `Current working directory is not a Cordova-based project` you need to create the www-folder first (e.g.: `mkdir www` from your projects root directory). | ||
|
||
After that you should build your current state via `gulp build` then you can run `gulp run` or `gulp emulate` to check out your app on your device or in the emulator. |
Oops, something went wrong.