Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivramv committed May 15, 2015
0 parents commit 8913b17
Show file tree
Hide file tree
Showing 34 changed files with 570 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "./src/bower_components"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
**/bower_components/
24 changes: 24 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "gquotient-project-management",
"main": "app.js",
"version": "0.0.0",
"authors": [
"rajiv <rajivram.v@gmail.com>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"devDependencies": {
"angular": "~1.2.14",
"angular-route": "~1.2.14"
},
"dependencies": {
"angular": "~1.3.15"
}
}
11 changes: 11 additions & 0 deletions dist/app.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.src-foo {
background: white; }

.src-components-component2-foo {
background-color: red; }

.src-components-component1-foo {
background-color: red; }

.src-components-component3-foo {
background-color: red; }
1 change: 1 addition & 0 deletions dist/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Place favicon.ico in the root directory -->

<!--lib:css-->
<!--endinject-->
<!--src:css-->
<link rel="stylesheet" href="app.min.css">
<!--endinject-->
<!--lib:js-->
<script src="lib/js/angular.min.js"></script>
<!--endinject-->
<!--src:js-->
<script src="app.min.js"></script>
<!--endinject-->
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>


</body>
</html>
5 changes: 5 additions & 0 deletions dist/lib/js/angular.min.js

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
'use strict';

var gulp = require('gulp');


process.env.NODE_ENV = process.env.NODE_ENV || 'development';

gulp.task('base:compile-sass', require('./tasks/compile-sass').base);
gulp.task('components:compile-sass', require('./tasks/compile-sass').components);
gulp.task('compile-sass',['components:compile-sass','base:compile-sass']);
gulp.task('build-dist', require('./tasks/build-dist'));

// var gulp = require('gulp');
// var plugins = require("gulp-load-plugins")({lazy:false});

// gulp.task('scripts', function(){
// //combine all js files of the app
// gulp.src(['!./src/**/*_test.js','./src/**/*.js'])
// .pipe(plugins.jshint())
// .pipe(plugins.jshint.reporter('default'))
// .pipe(plugins.concat('app.js'))
// .pipe(gulp.dest('./build'));
// });

// gulp.task('templates',function(){
// //combine all template files of the app into a js file
// gulp.src(['!./src/index.html',
// './src/**/*.html'])
// .pipe(plugins.angularTemplatecache('templates.js',{standalone:true}))
// .pipe(gulp.dest('./build'));
// });

// gulp.task('css', function(){
// gulp.src('./src/**/*.css')
// .pipe(plugins.concat('app.css'))
// .pipe(gulp.dest('./build'));
// });

// gulp.task('vendorJS', function(){
// //concatenate vendor JS files
// gulp.src(['!./bower_components/**/*.min.js',
// './bower_components/**/*.js'])
// .pipe(plugins.concat('lib.js'))
// .pipe(gulp.dest('./build'));
// });

// gulp.task('vendorCSS', function(){
// //concatenate vendor CSS files
// gulp.src(['!./bower_components/**/*.min.css',
// './bower_components/**/*.css'])
// .pipe(plugins.concat('lib.css'))
// .pipe(gulp.dest('./build'));
// });

// gulp.task('copy-index', function() {
// gulp.src('./app/index.html')
// .pipe(gulp.dest('./build'));
// });

// gulp.task('watch',function(){
// gulp.watch([
// 'build/**/*.html',
// 'build/**/*.js',
// 'build/**/*.css'
// ], function(event) {
// return gulp.src(event.path)
// .pipe(plugins.connect.reload());
// });
// gulp.watch(['./app/**/*.js','!./app/**/*test.js'],['scripts']);
// gulp.watch(['!./app/index.html','./app/**/*.html'],['templates']);
// gulp.watch('./app/**/*.css',['css']);
// gulp.watch('./app/index.html',['copy-index']);

// });

// gulp.task('connect', plugins.connect.server({
// root: ['build'],
// port: 9000,
// livereload: true
// }));

