This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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
0 parents
commit f5abf3e
Showing
87 changed files
with
39,542 additions
and
0 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,14 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
logs | ||
results | ||
|
||
npm-debug.log |
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,25 @@ | ||
grunt-init-exacttarget-hub-app | ||
============================== | ||
|
||
Create an Node.js-based ExactTarget Hub App, configured to run in Stackato | ||
|
||
NOTE | ||
========== | ||
|
||
Fuel Throttle and this associated scaffolding tool are still in Alpha development. Use at your own risk. | ||
|
||
HOW TO USE | ||
========== | ||
- `npm install -g grunt grunt-cli grunt-init` | ||
- `git clone git@github.et.local:Platform/Fuel-Throttle-Grunt-Init.git ~/.grunt-init/et-hub-app` | ||
- Test that the template is available: `grunt-init --help` (look in the templates section) | ||
- `mkdir <path/to/your/apps/><yourNewAppName>` | ||
- `cd <path/to/your/apps/yourNewAppName>` | ||
- `git init` // initialize git in the directory | ||
- `grunt-init et-hub-app` | ||
- Answer questions, and start coding your app! (or follow directions for running your app in: http://github.et.local/Platform/Fuel-Throttle-Node) | ||
<br /> | ||
<br /> | ||
**Optional Quick Start Instructions** | ||
- `npm install` --> Install all dependencies | ||
- `grunt build` --> Package the code for PaaS deployment (or running locally in optimized mode) |
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 @@ | ||
{ | ||
"app.js": "{%= main %}.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
############################# | ||
# App | ||
############################# | ||
/public-optimized | ||
optimized | ||
|
||
############################# | ||
# Node.js | ||
############################# | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
logs | ||
results | ||
|
||
# Node.js NPM Modules | ||
npm-debug.log | ||
/node_modules | ||
|
||
# Node Cluster | ||
/pids | ||
*.sock | ||
|
||
############################# | ||
# ViM | ||
############################# | ||
.*.sw[a-z] | ||
*.un~i | ||
tags | ||
Session.vim | ||
|
||
############################# | ||
# Emacs | ||
############################# | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
|
||
# Org-mode | ||
.org-id-locations | ||
*_archive | ||
|
||
############################# | ||
# TextMate | ||
############################# | ||
*.tmproj | ||
*.tmproject | ||
tmtags | ||
|
||
############################# | ||
# Visual Studio | ||
############################# | ||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build results | ||
|
||
[Dd]ebug*/ | ||
[Rr]elease/ | ||
|
||
build/ | ||
|
||
|
||
[Tt]est[Rr]esult | ||
[Bb]uild[Ll]og.* | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
|
||
*.pidb | ||
|
||
*.log | ||
*.scc | ||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
|
||
# Guidance Automation Toolkit | ||
*.gpState | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper*/ | ||
|
||
*.[Rr]e[Ss]harper | ||
|
||
# NCrunch | ||
*.ncrunch* | ||
.*crunch*.local.xml | ||
|
||
# Installshield output folder | ||
[Ee]xpress | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish | ||
|
||
# Publish Web Output | ||
*.Publish.xml | ||
|
||
# Others | ||
[Bb]in | ||
[Oo]bj | ||
sql | ||
TestResults | ||
[Tt]est[Rr]esult* | ||
*.Cache | ||
ClientBin | ||
[Ss]tyle[Cc]op.* | ||
~$* | ||
*.dbmdl | ||
|
||
*.[Pp]ublish.xml | ||
|
||
Generated_Code #added for RIA/Silverlight projects | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
|
||
# NuGet | ||
packages/ | ||
|
||
############################# | ||
# WebStorm | ||
############################# | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.iws |
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,22 @@ | ||
{ | ||
"boss": true, | ||
"browser": true, | ||
"curly": true, | ||
"devel": false, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"es5": true, | ||
"globals": { | ||
"_": true, | ||
"define": true, | ||
"require": true | ||
}, | ||
"immed": true, | ||
"jquery": true, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"node": true, | ||
"sub": true, | ||
"undef": true | ||
} |
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,128 @@ | ||
'use strict'; | ||
|
||
var path = require( 'path' ); | ||
|
||
module.exports = function( grunt ) { | ||
// load all grunt tasks | ||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
|
||
// Configuration | ||
var appPathsConfig = { | ||
src: '', | ||
dist: 'optimized', | ||
client: 'public', | ||
clientConfig: 'public/web-config', | ||
tests: 'tests' | ||
}; | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON( 'package.json' ), | ||
pathConfig: appPathsConfig, | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
all_files: [ | ||
'Gruntfile.js', | ||
'<%= pathConfig.src %>app.js', | ||
'<%= pathConfig.src %>lib/**/*.js', | ||
'<%= pathConfig.src %>config/**/*.js', | ||
'<%= pathConfig.client %>/views/**/*.js', | ||
'<%= pathConfig.client %>/data/**/*.js' | ||
] | ||
}, | ||
qunit: { | ||
files: ['tests/**/*.html'] | ||
}, | ||
requirejs: { | ||
compile: { | ||
options: { | ||
appDir: '<%= pathConfig.client %>/', | ||
baseUrl: 'vendor', | ||
dir: '<%= pathConfig.dist %>/', | ||
optimize: 'uglify2', | ||
optimizeCss: 'standard.keepLines', | ||
mainConfigFile: '<%= pathConfig.clientConfig %>/main.js', | ||
generateSourceMaps: true, | ||
preserveLicenseComments: false, | ||
paths: { | ||
config: 'empty:', | ||
router: '../web-config/router' | ||
}, | ||
modules: [ | ||
{ name: '../web-config/main' } | ||
], | ||
nodeRequire: require | ||
} | ||
} | ||
}, | ||
recess: { | ||
compile: { | ||
src: ['<%= pathConfig.client %>/less/styles.less'], | ||
dest: '<%= pathConfig.client %>/css/styles.css', | ||
options: { | ||
compile: true | ||
} | ||
}, | ||
compress: { | ||
src: ['<%= pathConfig.client %>/less/styles.less'], | ||
dest: '<%= pathConfig.dist %>/<%= pkg.version %>/css/styles.css', | ||
options: { | ||
compile: true, | ||
compress: true | ||
} | ||
} | ||
}, | ||
nodeunit: { | ||
tests: ['nodetests/*_test.js'] | ||
}, | ||
clean: { | ||
dist: ['.tmp', '<%= pathConfig.dist %>/<%= pkg.version %>*'], | ||
server: '.tmp' | ||
} | ||
}); | ||
|
||
// Register tasks | ||
grunt.registerTask( 'default', [ | ||
'jshint', | ||
'test', | ||
'build' | ||
]); | ||
|
||
grunt.registerTask('build', [ | ||
'test', | ||
'requirejs' | ||
]); | ||
|
||
|
||
grunt.registerTask( 'test', [ | ||
'clean', | ||
'jshint', | ||
'qunit', | ||
'nodeunit' | ||
]); | ||
|
||
grunt.registerTask( 'package', [ | ||
'build' | ||
]); | ||
|
||
grunt.registerTask( 'cleanDist', ['clean:dist'] ); | ||
|
||
grunt.registerTask( 'clientSideTests', [ | ||
'clean:server', | ||
'jshint', | ||
'qunit' | ||
]); | ||
|
||
grunt.registerTask( 'serverSideTests', [ | ||
'jshint', | ||
'nodeunit' | ||
]); | ||
|
||
// Debug task, don't warn about console statements | ||
grunt.registerTask( 'development', 'Development Task', function() { | ||
grunt.config( 'jshint.options.devel', true ); | ||
grunt.config( 'requirejs.compile.options.optimize', 'none' ); | ||
grunt.task.run( 'default' ); | ||
}); | ||
}; |
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,20 @@ | ||
# {%=name%} | ||
|
||
{%= description %} | ||
|
||
## Getting Started | ||
* Step 1: Example | ||
* Step 2: Example | ||
|
||
In your web page: | ||
|
||
|
||
## Documentation | ||
_(Coming soon)_ | ||
|
||
## Examples | ||
_(Coming soon)_ | ||
|
||
## Release History | ||
_(Nothing yet)_ | ||
|
Oops, something went wrong.