Skip to content

Commit

Permalink
initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGefroh committed Aug 27, 2016
0 parents commit f87f563
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
app.min.js
.sass-cache
.env
npm-debug.log
bower_components
public
17 changes: 17 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(function() {
'use strict';
var webServiceBase = '{!api_host!}';

angular
.module('ttfm', [
]
)
.config(['$urlRouterProvider', '$locationProvider', function($urlRouterProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$urlRouterProvider.otherwise('/');
}])
.constant('config', {webServiceBase: webServiceBase})
.controller('ApplicationController', ['$rootScope', '$scope', '$state',function($rootScope, $scope, $state) {
var vm = this;
}]);
})();
16 changes: 16 additions & 0 deletions app/assets/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html data-ng-app="ttfm">
<head>
<base href="/">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<script type='text/javascript' src="js/app.js"></script>
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<body>
<div data-ui-view></div>
</body>
</html>
Empty file added app/scss/app.scss
Empty file.
10 changes: 10 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "ttfm",
"version": "0.0.1",
"description": "",
"dependencies": {
"angular": "~1.4.x",
"angular-ui-router": "~0.2.15",
"font-awesome": "~4.4.0"
}
}
45 changes: 45 additions & 0 deletions brunch-config.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
host = 'http://localhost:5000'
exports.config =
modules:
definition: false
wrapper: false

plugins:
assetsmanager:
copyTo:
'/': ['app/modules/**/*.html']
replace:
encoding: 'utf8'
log: true
mappings:
'api_host': host
paths: [
'public/js/app.js'
]
replacePrefix: '{!'
replaceSuffix: '!}'
sass:
options:
includePaths: [
'bower_components/bourbon/app/assets/stylesheets',
'bower_components/neat/app/assets/stylesheets'
]

files:
javascripts:
joinTo:
'js/app.js': /^bower_components|app/
order:
before: [
/^bower_components(\/|\\)jquery(\/|\\)dist(\/|\\)jquery.js$/,
/^bower_components(\/|\\)angular(\/|\\)angular.js$/,
/^app(\/|\\)modules(\/|\\)(.+)(\/|\\)(.+)-module.js$/,
/^app(\/|\\)modules(\/|\\)(.+)(\/|\\)(.+).js$/,
'app/app.js'
]
stylesheets:
defaultExtension: 'scss'
joinTo:
'css/app.css': /^(app|vendor|bower_components)/
templates:
joinTo: 'js/app.js'
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "ttfm",
"scripts": {
"IMPORTANT_DO_NOT_IGNORE": "If you remove --production, the source code will not be minified.",
"start": "./node_modules/.bin/bower install && ./node_modules/.bin/brunch build --production && node server.js"
},
"engines": {
"node": "5.2.0"
},
"dependencies": {
"angular-hint": "0.3.4",
"assetsmanager-brunch": "^1.8.1",
"auto-reload-brunch": ">= 1.0 < 1.9",
"bower": "^1.4.1",
"brunch": "2.1.1",
"clean-css-brunch": ">= 1.0 < 1.9",
"css-brunch": ">= 1.0 < 1.9",
"express": "^4.13.3",
"javascript-brunch": ">= 1.0 < 1.9",
"replace-brunch": "^1.0.0",
"sass-brunch": "^1.9.2",
"uglify-js-brunch": ">= 1.0 < 1.9"
}
}

0 comments on commit f87f563

Please sign in to comment.