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:
12
examples/node-vanilla/package.json
Normal file
12
examples/node-vanilla/package.json
Normal 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
|
||||
}
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user