2016-07-15 17:10:12 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// This file is likely outdated.
|
|
|
|
// To run, cd to this dir and
|
|
|
|
// node test.js
|
|
|
|
|
|
|
|
const path = require('canonical-path');
|
|
|
|
const Dgeni = require('dgeni');
|
|
|
|
const dartPkg = require(path.resolve('.'));
|
|
|
|
|
|
|
|
const ANGULAR_IO_PROJECT_PATH = '../../..';
|
|
|
|
const DOCS_PATH = path.join(ANGULAR_IO_PROJECT_PATH, 'public/docs');
|
|
|
|
const apiDocPath = path.join(DOCS_PATH, 'dart/latest/api');
|
|
|
|
|
|
|
|
dartPkg.config(function (dartPkgConfigInfo) {
|
|
|
|
dartPkgConfigInfo.ngIoDartApiDocPath = apiDocPath;
|
2016-08-24 16:54:04 -04:00
|
|
|
dartPkgConfigInfo.ngDartDocPath = path.join(ANGULAR_IO_PROJECT_PATH, '../angular-dart/doc/api');
|
2016-07-15 17:10:12 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
const dgeni = new Dgeni([dartPkg]);
|
|
|
|
|
|
|
|
dgeni.generate().catch(function (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err.stack);
|
|
|
|
throw err;
|
|
|
|
});
|