Skip to content

Commit

Permalink
ruby -> lineman
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Jul 5, 2013
1 parent 4805954 commit beae4f7
Show file tree
Hide file tree
Showing 25 changed files with 438 additions and 669 deletions.
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
*.swp
.jhw-cache
.DS_Store

#ignore node_modules, as the node project is not "deployed" per se: http://www.mikealrogers.com/posts/nodemodules-in-git.html
/node_modules

/dist
/generated

.sass-cache
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store

#ignore node_modules, as the node project is not "deployed" per se: http://www.mikealrogers.com/posts/nodemodules-in-git.html
/node_modules

/dist
/generated

.sass-cache
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
language: ruby
rvm:
- 1.9.2

before_script:
- "npm install -g coffee-script"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
language: node_js
node_js:
- 0.10
script: "lineman spec-ci"
8 changes: 0 additions & 8 deletions Gemfile

This file was deleted.

69 changes: 0 additions & 69 deletions Gemfile.lock

This file was deleted.

4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*global module:false*/
module.exports = function(grunt) {
require(process.env['LINEMAN_MAIN']).config.grunt.run(grunt);
};
8 changes: 0 additions & 8 deletions Guardfile

This file was deleted.

20 changes: 0 additions & 20 deletions LICENSE.txt

This file was deleted.

13 changes: 0 additions & 13 deletions Rakefile

This file was deleted.

Empty file added app/js/.gitkeep
Empty file.
7 changes: 1 addition & 6 deletions src/jasmine-fixture.coffee → app/js/jasmine-fixture.coffee
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
###
jasmine-fixture @@VERSION@@
Makes injecting HTML snippets into the DOM easy & clean!
site: https://github.com/searls/jasmine-fixture
###
(($) ->
root = @

Expand Down Expand Up @@ -362,4 +357,4 @@ createHTMLBlock = ( ->
regData = /&([\w$]+)(=([\w$]+))?/i

createHTMLBlock
)()
)()
46 changes: 46 additions & 0 deletions config/application.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Exports an object that defines
# all of the configuration needed by the projects'
# depended-on grunt tasks.
#
# You can familiarize yourself with all of Lineman's defaults by checking out the parent file:
# https://github.com/testdouble/lineman/blob/master/config/application.coffee
#

# lineman-lib-template config options:

includeVendorInDistribution = false #set to true if you want your distribution to contain JS files in vendor/js

lineman = require(process.env["LINEMAN_MAIN"])
grunt = lineman.grunt
_ = grunt.util._
application = lineman.config.extend "application",

meta:
banner: """
/* <%= pkg.name %> - <%= pkg.version %>
* <%= pkg.description || pkg.description %>
* <%= pkg.homepage %>
*/
"""

removeTasks:
common: ["less", "handlebars", "jst", "images:dev", "webfonts:dev", "pages:dev"]
dev: ["server"]
dist: ["cssmin", "images:dist", "webfonts:dist", "pages:dist"]

concat:
uncompressedDist:
options:
banner: "<%= meta.banner %>"
src: _([
("<%= files.js.vendor %>" if includeVendorInDistribution),
"<%= files.coffee.generated %>",
"<%= files.js.app %>"
]).compact()
dest: "<%= files.js.uncompressedDist %>"

application.uglify.js.files = _({}).tap (config) ->
config["dist/#{grunt.file.readJSON('package.json').name}.min.js"] = "<%= files.js.uncompressedDist %>"

module.exports = application
29 changes: 29 additions & 0 deletions config/files.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Exports an object that defines
# all of the paths & globs that the project
# is concerned with.
#
# The "configure" task will require this file and
# then re-initialize the grunt config such that
# directives like <config:files.js.app> will work
# regardless of the point you're at in the build
# lifecycle.
#
# To see the default definitions for all of Lineman's file paths and globs, look at:
# https://github.com/testdouble/lineman/blob/master/config/files.coffee
#

lineman = require(process.env["LINEMAN_MAIN"])
grunt = lineman.grunt

module.exports = lineman.config.extend "files",
js:
uncompressedDist: "dist/#{grunt.file.readJSON('package.json').name}.js"
spec: [
"spec/**/*.js",
"!spec/prereq/**"
]
coffee:
spec: [
"spec/**/*.coffee",
"!spec/prereq/**"
]
10 changes: 10 additions & 0 deletions config/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"framework" : "jasmine",
"launch_in_dev" : ["Chrome"],
"launch_in_ci" : ["PhantomJS"],
"src_files" : [
"spec/prereq/**/*.js",
"generated/js/app.js",
"generated/js/spec.js"
]
}
Loading

0 comments on commit beae4f7

Please sign in to comment.