Skip to content

Commit

Permalink
build/new: add Gruntfile, package.json for basic compilation + testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
issa-tseng committed Jan 10, 2014
1 parent 04ad2ef commit 4ec0479
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = (grunt) ->

# build config
grunt.initConfig(
clean:
all:
src: 'lib/**/*.js'

livescript:
all:
expand: true
cwd: 'src/'
src: '**/*.ls'
dest: 'lib'
ext: '.js'

simplemocha:
options:
ui: 'tdd'
reporter: 'spec'

all:
src: 'test/**/*.ls'

)

# load plugins
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-livescript')

grunt.loadNpmTasks('grunt-simple-mocha')


# tasks
grunt.registerTask('default', [ 'clean:all', 'livescript:all' ])
grunt.registerTask('test', [ 'default', 'simplemocha:all' ])

26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "speedtree",
"description": "an abstract tree visualization library.",
"version": "0.1.0",
"author": "Clint Tseng <[email protected]>",
"homepage": "https://github.com/clint-tseng/speedtree",
"repository": {
"type": "git",
"url": "git://github.com/clint-tseng/speedtree.git"
},
"keywords": [ "tree", "render", "visualize", "d3", "webgl" ],
"dependencies": {
"gl-matrix": "~2.0.0",
"prelude-ls": "~1.0.3"
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-livescript": "~0.5.1",

"grunt-simple-mocha": "~0.4.0",
"expect.js": "0.2.0"
}
}

0 comments on commit 4ec0479

Please sign in to comment.