зеркало из https://github.com/microsoft/Briefcase.git
TypeScript package cleanup
This commit is contained in:
Родитель
d243ba7318
Коммит
a7be753a33
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -20,30 +20,13 @@
|
|||
},
|
||||
"scripts": {
|
||||
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
|
||||
"start": "rollup -c rollup.config.ts -w",
|
||||
"build": "tsc --module commonjs && typedoc --out docs --target es6 --theme minimal --mode file src",
|
||||
"test": "jest --coverage",
|
||||
"test:watch": "jest --coverage --watch",
|
||||
"test:prod": "npm run lint && npm run test -- --no-cache",
|
||||
"deploy-docs": "ts-node tools/gh-pages-publish",
|
||||
"report-coverage": "cat ./coverage/lcov.info | coveralls",
|
||||
"commit": "git-cz",
|
||||
"semantic-release": "semantic-release",
|
||||
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
|
||||
"precommit": "lint-staged",
|
||||
"travis-deploy-once": "travis-deploy-once"
|
||||
},
|
||||
"lint-staged": {
|
||||
"{src,test}/**/*.ts": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "node_modules/cz-conventional-changelog"
|
||||
}
|
||||
"precommit": "lint-staged"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
|
@ -77,44 +60,14 @@
|
|||
],
|
||||
"testResultsProcessor": "./node_modules/jest-junit-reporter"
|
||||
},
|
||||
"prettier": {
|
||||
"semi": false,
|
||||
"singleQuote": true
|
||||
},
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^8.1.0",
|
||||
"@commitlint/config-conventional": "^7.1.2",
|
||||
"@types/jest": "^23.3.2",
|
||||
"@types/js-yaml": "^3.12.1",
|
||||
"@types/node": "^10.14.16",
|
||||
"colors": "^1.3.2",
|
||||
"commitizen": "^3.0.0",
|
||||
"coveralls": "^3.0.2",
|
||||
"cross-env": "^5.2.0",
|
||||
"cz-conventional-changelog": "^2.1.0",
|
||||
"husky": "^1.0.1",
|
||||
"jest": "^25.0.0",
|
||||
"jest-junit-reporter": "^1.1.0",
|
||||
"jest-config": "^25.0.0",
|
||||
"lint-staged": "^8.0.0",
|
||||
"lodash.camelcase": "^4.3.0",
|
||||
"prettier": "^1.14.3",
|
||||
"prompt": "^1.0.0",
|
||||
"replace-in-file": "^3.4.2",
|
||||
"rimraf": "^2.6.2",
|
||||
"rollup": "^0.67.0",
|
||||
"rollup-plugin-commonjs": "^9.1.8",
|
||||
"rollup-plugin-json": "^3.1.0",
|
||||
"rollup-plugin-node-resolve": "^3.4.0",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"rollup-plugin-typescript2": "^0.22.1",
|
||||
"semantic-release": "^15.9.16",
|
||||
"shelljs": "^0.8.3",
|
||||
"travis-deploy-once": "^5.0.9",
|
||||
"ts-jest": "^23.10.2",
|
||||
"ts-node": "^7.0.1",
|
||||
"tslint": "^5.11.0",
|
||||
|
@ -124,7 +77,6 @@
|
|||
"typescript": "^3.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"jest-junit-reporter": "^1.1.0",
|
||||
"js-yaml": "^3.13.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
import resolve from 'rollup-plugin-node-resolve'
|
||||
import commonjs from 'rollup-plugin-commonjs'
|
||||
import sourceMaps from 'rollup-plugin-sourcemaps'
|
||||
import camelCase from 'lodash.camelcase'
|
||||
import typescript from 'rollup-plugin-typescript2'
|
||||
import json from 'rollup-plugin-json'
|
||||
|
||||
const pkg = require('./package.json')
|
||||
|
||||
const libraryName = 'js-workspace'
|
||||
|
||||
export default {
|
||||
input: `src/Workspace.ts`,
|
||||
output: [
|
||||
{ file: pkg.main, name: camelCase(libraryName), format: 'umd', sourcemap: true },
|
||||
{ file: pkg.module, format: 'es', sourcemap: true },
|
||||
],
|
||||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
|
||||
external: [],
|
||||
watch: {
|
||||
include: 'src/**',
|
||||
},
|
||||
plugins: [
|
||||
// Allow json resolution
|
||||
json(),
|
||||
// Compile TypeScript files
|
||||
typescript({ useTsconfigDeclarationDir: true }),
|
||||
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
|
||||
commonjs(),
|
||||
// Allow node_modules resolution, so you can use 'external' to control
|
||||
// which external modules to include in the bundle
|
||||
// https://github.com/rollup/rollup-plugin-node-resolve#usage
|
||||
resolve(),
|
||||
|
||||
// Resolve source maps to the original source
|
||||
sourceMaps(),
|
||||
],
|
||||
}
|
Загрузка…
Ссылка в новой задаче