-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
41 changed files
with
6,437 additions
and
508 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": "public/bower" | ||
} |
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,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 |
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 @@ | ||
* text=auto |
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 |
---|---|---|
@@ -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 |
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 @@ | ||
{ | ||
"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 | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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" | ||
} | ||
} |
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 |
---|---|---|
@@ -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']); | ||
|
||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{"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}}} |
Oops, something went wrong.