Skip to content

Commit

Permalink
reset to a yo jabl project
Browse files Browse the repository at this point in the history
  • Loading branch information
gsemet committed Feb 14, 2014
1 parent b8bf0cf commit 3b39dd8
Show file tree
Hide file tree
Showing 41 changed files with 6,437 additions and 508 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "public/bower"
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
24 changes: 21 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/bower_components
/node_modules
/public
._*
.~lock.*
.buildpath
.DS_Store
.idea
.project
.settings

# Ignore node stuff
node_modules/
npm-debug.log
libpeerconnection.log

# OS-specific
.DS_Store

# Bower components
public/bower/

# Node modules
node_modules
21 changes: 21 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"white": true
}
339 changes: 0 additions & 339 deletions LICENSE

This file was deleted.

2 changes: 0 additions & 2 deletions README.rst

This file was deleted.

Empty file removed app/assets/jade/index.jade
Empty file.
Empty file removed app/assets/javascript/backend.js
Empty file.
Empty file removed app/assets/javascript/frontend.js
Empty file.
3 changes: 0 additions & 3 deletions app/assets/stylesheets/backend.less

This file was deleted.

Empty file removed app/assets/stylesheets/base.less
Empty file.
Empty file removed app/assets/stylesheets/fonts.less
Empty file.
3 changes: 0 additions & 3 deletions app/assets/stylesheets/frontend.less

This file was deleted.

15 changes: 0 additions & 15 deletions app/assets/stylesheets/variables.less

This file was deleted.

14 changes: 10 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "guake-website",
"dependencies": {
"bootstrap": "~3.1.0"
}
"name": "guake-terminal",
"version": "0.0.0",
"dependencies": {
"angular": "~1.0.7",
"bootstrap": "~3.0.1"
},
"devDependencies": {
"angular-mocks": "~1.0.7",
"angular-scenario": "~1.0.7"
}
}
199 changes: 97 additions & 102 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,119 +1,114 @@
module.exports = function(grunt) {
module.exports = function (grunt) {

//Initializing the configuration object
grunt.initConfig({

// Task configuration
less: {
development: {
jablConfig: grunt.file.readJSON('jabl.json'),
jade: {
compile: {
options: {
data: {
debug: false
}
},
files: [
{
expand: true, // Enable dynamic expansion.
cwd: 'src/jade/public', // Src matches are relative to this path.
src: ['**/*.jade'], // Actual pattern(s) to match.
dest: 'public/', // Destination path prefix.
ext: '.html' // Dest filepaths will have this extension.
}
]
}
},
concat: {
options: {
compress: true, //minifying the result
separator: ''
},
files: {
//compiling frontend.less into frontend.css
"./public/assets/stylesheets/frontend.css":"./app/assets/stylesheets/frontend.less",
//compiling backend.less into backend.css
"./public/assets/stylesheets/backend.css":"./app/assets/stylesheets/backend.less"
angular: {
src: [
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/<%= jablConfig.angular.appModuleName.camelized %>.prefix',
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/<%= jablConfig.angular.appModuleName.camelized %>.js',
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/controllers/**/*.js',
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/directives/**/*.js',
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/filters/**/*.js',
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/services/**/*.js',
'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/<%= jablConfig.angular.appModuleName.camelized %>.suffix'
],
dest: 'public/js/<%= jablConfig.appTitle.camelized %>.js'
}
}
},
concat: {
options: {
separator: ';',
},
js_frontend: {
src: [
'./bower_components/jquery/jquery.js',
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./app/assets/javascript/frontend.js'
],
dest: './public/assets/javascript/frontend.js',
},
js_backend: {
src: [
'./bower_components/jquery/jquery.js',
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./app/assets/javascript/backend.js'
],
dest: './public/assets/javascript/backend.js',
},
},
uglify: {
options: {
mangle: false // Use if you want the names of your functions and variables unchanged
},
frontend: {
files: {
'./public/assets/javascript/frontend.js': './public/assets/javascript/frontend.js',
}
},
backend: {
files: {
'./public/assets/javascript/backend.js': './public/assets/javascript/backend.js',
}
},
},
phpunit: {
classes: {
},
options: {
}
},
watch: {
js_frontend: {
files: [
//watched files
'./bower_components/jquery/jquery.js',
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./app/assets/javascript/frontend.js'
],
tasks: ['concat:js_frontend','uglify:frontend'], //tasks to run
options: {
livereload: true //reloads the browser
}
uglify: {
options: {
banner: '/*! <%= jablConfig.appTitle.original %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
jid: {
files: {
'public/js/<%= jablConfig.appTitle.camelized %>.min.js': ['<%= concat.angular.dest %>']
}
}
},
js_backend: {
files: [
//watched files
'./bower_components/jquery/jquery.js',
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./app/assets/javascript/backend.js'
],
tasks: ['concat:js_backend','uglify:backend'], //tasks to run
options: {
livereload: true //reloads the browser
}
jshint: {
beforeConcat: {
src: ['gruntfile.js', 'src/js/src/<%= jablConfig.angular.appModuleName.camelized %>/**/*.js']
},
afterConcat: {
src: [
'<%= concat.angular.dest %>'
]
},
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true,
angular: true
},
globalstrict: false
}
},
less: {
files: ['./app/assets/stylesheets/*.less'], //watched files
tasks: ['less'], //tasks to run
options: {
livereload: true //reloads the browser
}
jid: {
files: {
"public/css/<%= jablConfig.appTitle.camelized %>.css": "src/less/<%= jablConfig.appTitle.camelized %>.less"
}
}
},
connect: {
server:{
options: {
port: 9000,
base: 'public',
hostname: 'localhost',
keepalive: true,
livereload: true
}
}
},
tests: {
files: ['app/controllers/*.php','app/models/*.php'], //the task will run only when you save files in this location
tasks: ['phpunit']
watch: {
options: {
livereload: true
},
files: [
'Gruntfile.js',
'src/**/*'
],
tasks: ['default']
}
}
}
);
});

// Plugin loading
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-phpunit');

// Register tasks
grunt.registerTask('default', [
'uglify',
'less',
'concat'
]);
grunt.loadNpmTasks('grunt-contrib-connect');

// Task definition
grunt.registerTask('dev', ['watch']);
grunt.registerTask('default', ['jade', 'less', 'jshint:beforeConcat', 'concat', 'jshint:afterConcat', 'uglify']);
grunt.registerTask('build', ['default']);
grunt.registerTask('serve', ['connect']);
grunt.registerTask('livereload', ['default', 'watch']);

};
};
6 changes: 0 additions & 6 deletions install-dev-env.sh

This file was deleted.

1 change: 1 addition & 0 deletions jabl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"includeBootstrap":true,"includeAngular":true,"appTitle":{"original":"Guake Terminal","camelized":"guakeTerminal","dasherized":"guake-terminal","slugified":"guake-terminal","parts":["guake","terminal"]},"angular":{"appModuleName":{"original":"guakeTerminal","camelized":"guakeTerminal","dasherized":"guake-terminal","slugified":"guake-terminal","parts":["guake","terminal"]},"includeModules":{"resource":false,"cookies":false,"sanitize":false}}}
Loading

0 comments on commit 3b39dd8

Please sign in to comment.