Commit 9357b25c authored by Fred Eisele's avatar Fred Eisele
Browse files

update the package.json

parent f703c573
Loading
Loading
Loading
Loading
+1 −78
Changes for README.md: 1 added line, 78 removed lines.
Original line number Diff line number Diff line
# typescript-typings
Each branch represents a different set of typescript typings that I am working on.

## New Project

To create a new set of typings...

   git checkout master
   git checkout -b <new-project-name>

   edit the files as needed (see below for hints)
   git commit -m 'initial commit of sample'

The projects that have been previously commited 
are good samples of the types of edits you will need 
for your porject.

   git difftool master n3 

## Sync with DefinitelyTyped

In order to get you typings into the offical npm repository
you will need to convert your project typings and place
them in a DefinitelyTyped directory.

  * http://definitelytyped.org/
  * https://github.com/DefinitelyTyped/DefinitelyTyped


To make a new set of typings:
 * Checkout and develop the description files from DefinitelyTyped
     Development is easier here because you have the 
       advantage of having your reference-paths working properly.
     
 * branch from the master
     git checkout master
     git checkout -b newpackage
 * edit the `package.json`
     "name": "@types/sample",
     "version": "0.0.1",
     "description": "A set of TypeScript definitions for SAMPLE",
     "main": "",
     "files": [
       "index.d.ts"
     ],
 * add in the files from DefinitelyTyped
     cp <DT>/n3/* .
     index.d.ts
     newpackage-tests.ts

## Project Log

### N3

  git checkout n3

Lightning fast, spec-compatible, streaming RDF for JavaScript.

 * https://github.com/RubenVerborgh/N3.js

### webgme

  git checkout webgme

Web based generic modeling environment.

 * https://webgme.org/
 * https://github.com/webgme/webgme

### Cytoscape

  git checkout cytoscape

Graph theory (a.k.a. network) library for analysis and visualisation.

 * http://js.cytoscape.org/
 * https://github.com/cytoscape/cytoscape.js

# chai-deep-match
+4 −3
Changes for package.json: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
{
  "name": "@types/SAMPLE",
  "name": "@types/chai-deep-match",
  "version": "0.0.1",
  "description": "A set of TypeScript definitions for SAMPLE",
  "description": "A set of TypeScript definitions for chai-deep-match",
  "main": "",
  "typings": "index.d.ts",
  "files": [
@@ -9,7 +9,8 @@
  ],
  "keywords": [
    "typescript",
    "SAMPLE",
    "chai",
    "chai-deep-match",
    "defininition"
  ],
  "directories": {
+6 −16
Changes for sample-tests.ts: 6 added lines, 16 removed lines.
Original line number Diff line number Diff line
/// <reference path="./index.d.ts" />
/// <reference path="../node/index.d.ts" />
/// <reference types="node" />
/// <reference types="chai" />


/**
  [?] has correct naming convention

  checked compilation succeeds  
   [+] tsc --noImplicitAny --target es5 ./index.d.ts
   [x] tsc --noImplicitAny --target es6 ./index.d.ts

  [x] has a test file with the suffix of -tests.ts

  checked the test file
   [x] tsc --noImplicitAny --target es5 --module commonjs ./sample-tests.ts 
   [x] tsc --noImplicitAny --target es6 --module commonjs ./sample-tests.ts 

*/

import * as Sample from "sample";
import * as fs from "fs";
import * as stream from "stream";
import { expect, config } from "chai";
import { chaiDeepMatch } from "chai-deep-match";
chai.use(chaiDeepMatch);

function test_it() {

    expect([{ "1": [2, 3, { "5": 6 }] }]).to.deep.match([]);
}