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
/** | |
* ContentBox - A Modular Content Platform | |
* Copyright since 2012 by Ortus Solutions, Corp | |
* www.ortussolutions.com/products/contentbox | |
* --- | |
*/ | |
component hint="My Secrets Module Configuration"{ | |
// Module Properties | |
this.title = "MySecrets"; |
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
/** | |
Module Directives as public properties | |
this.title = "Title of the module"; | |
this.author = "Author of the module"; | |
this.webURL = "Web URL for docs purposes"; | |
this.description = "Module description"; | |
this.version = "Module Version"; | |
this.viewParentLookup = (true) [boolean] (Optional) // If true, checks for views in the parent first, then it the module.If false, then modules first, then parent. | |
this.layoutParentLookup = (true) [boolean] (Optional) // If true, checks for layouts in the parent first, then it the module.If false, then modules first, then parent. | |
this.entryPoint = "" (Optional) // If set, this is the default event (ex:forgebox:manager.index) or default route (/forgebox) the framework |
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
<cfoutput> | |
#html.doctype()# | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Custom Module Layout</title> | |
<meta name="description" content="ContentBox Application Template"> | |
<meta name="author" content="Ortus Solutions, Corp"> | |
<!---Base URL ---> | |
<base href="#getSetting( "HTMLBaseURL" )#" /> |
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
/** | |
Module Directives as public properties | |
this.title = "Title of the module"; | |
this.author = "Author of the module"; | |
this.webURL = "Web URL for docs purposes"; | |
this.description = "Module description"; | |
this.version = "Module Version"; | |
this.viewParentLookup = (true) [boolean] (Optional) // If true, checks for views in the parent first, then it the module.If false, then modules first, then parent. | |
this.layoutParentLookup = (true) [boolean] (Optional) // If true, checks for layouts in the parent first, then it the module.If false, then modules first, then parent. | |
this.entryPoint = "" (Optional) // If set, this is the default event (ex:forgebox:manager.index) or default route (/forgebox) the framework |
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 Source: http://www.meanstack.co/setting-up-jasmine-and-grunt/ | |
// Combined with https://gist.github.com/seancoyne/9b1b24dca08ed9282fc6 | |
module.exports = function (grunt) { | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('node_modules/grunt/package.json'), | |
jasmine: { |
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
#!/usr/bin/env node | |
var environmentList = ['debug','staging','prod']; | |
var fs = require("fs"); | |
var path = require("path"); | |
console.log('-----------------------------'); | |
console.log("Running hook: "+path.basename(process.env.CORDOVA_HOOK)); | |
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
#!/usr/bin/env node | |
// Original : https://blog.nraboy.com/2015/01/hooks-apache-cordova-mobile-applications/ | |
// Modified by Gavin Pickin - 05/09/15 | |
var fs = require('fs'); | |
var path = require('path'); | |
var foldersToProcess = [ | |
"js", |
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
#!/usr/bin/env node | |
var path = require('path'); | |
var Command = require('../../node_modules/jasmine/lib/command.js'); | |
var Jasmine = require('../../node_modules/jasmine/lib/jasmine.js'); | |
var thePath = path.join( path.resolve(), 'www'); | |
var jasmine = new Jasmine({ projectBaseDir: thePath }); | |
var examplesDir = path.join(__dirname, '..', 'node_modules', 'jasmine-core', 'lib', 'jasmine-core', 'example', 'node_example'); | |
var command = new Command(thePath); |
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 Source: http://www.meanstack.co/setting-up-jasmine-and-grunt/ | |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('node_modules/grunt/package.json'), | |
jasmine: { | |
all: { | |
src: ['js/*.js' ], | |
options: { | |
//'vendor': ['path/to/vendor/libs/*.js'], |
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
#!/usr/bin/env node | |
var fs = require('fs'); | |
var path = require('path'); | |
var UglifyJS = require('uglify-js'); | |
var CleanCSS = require('clean-css'); | |
var ngAnnotate = require('ng-annotate'); | |
var cssMinifier = new CleanCSS({ | |
noAdvanced: true, // disable advanced optimizations - selector & property merging, reduction, etc. | |
keepSpecialComments: 0 // remove all css comments ('*' to keep all, 1 to keep first comment only) |