better modules

This commit is contained in:
Anton Lavrenov
2019-03-06 22:19:32 -05:00
parent 26d09b5b88
commit e88a485458
24 changed files with 572 additions and 583 deletions

View File

@@ -11,13 +11,13 @@
"lib"
],
"main": "./lib/index.js",
"typings": "./types/index.d.ts",
"typings": "./types/index-types.d.ts",
"scripts": {
"start": "npm run watch & gulp",
"lint": "gulp lint",
"build": "npm run compile && gulp build",
"full-build": "npm run build && npm t",
"test": "mocha-headless-chrome -f ./test/runner.html -a disable-web-security",
"test": "node ./test/import-test.js && mocha-headless-chrome -f ./test/runner.html -a disable-web-security",
"prettier": "prettier --write \"src/**/*.js\" \"test/**/*.js\" --single-quote",
"tsc": "tsc -d --declarationDir ./types --removeComments --module CommonJS || echo \"tsc faild for some file(s).\"",
"rollup": "rollup -c",
@@ -26,6 +26,7 @@
"watch": "rollup -c -w"
},
"devDependencies": {
"@pika/plugin-ts-standard-pkg": "^0.3.12",
"chai": "4.2.0",
"gulp": "^4.0.0",
"gulp-concat": "^2.6.1",
@@ -67,6 +68,7 @@
},
"license": "MIT",
"dependencies": {
"@pika/pack": "^0.3.3",
"gulp-exec": "^3.0.2",
"gulp-typescript": "^5.0.0",
"rollup": "^1.1.2",
@@ -74,5 +76,12 @@
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.19.2"
},
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-ts-standard-pkg"
]
]
}
}