feat(starter): add changelogs and examples
This commit is contained in:
13
examples/node-typescript/package.json
Normal file
13
examples/node-typescript/package.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "es7-typescript-starter-example-node-typescript",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "node build/test.js",
|
||||
"build": "tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^7.0.5",
|
||||
"typescript": "^2.1.6"
|
||||
}
|
||||
}
|
||||
12
examples/node-typescript/src/test.ts
Normal file
12
examples/node-typescript/src/test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// Typescript should resolve this using the same algorithm as Node.js.
|
||||
// See examples/node-vanilla for more info.
|
||||
import { double, power, asyncABC } from '../../../'
|
||||
import * as assert from 'assert'
|
||||
|
||||
assert(double(6) === 12)
|
||||
console.log('✔ double(6) === 12')
|
||||
|
||||
assert(power(3,4) === 81)
|
||||
console.log('✔ power(3,4) === 81')
|
||||
|
||||
asyncABC().then( abc => console.log('✔ asyncABC returned:', abc) )
|
||||
9
examples/node-typescript/tsconfig.json
Normal file
9
examples/node-typescript/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig",
|
||||
"compilerOptions": {
|
||||
"outDir": "build"
|
||||
},
|
||||
"include": [
|
||||
"src/*.ts"
|
||||
]
|
||||
}
|
||||
11
examples/node-typescript/yarn.lock
Normal file
11
examples/node-typescript/yarn.lock
Normal file
@@ -0,0 +1,11 @@
|
||||
# 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