diff --git a/dist/.gitignore b/dist/.gitignore deleted file mode 100644 index 6105de7..0000000 --- a/dist/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules -public/javascripts -public/stylesheets -public/img \ No newline at end of file diff --git a/dist/APPMOFUCKA.tar.gz b/dist/APPMOFUCKA.tar.gz deleted file mode 100644 index 3b7401c..0000000 Binary files a/dist/APPMOFUCKA.tar.gz and /dev/null differ diff --git a/dist/app.js b/dist/app.js deleted file mode 100644 index c94a466..0000000 --- a/dist/app.js +++ /dev/null @@ -1,4 +0,0 @@ -require('coffee-script') -server = require("./server"); -config = require("./foo"); -server.startServer(config); \ No newline at end of file diff --git a/dist/foo.json b/dist/foo.json deleted file mode 100644 index d68985f..0000000 --- a/dist/foo.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "server": { - "useDefaultServer": false, - "useReload": false, - "path": "./server.coffee", - "port": 3000, - "base": "", - "views": { - "compileWith": "jade", - "extension": "jade", - "path": "./views" - } - }, - "watch": { - "sourceDir": "./assets", - "compiledDir": "./public", - "javascriptDir": "javascripts", - "exclude": {}, - "throttle": 0, - "compiledJavascriptDir": "./public/javascripts" - }, - "isOptimize": true -} \ No newline at end of file diff --git a/dist/package.json b/dist/package.json deleted file mode 100644 index b416c35..0000000 --- a/dist/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "Mimosa-LESSCoffeeScriptHTML-BootstrapAngular", - "version": "0.0.1", - "dependencies": { - "consolidate": "~0.4.0", - "jade": "~0.26.3", - "express": "~3.0.0beta4", - "watch-connect": "~0.3.4", - "coffee-script": "1.3.3" - }, - "engine": "node >= 0.8.1" -} diff --git a/dist/server.coffee b/dist/server.coffee deleted file mode 100644 index f6c843f..0000000 --- a/dist/server.coffee +++ /dev/null @@ -1,74 +0,0 @@ -express = require 'express' -reloadOnChange = require 'watch-connect' -engines = require 'consolidate' - -exports.startServer = (config) -> - - publicPath = config.watch.compiledDir - useReload = config.server.useReload - - nextId = 0 - - people = [ - {"id": "#{nextId++}", "name": "Saasha", "age": "5"} - {"id": "#{nextId++}", "name": "Planet", "age": "7"} - ] - - isUniqueName = (name) -> - (name for person in people when person.name is name).length is 0 - - app = express() - server = app.listen config.server.port, -> - console.log "Express server listening on port %d in %s mode", config.server.port, app.settings.env - - app.configure -> - app.set 'port', config.server.port - app.set 'views', config.server.views.path - app.engine config.server.views.extension, engines[config.server.views.compileWith] - app.set 'view engine', config.server.views.extension - app.use express.favicon() - app.use express.bodyParser() - app.use express.methodOverride() - if useReload - options = - server:server - watchdir:publicPath - skipAdding:true - exclude:["almond\\.js"] - additionaldirs:["#{__dirname}/views"] - app.use reloadOnChange(options) - app.use express.compress() - app.use app.router - app.use express.static(publicPath) - - app.configure 'development', -> - app.use express.errorHandler() - - index = (useReload, optimize) -> - options = - reload: config.server.useReload - optimize: config.isOptimize ? false - cachebust: if process.env.NODE_ENV isnt "production" then "?b=#{(new Date()).getTime()}" else '' - (req, res) -> res.render 'index', options - - app.get '/', index(useReload, config.isOptimize) - - app.get '/people', (req, res) -> res.json people - - app.post '/people', (req, res) -> - name = req.body.name - message = - "title": "Duplicate!" - "message": "#{name} is a duplicate. Please enter a new name." - return res.send(message, 403) if not isUniqueName name - person = - "id": "#{nextId++}" - "name": "#{name}" - "age": "0" - people.push person - res.json person - - app.get '/people/details/:id', (req, res) -> - id = req.params.id - current = person for person in people when parseInt(person.id, 10) is parseInt(id, 10) - res.json current \ No newline at end of file diff --git a/dist/views/index.jade b/dist/views/index.jade deleted file mode 100644 index 2018b4f..0000000 --- a/dist/views/index.jade +++ /dev/null @@ -1,89 +0,0 @@ -doctype 5 -html(lang="en") - head - meta(charset='utf-8') - meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') - title Angular Demo - meta(name='description', content='') - meta(name='viewport', content='width=device-width') - - link(rel='stylesheet', href='/stylesheets/vendor/bootstrap.css' + cachebust) - link(rel='stylesheet', href='/stylesheets/styles.css' + cachebust) - - if optimize - script(src='/javascripts/main-built.js') - else - script(src='/javascripts/vendor/require.js', data-main='/javascripts/main.js') - - if reload - script(src='/socket.io/socket.io.js') - script(src='/socket-enable.js') - - body(ng-cloak='ng-cloak') - ng:view - .container - .hero-unit - h1 - | Playing with  - a(href='http://angularjs.org', target='_blank') AngularJS - p - | and also  - a(href='http://requirejs.org/', target='_blank') RequireJS - p - | and also  - a(href='https://github.com/dbashford/mimosa', target='_blank') Mimosa - p Compiles both Stylus and Less (Bootstrap) and CoffeeScript. 2 lines of config. - .row - .span8 - tabs - tab(data-tab-id='twitter', caption='Twitter') - section(ng-controller='twitter') - .alert.alert-info(ng-show='!searchTerm.length') - h4.alert-heading Heads up! - span Enter Twitter search criteria. - form.well.form-search(ng-submit='search(searchTerm)') - input.input-medium.search-query(type='text', ng-model='searchTerm', autofocus='autofocus') - button.btn(type='submit') - i.icon-search - | Search - include partials/tweets - - tab(data-tab-id='gitHub', caption='GitHub') - section(ng-controller='gitHub') - .alert.alert-info(ng-show='!searchTerm.length') - h4.alert-heading Heads up! - span Enter GitHub search criteria. - form.well.form-search(ng-submit='search(searchTerm)') - input.input-medium.search-query(type='text', ng-model='searchTerm') - button.btn(type='submit') - i.icon-search - | Search - include partials/repos - - tab(data-tab-id='people', caption='People') - .row - .span4 - section(ng-controller='people') - .alert.alert-error(ng-show='!!error') - h4.alert-heading(ng-bind='error.title') - span(ng-bind='error.message') - form.well.form-search(ng-submit='insertPerson(name)') - input.input-medium.search-query(type='text', ng-model='name') - button.btn(type='submit') - i.icon-plus - | Insert - myinput(model='name', kind='text', caption='My Caption', placeholder='Enter something here', help-text='Help me out, bro!') - include partials/people - .span4 - section(ng-controller='personDetails') - | Age: - span(ng-bind='person.result.age') - .span4 - h2 Search History - section(ng-controller='searchHistory') - form.well.form-search - input.input-medium.search-query(type='text', placeholder='Type filter...', ng-model='query') - label(ng-bind-template='Displaying: {{(searchHistory | filter:query).length}}') - ol(ng-hide='!searchHistory.length') - li(ng-repeat='item in searchHistory | filter:query | orderBy:\'timeStamp\':true', ng-bind-template='{{item.source}}/{{item.criteria}}') - diff --git a/dist/views/partials/people.jade b/dist/views/partials/people.jade deleted file mode 100644 index 13fd155..0000000 --- a/dist/views/partials/people.jade +++ /dev/null @@ -1,3 +0,0 @@ -ul(ng-hide='!people.result.length') - li.row(ng-repeat='person in people.result | orderBy:\'name\'') - a(ng-href='#/people/details/{{person.id}}', ng-bind='person.name') diff --git a/dist/views/partials/repos.jade b/dist/views/partials/repos.jade deleted file mode 100644 index 3db58d8..0000000 --- a/dist/views/partials/repos.jade +++ /dev/null @@ -1,6 +0,0 @@ -ul(ng-hide='!repos.result.data.length') - li(ng-repeat='repo in repos.result.data') - div - b(ng-bind='repo.owner.login') - a(ng-href='{{repo.url}}', ng-bind='repo.name', target='_blank') - div(ng-bind='repo.description') diff --git a/dist/views/partials/tweets.jade b/dist/views/partials/tweets.jade deleted file mode 100644 index 6ca0c44..0000000 --- a/dist/views/partials/tweets.jade +++ /dev/null @@ -1,9 +0,0 @@ -ul(ng-hide='!tweets.result.results.length') - li.row(ng-repeat='tweet in tweets.result.results') - .span1.thumbnail - img(ng-src='{{tweet.profile_image_url}}') - .span10 - div - b(ng-bind='tweet.from_user_name') - a(ng-href='https://twitter.com/{{tweet.from_user}}', ng-bind='tweet.from_user | twitterfy', target='_blank') - div(ng-bind='tweet.text')