This commit is contained in:
crusader 2018-05-16 19:03:27 +09:00
parent 99d6ec7351
commit fae45ba1ee
84 changed files with 6506 additions and 10 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
/dist-server
/tmp
/out-tsc
/docs
# dependencies
/node_modules

9
.make-package.js Normal file
View File

@ -0,0 +1,9 @@
const fs = require('fs');
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
delete packageJson.devDependencies;
delete packageJson.scripts;
packageJson.private = false;
fs.writeFileSync('./dist/package.json', JSON.stringify(packageJson, null, 2));

6464
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,38 @@
{
"name": "@overflow/commons-typescript",
"version": "0.0.1",
"author": "Loafle <rnd@loafle.com>",
"description": "Commons module of overflow",
"version": "0.0.3",
"license": "COMMERCIAL",
"private": false,
"dependencies": {
},
"devDependencies": {
"private": true,
"main": "./index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "https://git.loafle.net/overflow/commons-typescript.git"
},
"publishConfig": {
"registry": "https://nexus.loafle.net/repository/npm-loafle/"
},
"scripts": {
"generate:package": "node .make-package.js",
"generate:doc": "rimraf docs && typedoc --out docs --target es6 --theme minimal --mode file src",
"bundle": "rimraf dist && tsc",
"build": "npm run bundle && npm run generate:package && npm run generate:doc"
},
"dependencies": {},
"devDependencies": {
"@types/jest": "^22.2.3",
"@types/node": "^9.3.0",
"jest": "^22.4.3",
"prettier": "^1.12.1",
"rimraf": "^2.6.2",
"ts-jest": "^22.4.6",
"ts-node": "^6.0.3",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.12.0",
"tslint-config-standard": "^7.0.0",
"typedoc": "^0.11.1",
"typescript": "^2.8.3"
}
}

0
src/index.ts Normal file
View File

View File

@ -2,9 +2,9 @@
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./src",
"outDir": "./dist/out-tsc",
"outDir": "./dist",
"sourceMap": true,
"declaration": false,
"declaration": true,
"newLine": "LF",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
@ -14,7 +14,6 @@
"node_modules/@types"
],
"types": [
"reflect-metadata",
],
"lib": [
"es2017",