Browse Source

destruction of build system

pull/18/head
Coin de Gamma 4 years ago
parent
commit
7899d117da
  1. 1
      .gitignore
  2. 4
      .npmignore
  3. 7
      package.json
  4. 1
      src/tsdb-kit.ts
  5. 11
      tsconfig.bin.json
  6. 6
      tsconfig.lib.json

1
.gitignore vendored

@ -4,3 +4,4 @@ node_modules/
npm-debug.log
.vscode/
lib/
bin/

4
.npmignore

@ -2,5 +2,7 @@ src
spec
.travis.yml
jest.config.js
tsconfig.lib.json
tsconfig.bin.json
tsconfig.jest.json
tsconfig.json

7
package.json

@ -3,7 +3,9 @@
"version": "1.1.1",
"description": "",
"scripts": {
"build": "tsc",
"build": "yarn build:lib && yarn build:bin",
"build:lib": "tsc --p tsconfig.lib.json",
"build:bin": "tsc --p tsconfig.bin.json",
"dev": "tsc -w",
"test": "jest --config jest.config.js"
},
@ -34,5 +36,8 @@
"typescript": "3.3.1"
},
"main": "./lib/index.js",
"bin": {
"tsdb-kit": "bin/tsdb-kit.js"
},
"typings": "./lib/index.d.ts"
}

1
src/tsdb-kit.ts

@ -0,0 +1 @@
console.log('Hello world');

11
tsconfig.bin.json

@ -0,0 +1,11 @@
{
"compilerOptions": {
"sourceMap": true,
"module": "commonjs",
"target": "es2015",
"declaration": true,
"outFile": "bin/tsdb-kit.js"
},
"include": [ "src/**/*" ],
"exclude": [ "node_modules" ]
}

6
tsconfig.json → tsconfig.lib.json

@ -1,12 +1,10 @@
{
"compilerOptions": {
"sourceMap": true,
"module": "commonjs",
"target": "es2015",
"declaration": true,
"outDir": "lib"
},
"include": [
"src/**/*"
]
"include": [ "src/**/*" ],
"exclude": [ "node_modules", "**/*.d.ts"] ]
}
Loading…
Cancel
Save