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 npm-debug.log
.vscode/ .vscode/
lib/ lib/
bin/

4
.npmignore

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

7
package.json

@ -3,7 +3,9 @@
"version": "1.1.1", "version": "1.1.1",
"description": "", "description": "",
"scripts": { "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", "dev": "tsc -w",
"test": "jest --config jest.config.js" "test": "jest --config jest.config.js"
}, },
@ -34,5 +36,8 @@
"typescript": "3.3.1" "typescript": "3.3.1"
}, },
"main": "./lib/index.js", "main": "./lib/index.js",
"bin": {
"tsdb-kit": "bin/tsdb-kit.js"
},
"typings": "./lib/index.d.ts" "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": { "compilerOptions": {
"sourceMap": true, "sourceMap": true,
"module": "commonjs",
"target": "es2015", "target": "es2015",
"declaration": true, "declaration": true,
"outDir": "lib" "outDir": "lib"
}, },
"include": [ "include": [ "src/**/*" ],
"src/**/*" "exclude": [ "node_modules", "**/*.d.ts"] ]
]
} }
Loading…
Cancel
Save