Skip to content

Commit

Permalink
Project skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhooper committed Nov 27, 2015
0 parents commit 6d8ef3b
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
18 changes: 18 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
slice: {
src: 'src/*.js',
options: {
specs: 'src/*test/*.js',
vendor: 'node_modules/three.js/build/three.js'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-jasmine');
};
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "threejs-slice-geometry",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jasmine": "^0.9.2"
},
"dependencies": {
"three.js": "^0.73.0"
}
}
1 change: 1 addition & 0 deletions src/slice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
THREE.slice = 'foo'
7 changes: 7 additions & 0 deletions src/test/slice.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe("Slice", function() {

it("adds a slice method to THREE", function() {
expect(THREE.slice).not.toBe(undefined);
});

});

0 comments on commit 6d8ef3b

Please sign in to comment.