diff --git a/.gitignore b/.gitignore index 38f24d5..0619f88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,4 @@ bower_components/ node_modules/ test/ -lib/ -*.js -!gulpfile.js -*.css -!src/*.css +dist/ diff --git a/README.md b/README.md index 247b71d..d55895b 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,16 @@ # Pert -Pert is a command line tool built to assist in the process of creating pert diagrams and calculating permitted delays. +Pert is a small web app built to assist in working with Project Breakdown Structures. -## Installation +It should be accessible [here](http://fazo96.github.io/pert) -Make sure you have `node` and `npm` installed and working +## Features -__From git__ +It's still in development. -1. clone this repo -2. run `npm install` in the root of the repo, then run `bower install` in `client/` if you need to use the Web GUI -3. run `npm run-script build` to compile all files -4. the binary should now be in `bin/pert` - -__From npm__ - -1. `npm install -g pert` -2. run `pert` in your shell - -## Usage - - Usage: pert [options] [args] - - loads activity data from JSON and computes the possible activity delays - - Commands: - - example show an example of the JSON data format - calculate|c [options] calculate data on given JSON document - graph|g serve HTTP GUI with pert graph of given JSON document - - Options: - - -h, --help output usage information - -V, --version output the version number - -v, --verbose be verbose (for debugging) - - -This is the help information for the `pert calculate` command: - - Usage: calculate|c [options] - - calculate data on given JSON document - - Options: - - -h, --help output usage information - -j, --json output json data +- can calculate (almost) every info that can be retrieved from the minimum amount of data +- can draw a (almost correct and thorough) pert diagram +- can (almost) draw a timeline of the project ## Data format @@ -63,12 +27,6 @@ This is a valid input document (extra data is ignored but not thrashed): ] ``` -And this is the output of the `calculate` command on the previous document using the `--json` flag: - -```json -[{"id":0,"duration":3,"startDay":0,"endDay":3,"permittedDelay":0},{"id":1,"duration":1,"startDay":0,"endDay":1,"permittedDelay":0},{"id":2,"duration":2,"depends":[0],"startDay":3,"endDay":5,"permittedDelay":1},{"id":3,"duration":5,"depends":[1],"startDay":1,"endDay":6,"permittedDelay":0},{"id":4,"duration":5,"depends":[1],"startDay":1,"endDay":6,"permittedDelay":0},{"id":5,"duration":2,"depends":[2,3,4],"startDay":6,"endDay":8}] -``` - ## License MIT diff --git a/gulpfile.js b/gulpfile.js index ed5c80a..04698e4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,25 +1,28 @@ -// Gulp Dependencies -var gulp = require('gulp'); -var gutil = require('gulp-util') -var uglify = require('gulp-uglify'); -var minifyCSS = require('gulp-minify-css'); +var gulp = require('gulp') +var minifyCSS = require('gulp-minify-css') var coffee = require('gulp-coffee') +var uglify = require('gulp-uglify') +var clean = require('gulp-clean') gulp.task('css',function(){ return gulp.src('src/*.css') - .pipe(minifyCSS()) - .pipe(gulp.dest('.')) + .pipe(minifyCSS()) + .pipe(gulp.dest('dist/')) }) + gulp.task('coffee',function(){ return gulp.src('src/*.coffee') - .pipe(coffee({ bare: true })) - .pipe(uglify()) - .pipe(gulp.dest('.')) + .pipe(coffee({ bare: true })) + .pipe(uglify()) + .pipe(gulp.dest('dist/')) }) -gulp.task('default',['css','coffee']) +gulp.task('clean',function(){ + return gulp.src('dist/*').pipe(clean()) +}) gulp.task('watch',function(){ - gulp.watch('src/*.css',['css']) gulp.watch('src/*.coffee',['coffee']) + gulp.watch('src/*.css',['css']) }) +gulp.task('default',['css','coffee']) diff --git a/index.html b/index.html index d8456d6..405f48a 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,13 @@ Pert - + view pert - + diff --git a/package.json b/package.json new file mode 100644 index 0000000..75bd92b --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "pert", + "version": "0.1.0", + "devDependencies": { + "gulp": "^3.8.11", + "gulp-clean": "^0.3.1", + "gulp-coffee": "^2.3.1", + "gulp-minify-css": "^1.0.0", + "gulp-uglify": "^1.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/fazo96/pert.git" + }, + "bugs": { + "url": "https://github.com/fazo96/pert/issues" + }, + "homepage": "https://github.com/fazo96/pert" +} diff --git a/pert.html b/pert.html index 136c01f..a32709c 100644 --- a/pert.html +++ b/pert.html @@ -3,7 +3,7 @@ Pert - + @@ -12,7 +12,7 @@
edit data - - + +