slush-angular-basic
Advanced tools
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| /* | ||
| SETTINGS | ||
| */ | ||
| @import "_settings/**/*"; | ||
| /* | ||
| TOOLS | ||
| */ | ||
| //Mixins | ||
| @import "_tools/mixins/*"; | ||
| // Placeholders | ||
| @import "_tools/placeholders/*"; | ||
| /* | ||
| GENERIC | ||
| */ | ||
| @import "_generic/**/*"; | ||
| /* | ||
| BASE | ||
| */ | ||
| @import "_base/**/*"; | ||
| /* | ||
| OBJECTS | ||
| */ | ||
| @import "_objects/**/*"; | ||
| /* | ||
| COMPONENTS | ||
| */ | ||
| @import "_components/**/*"; |
Sorry, the diff of this file is not supported yet
| /** | ||
| * | ||
| * AppRoutes.js | ||
| * | ||
| * | ||
| * This file contens all config for app | ||
| * routes, httpProviders and others.. | ||
| * | ||
| * @dependency - $routeProvider | ||
| * @dependency - $httpProvider | ||
| * | ||
| **/ | ||
| (function() { | ||
| 'use strict'; | ||
| angular | ||
| .module('app') | ||
| .config(config); | ||
| //inject dependencies for config function | ||
| config.$inject = ['$routeProvider', '$httpProvider']; | ||
| //config function | ||
| function config($routeProvider, $httpProvider) { | ||
| $routeProvider. | ||
| when('/', { | ||
| templateUrl: 'views/index.html' | ||
| }). | ||
| otherwise({ | ||
| redirectTo: '/' | ||
| }); | ||
| } | ||
| })(); |
Sorry, the diff of this file is not supported yet
| /** | ||
| * | ||
| * AppController | ||
| * | ||
| * @dependency - $http | ||
| * | ||
| **/ | ||
| (function(){ | ||
| 'use strict' | ||
| angular | ||
| .module('app') | ||
| .controller('appController', appController); | ||
| //inject dependency | ||
| appController.$inject = [ '$http', | ||
| '$location' ]; | ||
| /** | ||
| * | ||
| * appController | ||
| * | ||
| * | ||
| * @dependency - $http, | ||
| * $location | ||
| * | ||
| **/ | ||
| function appController($http, $location) { | ||
| var vm = this; | ||
| }; // end appController | ||
| })(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| doctype html | ||
| html(lang="en" ng-app="app") | ||
| head | ||
| title slush angular basic | ||
| link(rel="stylesheet", href="assets/css/main.min.css") | ||
| body(ng-controller="appController as vm") | ||
| ng-view | ||
| |Ready for develop! | ||
| script(src="bower_components/angularjs/angular.min.js") | ||
| script(src="bower_components/angular-loader/angular-loader.min.js") | ||
| script(src="bower_components/angular-route/angular-route.min.js") | ||
| script(src="assets/js/main.min.js") |
Sorry, the diff of this file is not supported yet
| /** | ||
| * | ||
| * AppModule | ||
| * | ||
| * | ||
| * Set module app | ||
| * | ||
| * @dependency - ngRoute | ||
| * | ||
| **/ | ||
| (function() { | ||
| 'use strict'; | ||
| angular | ||
| .module('app', ['ngRoute']); | ||
| })(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| section | ||
| |Ready for develop! |
+1
-1
| { "name": "slush-angular-basic", | ||
| "version": "0.0.4", | ||
| "version": "0.0.5", | ||
| "description": "my personal template for develop angular webapp", | ||
@@ -4,0 +4,0 @@ "main": "slushfile.js", |
+2
-2
| /* | ||
| * slush-mean | ||
| * https://github.com/seu-nome/slush-mean | ||
| * https://github.com/dielduarte/slush-angular-basic | ||
| * | ||
| * Copyright (c) 2014, Seu Nome | ||
| * Copyright (c) 2014, Diel Duarte | ||
| * Licensed under the MIT license. | ||
@@ -7,0 +7,0 @@ */ |
@@ -7,3 +7,3 @@ | ||
| gulp.task('copyfont',['copyfontaweome'], function(){ | ||
| return gulp.src('./dev/app/assets/fonts/*.*') | ||
| return gulp.src('./app/assets/fonts/*.*') | ||
| .pipe(gulp.dest('./public/assets/fonts')); | ||
@@ -10,0 +10,0 @@ }); |
@@ -5,4 +5,4 @@ var gulp = require('gulp'); | ||
| gulp.task('copyimage',function () { | ||
| return gulp.src('./dev/app/assets/img/*.*') | ||
| return gulp.src('./app/assets/img/*.*') | ||
| .pipe(gulp.dest('./public/assets/img')); | ||
| }); |
@@ -9,3 +9,3 @@ | ||
| gulp.src('./dev/app/index.jade') | ||
| gulp.src('./app/index.jade') | ||
| .pipe(jade({pretty: true})) | ||
@@ -12,0 +12,0 @@ .pipe(minifyHTML(opts)) |
@@ -13,3 +13,3 @@ var gulp = require('gulp'), | ||
| gulp.src('./dev/app/assets/scss/main.scss') | ||
| gulp.src('./app/assets/scss/main.scss') | ||
| .pipe(cssGlobbing({ extensions: ['.css', '.scss'] })) | ||
@@ -16,0 +16,0 @@ .pipe(sass()) |
@@ -9,5 +9,5 @@ | ||
| gulp.task('imagemin',function () { | ||
| return gulp.src('./dev/app/assets/img/*.png') | ||
| return gulp.src('./app/assets/img/*.png') | ||
| .pipe(imagemin()) | ||
| .pipe(gulp.dest('./public/assets/img')); | ||
| }); |
@@ -12,3 +12,3 @@ var gulp = require('gulp'), | ||
| gulp.src('./dev/app/views/**/*.jade') | ||
| gulp.src('./app/views/**/*.jade') | ||
| .pipe(jade({pretty: true})) | ||
@@ -15,0 +15,0 @@ .pipe(minifyHTML(opts)) |
@@ -11,8 +11,8 @@ | ||
| return gulp.src([ | ||
| './dev/app/modules/**/*.js', | ||
| './dev/app/config/**/*.js', | ||
| './dev/app/directives/**/*.js', | ||
| './dev/app/services/**/*.js', | ||
| './dev/app/factorys/**/*.js', | ||
| './dev/app/controllers/**/*.js']) | ||
| './app/modules/**/*.js', | ||
| './app/config/**/*.js', | ||
| './app/directives/**/*.js', | ||
| './app/services/**/*.js', | ||
| './app/factorys/**/*.js', | ||
| './app/controllers/**/*.js']) | ||
| .pipe(concat('main.js')) | ||
@@ -19,0 +19,0 @@ .pipe(ngAnnotate()) |
| var gulp = require('gulp'); | ||
| gulp.task('watch',function(){ | ||
| gulp.watch('dev/app/**/*.js', ['js']); | ||
| gulp.watch('dev/app/assets/scss/**/*.scss', ['css']); | ||
| gulp.watch('dev/app/views/**/*.jade', ['jade']); | ||
| gulp.watch('dev/app/index.jade', ['copyindex']) | ||
| gulp.watch('app/**/*.js', ['js']); | ||
| gulp.watch('app/assets/scss/**/*.scss', ['css']); | ||
| gulp.watch('app/views/**/*.jade', ['jade']); | ||
| gulp.watch('app/index.jade', ['copyindex']) | ||
| }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| /* | ||
| SETTINGS | ||
| */ | ||
| @import "_settings/**/*"; | ||
| /* | ||
| TOOLS | ||
| */ | ||
| //Mixins | ||
| @import "_tools/mixins/*"; | ||
| // Placeholders | ||
| @import "_tools/placeholders/*"; | ||
| /* | ||
| GENERIC | ||
| */ | ||
| @import "_generic/**/*"; | ||
| /* | ||
| BASE | ||
| */ | ||
| @import "_base/**/*"; | ||
| /* | ||
| OBJECTS | ||
| */ | ||
| @import "_objects/**/*"; | ||
| /* | ||
| COMPONENTS | ||
| */ | ||
| @import "_components/**/*"; |
Sorry, the diff of this file is not supported yet
| /** | ||
| * | ||
| * AppRoutes.js | ||
| * | ||
| * | ||
| * This file contens all config for app | ||
| * routes, httpProviders and others.. | ||
| * | ||
| * @dependency - $routeProvider | ||
| * @dependency - $httpProvider | ||
| * | ||
| **/ | ||
| (function() { | ||
| 'use strict'; | ||
| angular | ||
| .module('app') | ||
| .config(config); | ||
| //inject dependencies for config function | ||
| config.$inject = ['$routeProvider', '$httpProvider']; | ||
| //config function | ||
| function config($routeProvider, $httpProvider) { | ||
| $routeProvider. | ||
| when('/', { | ||
| templateUrl: 'views/index.html' | ||
| }). | ||
| otherwise({ | ||
| redirectTo: '/' | ||
| }); | ||
| } | ||
| })(); |
Sorry, the diff of this file is not supported yet
| /** | ||
| * | ||
| * AppController | ||
| * | ||
| * @dependency - $http | ||
| * | ||
| **/ | ||
| (function(){ | ||
| 'use strict' | ||
| angular | ||
| .module('app') | ||
| .controller('appController', appController); | ||
| //inject dependency | ||
| appController.$inject = [ '$http', | ||
| '$location' ]; | ||
| /** | ||
| * | ||
| * appController | ||
| * | ||
| * | ||
| * @dependency - $http, | ||
| * $location | ||
| * | ||
| **/ | ||
| function appController($http, $location) { | ||
| var vm = this; | ||
| }; // end appController | ||
| })(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| doctype html | ||
| html(lang="en" ng-app="app") | ||
| head | ||
| title slush angular basic | ||
| link(rel="stylesheet", href="assets/css/main.min.css") | ||
| body(ng-controller="appController as vm") | ||
| ng-view | ||
| |Ready for develop! | ||
| script(src="bower_components/angularjs/angular.min.js") | ||
| script(src="bower_components/angular-loader/angular-loader.min.js") | ||
| script(src="bower_components/angular-route/angular-route.min.js") | ||
| script(src="assets/js/main.min.js") |
Sorry, the diff of this file is not supported yet
| /** | ||
| * | ||
| * AppModule | ||
| * | ||
| * | ||
| * Set module app | ||
| * | ||
| * @dependency - ngRoute | ||
| * | ||
| **/ | ||
| (function() { | ||
| 'use strict'; | ||
| angular | ||
| .module('app', ['ngRoute']); | ||
| })(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| section | ||
| |Ready for develop! |
9784
-0.51%