Check-in [22abe1851a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[3e1532df89] Finally got all of the build tasks working. Yay!
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:22abe1851ac26b01a5c6bb0c5592c2faf7eec471
User & Date: adamc 2016-10-27 01:18:48
Context
2016-10-27
01:30
[3e1532df89] A couple of changes to fix problems that came up with last commit check-in: eee8f9600c user: adamc tags: trunk
01:18
[3e1532df89] Finally got all of the build tasks working. Yay! check-in: 22abe1851a user: adamc tags: trunk
2016-10-26
02:07
[3e1532df89] Fixed lint problems. check-in: 81905e3266 user: adamc tags: trunk
Changes

Changes to gulpfile.js.

1
2
3
4
5

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48








49
50
51
52
53
54
var gulp = require('gulp');
var ts = require('gulp-typescript');
var sourcemaps = require('gulp-sourcemaps');
var exec = require('child_process').exec;
var ignoreErrors = require('gulp-ignore-errors');


gulp.task('lib', function () {
  gulp.src('src/*.ts')
    .pipe(sourcemaps.init())
    .pipe(ts({
      declarationFiles: true,
      noImplicitAny: true
    }))
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('src/'));
});

gulp.task('demo', function () {
  gulp.src('app/*.ts')
    .pipe(ts({
      declarationFiles: true,
      sourceMap: true,
      noImplicitAny: true
    }))
    .pipe(gulp.dest('app/'));

    exec('bowserify chattymath.js -o chattybundle.js', function(err, stdout, stderr) {
      console.log(stdout);
    });
});

gulp.task('build-test', function () {
  gulp.src('tests/*.ts')
    .pipe(ts({
      declarationFiles: false,
      noImplicitAny: true,
      noEmitOnError: false
    }))
    .pipe(ignoreErrors())
    .pipe(gulp.dest('tests/'));
});

gulp.task('run-test', function () {
  exec('node tests\testrun.js', function (err, stdout, stderr) {
    console.log("PComb Tests:");
    console.log(stdout);
    console.log(stderr);
  });








});

gulp.task('build-lib', ['lib']);
gulp.task('test', ['build-lib', 'build-test', 'run-test'])
gulp.task('build-all', ['lib', 'test', 'demo']);
gulp.task('build-demo', ['lib', 'demo']);




|
>













|






<
<
<
<













|
|
<
|
<
|
>
>
>
>
>
>
>
>





|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26




27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

42

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
var gulp = require('gulp');
var ts = require('gulp-typescript');
var sourcemaps = require('gulp-sourcemaps');
var exec = require('child_process').exec;
var browserify = require('browserify');
var source = require('vinyl-source-stream');

gulp.task('lib', function () {
  gulp.src('src/*.ts')
    .pipe(sourcemaps.init())
    .pipe(ts({
      declarationFiles: true,
      noImplicitAny: true
    }))
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('src/'));
});

gulp.task('demo', function () {
    gulp.src('app/*.ts')
    .pipe(ts({
      declarationFiles: true,
      sourceMap: true,
      noImplicitAny: true
    }))
    .pipe(gulp.dest('app/'));




});

gulp.task('build-test', function () {
  gulp.src('tests/*.ts')
    .pipe(ts({
      declarationFiles: false,
      noImplicitAny: true,
      noEmitOnError: false
    }))
    .pipe(ignoreErrors())
    .pipe(gulp.dest('tests/'));
});

gulp.task('run-test', function (cb) {
  var testResult = require("./tests/testrun.js");

  console.log(testResult);

});

gulp.task('browserify', function() {
    return browserify('./app/chattymath.js')
        .bundle()
        //Pass desired output filename to vinyl-source-stream
        .pipe(source('chattybundle.js'))
        // Start piping stream to tasks!
        .pipe(gulp.dest('./app/'));
});

gulp.task('build-lib', ['lib']);
gulp.task('test', ['build-lib', 'build-test', 'run-test'])
gulp.task('build-all', ['lib', 'test', 'demo']);
gulp.task('build-demo', ['lib', 'demo', 'browserify']);

Changes to package.json.

7
8
9
10
11
12
13

14
15
16
17
18
19

20
21
22
23
24
25
26
    "test": "tests"
  },
  "dependencies": {
    "tsunit.external": "^2.0.10"
  },
  "devDependencies": {
    "@types/core-js": "^0.9.34",

    "gulp": "^3.9.1",
    "gulp-exec": "^2.1.2",
    "gulp-ignore-errors": "0.0.4",
    "gulp-sourcemaps": "^2.1.1",
    "gulp-typescript": "^3.0.2",
    "typescript": "^2.0.3"

  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}







>





|
>







7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    "test": "tests"
  },
  "dependencies": {
    "tsunit.external": "^2.0.10"
  },
  "devDependencies": {
    "@types/core-js": "^0.9.34",
    "browserify": "^13.1.1",
    "gulp": "^3.9.1",
    "gulp-exec": "^2.1.2",
    "gulp-ignore-errors": "0.0.4",
    "gulp-sourcemaps": "^2.1.1",
    "gulp-typescript": "^3.0.2",
    "typescript": "^2.0.3",
    "vinyl-source-stream": "^1.1.0"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}