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:
@@ -9,5 +9,9 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "^7.0.5",
|
||||
"typescript": "^2.1.6"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript-starter": "^1.2.1"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Typescript should resolve this using the same algorithm as Node.js.
|
||||
// See examples/node-vanilla for more info.
|
||||
import { double, power, asyncABC } from '../../../'
|
||||
import { double, power, asyncABC } from 'typescript-starter'
|
||||
import * as assert from 'assert'
|
||||
|
||||
assert(double(6) === 12)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@types/node@^7.0.5":
|
||||
version "7.0.5"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.5.tgz#96a0f0a618b7b606f1ec547403c00650210bfbb7"
|
||||
|
||||
typescript@^2.1.6:
|
||||
version "2.1.6"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.1.6.tgz#40c7e6e9e5da7961b7718b55505f9cac9487a607"
|
||||
Reference in New Issue
Block a user