// gulp.task('default',['connect','scripts','templates','css','copy-index','vendorJS','vendorCSS','watch']);
35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "gquotient-project-management",
"version": "0.1.0",
"main": "app.js",
"devDependencies": {
"del": "^1.1.1",
"gulp": "^3.8.11",
"gulp-concat": "^2.5.2",
"gulp-debug": "^2.0.1",
"gulp-filter": "^2.0.2",
"gulp-inject": "^1.2.0",
"gulp-minify-css": "^1.0.0",
"gulp-ng-annotate": "^0.5.3",
"gulp-plumber": "^1.0.0",
"gulp-rename": "^1.2.2",
"gulp-rev-all": "^0.8.18",
"gulp-sass": "^2.0.0",
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.2.0",
"gulp-watch": "^4.1.0",
"main-bower-files": "^2.5.0",
"run-sequence": "^1.1.0"
},
"dependencies": {},
"description": "Gquotient Project Management",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://rajivramv@bitbucket.org/gquotient/gquotient-project-management.git"
},
"author": "Rajiv Ram V",
"license": "MIT"
}
2 changes: 2 additions & 0 deletions src/components/component1/css/foo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.src-components-component1-foo {
background-color: red; }
3 changes: 3 additions & 0 deletions src/components/component1/js/controllers/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_components_component1_js_controllers_foo(){
return 'src_components_component1_js_controllers_foo';
}
3 changes: 3 additions & 0 deletions src/components/component1/js/directives/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_components_component1_js_directive_foo(){
return 'src_components_component1_js_directive_foo';
}
3 changes: 3 additions & 0 deletions src/components/component1/sass/foo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.src-components-component1-foo {
background-color: red;
}
2 changes: 2 additions & 0 deletions src/components/component2/css/foo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.src-components-component2-foo {
background-color: red; }
3 changes: 3 additions & 0 deletions src/components/component2/js/controllers/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_components_component2_js_controllers_foo(){
return 'src_components_component2_js_controllers_foo';
}
3 changes: 3 additions & 0 deletions src/components/component2/js/directives/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_components_component2_js_directive_foo(){
return 'src_components_component2_js_directive_foo';
}
3 changes: 3 additions & 0 deletions src/components/component2/sass/foo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.src-components-component2-foo {
background-color: red;
}
2 changes: 2 additions & 0 deletions src/components/component3/css/foo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.src-components-component3-foo {
background-color: red; }
3 changes: 3 additions & 0 deletions src/components/component3/js/controllers/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_components_component1_js_controllers_foo(){
return 'src_components_component1_js_controllers_foo';
}
3 changes: 3 additions & 0 deletions src/components/component3/js/directives/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_components_component3_js_directive_foo(){
return 'src_components_component3_js_directive_foo';
}
3 changes: 3 additions & 0 deletions src/components/component3/sass/foo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.src-components-component3-foo {
background-color: red;
}
2 changes: 2 additions & 0 deletions src/css/foo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.src-foo {
background: white; }
31 changes: 31 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Place favicon.ico in the root directory -->

<!--lib:css-->
<!--endinject-->
<!--src:css-->
<!--endinject-->
<!--lib:js-->
<!--endinject-->
<!--src:js-->
<!--endinject-->
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>


</body>
</html>
3 changes: 3 additions & 0 deletions src/js/controllers/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_js_controllers_foo(){
return 'src_js_controllers_foo';
}
3 changes: 3 additions & 0 deletions src/js/directives/foo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function src_js_directives_foo(){
return 'src_js_directives_foo';
}
3 changes: 3 additions & 0 deletions src/sass/foo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.src-foo {
background: white;
}
15 changes: 15 additions & 0 deletions tasks/build-dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var gulp = require('gulp');
// var plugins = require("gulp-load-plugins")({lazy:false});

gulp.task('dev:scripts', function(){
//combine all js files of the app
gulp.src(['!./src/**/*_test.js','./src/**/*.js'])
.pipe(plugins.jshint())
.pipe(plugins.jshint.reporter('default'))
.pipe(plugins.concat('app.js'))
.pipe(gulp.dest('./build'));
});

gulp.task('dev:clean', function (done) {
del(['dev/**', '!dev', '!dev/.git{,/**}'], done);
});
Loading

0 comments on commit 8913b17

Please sign in to comment.