1
0
mirror of synced 2025-11-08 21:07:23 +00:00

docs(examples): refactor examples to be more familiar to most users

use npm to install the library and run each example, remove yarn.lock files
This commit is contained in:
Jason Dreyzehner
2017-02-17 02:30:16 -05:00
parent 56a848f981
commit 45d7dfad62
10 changed files with 73 additions and 654 deletions

View File

@@ -0,0 +1,12 @@
{
"name": "typescript-starter-example-node-vanilla",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"start": "node test.js"
},
"dependencies": {
"typescript-starter": "^1.2.1"
},
"private": true
}

View File

@@ -1,7 +1,7 @@
// Node.js should resolve this to the root of the repo. Since the path returns a
// directory, node will look for the `main` property in `package.json`, which
// should point to the `main` build.
var starter = require('../../');
var starter = require('typescript-starter');
// now we can use the library
var assert = require('assert');