forked from issa-tseng/speedtree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build/new: add Gruntfile, package.json for basic compilation + testing.
- Loading branch information
1 parent
04ad2ef
commit 4ec0479
Showing
2 changed files
with
64 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,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' ]) | ||
|
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,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" | ||
} | ||
} |