这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/_build/*
.*.swp
/node_modules/*
/dist
8 changes: 2 additions & 6 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"preset": "crockford",
"requireMultipleVarDecl": null,
"requireVarDeclFirst": null,
"disallowQuotedKeysInObjects": null,
"validateQuoteMarks": true,
"validateIndentation": 2,
"requireCamelCaseOrUpperCaseIdentifiers": null,
"disallowDanglingUnderscores": null,
"requireBlocksOnNewline": null,
"excludeFiles": [
"src/vgl/**",
"src/util/wigglemaps.js",
"src/util/pnltri.js"
]
"requireBlocksOnNewline": null
}
2 changes: 0 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
"eqeqeq": true,
"forin": true,
"indent": 2,
"freeze": true,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": false,
"nonbsp": true,
"nonew": true,
"plusplus": true,
"quotmark": true,
Expand Down
14 changes: 2 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
language: node_js

node_js:
- "0.10"
- "0.12"

before_install:
- pushd "${HOME}"
- curl "http://www.cmake.org/files/v3.2/cmake-3.2.1-Linux-x86_64.tar.gz" | gunzip -c | tar x
- cd cmake-*/bin && export PATH="${PWD}:${PATH}"
- popd
- cmake --version
- env

script:
- npm install
- mkdir _build
- cd _build
- cmake ..
- ctest -VV -S ../cmake/travis_build.cmake || true
# - ctest -VV -S ../cmake/travis_submit.cmake
- if [ -f test_failed ] ; then false ; fi
- npm test

sudo: False
61 changes: 61 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* jshint node: true */
module.exports = function (grunt) {
'use strict';
var sources = grunt.file.readJSON('sources.json'),
src = sources.vgl.prefix,
files = sources.vgl.files
.map(function (f) {
return src + '/' + f;
});

grunt.initConfig({
jshint: {
library: {
src: files,
options: {
jshintrc: '.jshintrc'
}
},
gruntfile: {
src: ['Gruntfile.js'],
options: {
node: true
}
}
},
jscs: {
library: {
src: files
},
gruntfile: {
src: ['Gruntfile.js']
}
},
concat: {
dist: {
src: files,
dest: 'dist/vgl.js'
}
},
uglify: {
dist: {
files: {
'dist/vgl.min.js': files
},
options: {
mangle: true,
ASCIIOnly: true,
sourceMap: true
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('test', ['jshint', 'jscs']);
grunt.registerTask('default', ['concat', 'uglify']);
};
14 changes: 14 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "vgl",
"description": "VTK for the Web.",
"main": "vgl.js",
"license": "Apache-2.0",
"homepage": "https://github.com/OpenGeoscience/vgl",
"moduleType": [],
"ignore": [
"**/*",
"!/vgl.js",
"!/vgl.min.js",
"!README.md"
]
}
28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{
"name": "vgl",
"description": "VTK for the Web.",
"version": "0.1.14",
"version": "0.2.0",
"repository": {
"type": "git",
"url": "git://github.com/OpenGeoscience/vgl.git"
},
"devDependencies": {
"dependencies": {
"grunt": "~0.4",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-watch": "~0.6",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.4.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-shell": ">=0.2.1",
"grunt-release": "~0.6.0",
"jscs": "1.11.2",
"jsdoc": "^3.3",
"jshint": "~2.5"
"grunt-cli": "^0.1.13",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-uglify": "^0.10.0"
},
"devDependencies": {
"grunt-contrib-jshint": "^0.11.3",
"grunt-jscs": "^2.2.0",
"jscs": "^2.4.0",
"jshint": "^2.8.0"
},
"scripts": {
"install": "grunt",
"test": "grunt test"
}
}
48 changes: 48 additions & 0 deletions sources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"vgl": {
"prefix": "src",
"files": [
"init.js",
"GL.js",
"timestamp.js",
"object.js",
"event.js",
"boundingObject.js",
"node.js",
"groupNode.js",
"actor.js",
"freezeObject.js",
"defaultValue.js",
"graphicsObject.js",
"geojsonReader.js",
"data.js",
"geomData.js",
"mapper.js",
"groupMapper.js",
"materialAttribute.js",
"blend.js",
"material.js",
"renderer.js",
"renderWindow.js",
"camera.js",
"interactorStyle.js",
"trackballInteractorStyle.js",
"pvwInteractorStyle.js",
"viewer.js",
"shader.js",
"shaderProgram.js",
"texture.js",
"uniform.js",
"vertexAttribute.js",
"source.js",
"planeSource.js",
"pointSource.js",
"lineSource.js",
"utils.js",
"picker.js",
"shapefileReader.js",
"vtkReader.js",
"dataBuffers.js"
]
}
}
Loading