feat(CLI): create CLI, begin work on v2
This commit is contained in:
167
package.json
167
package.json
@@ -1,86 +1,15 @@
|
||||
{
|
||||
"name": "typescript-starter",
|
||||
"version": "1.4.1",
|
||||
"version": "2.0.0",
|
||||
"description": "A typescript starter for building javascript libraries and projects",
|
||||
"bin": {
|
||||
"typescript-starter": "./build/main/typescript-starter.js"
|
||||
},
|
||||
"main": "build/main/index.js",
|
||||
"typings": "build/main/index.d.ts",
|
||||
"module": "build/module/index.js",
|
||||
"browser": "build/browser/index.js",
|
||||
"repository": "https://github.com/bitjson/typescript-starter",
|
||||
"author": "Jason Dreyzehner <jason@dreyzehner.com>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"info": "npm-scripts-info",
|
||||
"build": "trash build && yarn build:main && yarn build:module && yarn build:browser-deps && yarn build:browser && yarn build:browser-cjs && yarn build:resolve-sourcemaps",
|
||||
"build:main": "tsc -p tsconfig.json",
|
||||
"build:module": "tsc -p config/exports/tsconfig.module.json",
|
||||
"build:browser-deps": "mkdirp build/temp && browserify node_modules/hash.js/lib/hash.js --standalone hash -o build/temp/hash.js",
|
||||
"build:browser": "rollup -c config/exports/rollup.config.js -f es -o build/browser/index.js",
|
||||
"build:browser-cjs": "rollup -c config/exports/rollup.config.js -f cjs -o build/browser/index.cjs.js",
|
||||
"build:resolve-sourcemaps": "sorcery -i build/browser/index.js && sorcery -i build/browser/index.cjs.js",
|
||||
"build:tests": "trash test && node config/exports/build-tests.js",
|
||||
"lint": "tslint --project . --type-check src/**/*.ts",
|
||||
"unit": "yarn build && yarn build:tests && nyc ava",
|
||||
"check-coverage": "nyc check-coverage --lines 100 --functions 100 --branches 100",
|
||||
"test": "yarn lint && yarn unit && yarn check-coverage",
|
||||
"watch": "yarn build && yarn build:tests -- --no-browser && concurrently -r --kill-others \"npm run --silent build:main -- -w\" \"npm run --silent build:tests -- -w --no-browser\" \"sleepms 2000 && ava --watch\"",
|
||||
"cov": "yarn unit && yarn html-coverage && opn coverage/index.html",
|
||||
"html-coverage": "nyc report --reporter=html",
|
||||
"send-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
|
||||
"docs": "yarn docs:html && opn build/docs/index.html",
|
||||
"docs:html": "typedoc src/index.ts --excludePrivate --mode file --theme minimal --out build/docs",
|
||||
"docs:json": "typedoc --mode file --json build/docs/typedoc.json src/index.ts",
|
||||
"docs:publish": "yarn docs:html && gh-pages -d build/docs",
|
||||
"changelog": "standard-version",
|
||||
"release": "yarn reset && yarn test && yarn docs:publish && yarn changelog",
|
||||
"reset": "git clean -dfx && git reset --hard && yarn"
|
||||
},
|
||||
"scripts-info": {
|
||||
"info": "Display information about the scripts",
|
||||
"build": "(Trash and re)build the library",
|
||||
"lint": "Lint all typescript source files",
|
||||
"unit": "Build the library and run unit tests",
|
||||
"test": "Lint, build, and test the library",
|
||||
"watch": "Watch source files, rebuild library on changes, rerun relevant tests",
|
||||
"cov": "Run tests, generate the HTML coverage report, and open it in a browser",
|
||||
"docs": "Generate HTML API documentation and open it in a browser",
|
||||
"docs:publish": "Generate HTML API documentation and push it to GitHub Pages",
|
||||
"docs:json": "Generate API documentation in typedoc JSON format",
|
||||
"changelog": "Bump package.json version, update CHANGELOG.md, tag a release",
|
||||
"reset": "Delete all untracked files and reset the repo to the last commit",
|
||||
"release": "Clean, build, test, publish docs, and prepare release (a one-step publish process)"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.0.4",
|
||||
"ava": "^0.21.0",
|
||||
"browserify": "^14.1.0",
|
||||
"codecov": "^2.2.0",
|
||||
"concurrently": "^3.4.0",
|
||||
"cpx": "^1.5.0",
|
||||
"gh-pages": "^1.0.0",
|
||||
"hash.js": "^1.0.3",
|
||||
"mkdirp": "^0.5.1",
|
||||
"npm-scripts-info": "^0.3.6",
|
||||
"nyc": "^11.0.3",
|
||||
"opn-cli": "^3.1.0",
|
||||
"rollup": "^0.44.0",
|
||||
"rollup-plugin-alias": "^1.2.0",
|
||||
"rollup-plugin-commonjs": "^8.0.2",
|
||||
"rollup-plugin-json": "^2.3.0",
|
||||
"rollup-plugin-node-resolve": "^3.0.0",
|
||||
"rollup-watch": "^4.0.0",
|
||||
"sleep-ms": "^2.0.1",
|
||||
"sorcery": "^0.10.0",
|
||||
"standard-version": "^4.0.0",
|
||||
"trash-cli": "^1.4.0",
|
||||
"tslint": "^5.4.3",
|
||||
"tslint-config-standard": "^6.0.1",
|
||||
"typedoc": "^0.8.0",
|
||||
"typescript": "^2.4.1"
|
||||
},
|
||||
"keywords": [
|
||||
"async",
|
||||
"ava",
|
||||
@@ -102,20 +31,92 @@
|
||||
"typescript",
|
||||
"typings"
|
||||
],
|
||||
"scripts": {
|
||||
"info": "npm-scripts-info",
|
||||
"build": "run-s clean && run-p build:*",
|
||||
"build:main": "tsc -p tsconfig.json",
|
||||
"build:module": "tsc -p tsconfig.module.json",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier 'src/**/*.ts' --write",
|
||||
"fix:tslint": "tslint --fix --project . src/**/*.ts",
|
||||
"test": "run-s test:*",
|
||||
"test:lint": "tslint --project . src/**/*.ts && prettier 'src/**/*.ts' --list-different",
|
||||
"test:unit": "nyc ava",
|
||||
"test:coverage": "nyc check-coverage --lines 100 --functions 100 --branches 100",
|
||||
"watch": "run-s clean && run-p 'build:* -- -w' 'test:unit -- --watch'",
|
||||
"cov": "run-s build test:unit cov:html && opn coverage/index.html",
|
||||
"cov:html": "nyc report --reporter=html",
|
||||
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov",
|
||||
"doc": "run-s doc:html && opn build/docs/index.html",
|
||||
"doc:html": "typedoc src/index.ts --excludePrivate --mode file --theme minimal --out build/docs",
|
||||
"doc:json": "typedoc --mode file --json build/docs/typedoc.json src/index.ts",
|
||||
"docs:publish": "gh-pages -d build/docs",
|
||||
"changelog": "standard-version",
|
||||
"reset": "git clean -dfx && git reset --hard && npm i",
|
||||
"clean": "trash build test",
|
||||
"release": "run-s reset test docs:html docs:publish changelog"
|
||||
},
|
||||
"scripts-info": {
|
||||
"info": "Display information about the package scripts",
|
||||
"build": "Clean and Rebuild the project",
|
||||
"fix": "Try to automatically fix any linting problems",
|
||||
"test": "Lint and unit test the project",
|
||||
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
|
||||
"cov": "Rebuild, run tests, then create and open the coverage report",
|
||||
"doc": "Generate HTML API documentation and open it in a browser",
|
||||
"doc:json": "Generate API documentation in typedoc JSON format",
|
||||
"changelog": "Bump package.json version, update CHANGELOG.md, tag release",
|
||||
"reset": "Delete all untracked files and reset the repo to the last commit",
|
||||
"release": "One-step: clean, build, test, publish docs, and prep a release"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"chalk": "^2.3.1",
|
||||
"cross-spawn": "^6.0.4",
|
||||
"github-username": "^4.1.0",
|
||||
"gradient-string": "^1.0.0",
|
||||
"inquirer": "^5.1.0",
|
||||
"ora": "^2.0.0",
|
||||
"project-version": "^1.0.0",
|
||||
"replace-in-file": "^3.1.1",
|
||||
"sha.js": "^2.4.10",
|
||||
"sorted-object": "^2.0.1",
|
||||
"trash": "^4.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.9.4",
|
||||
"ava": "^1.0.0-beta.3",
|
||||
"codecov": "^3.0.0",
|
||||
"gh-pages": "^1.0.0",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"npm-scripts-info": "^0.3.6",
|
||||
"nyc": "^11.5.0",
|
||||
"opn-cli": "^3.1.0",
|
||||
"prettier": "^1.10.2",
|
||||
"standard-version": "^4.0.0",
|
||||
"trash-cli": "^1.4.0",
|
||||
"tslint": "^5.4.3",
|
||||
"tslint-config-prettier": "^1.8.0",
|
||||
"typedoc": "^0.10.0",
|
||||
"typescript": "^2.4.1"
|
||||
},
|
||||
"nyc": {
|
||||
"exclude": [
|
||||
"**/*.spec.js",
|
||||
"build/browser/**"
|
||||
"**/*.spec.js"
|
||||
]
|
||||
},
|
||||
"ava": {
|
||||
"source": [
|
||||
"test/**/*.js",
|
||||
"build/**/*.js",
|
||||
"!build/**/*.spec.js"
|
||||
"failFast": true,
|
||||
"files": [
|
||||
"build/main/**/*.spec.js"
|
||||
],
|
||||
"sources": [
|
||||
"build/main/**/*.js"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "^1.6.0"
|
||||
"prettier": {
|
||||
"singleQuote": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user