From 0d83e33c2408cc9fd9d2449b18da0215e5e30eef Mon Sep 17 00:00:00 2001 From: Greg Sabia Tucker Date: Mon, 25 Mar 2019 19:05:25 -0700 Subject: [PATCH 1/2] TypeScript: Create typings command; Add TS as a devDependency --- package.json | 175 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 112 insertions(+), 63 deletions(-) diff --git a/package.json b/package.json index e49725f03a0..17be6b9d287 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,37 @@ { - "name": "bootstrap-vue", - "version": "2.0.0-rc.15", - "description": "BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.", - "main": "dist/bootstrap-vue.common.js", - "types": "src/index.d.ts", - "web": "dist/bootstrap-vue.js", - "module": "es/index.js", - "jsnext:main": "es/index.js", - "style": "dist/bootstrap-vue.css", - "license": "MIT", - "repository": "bootstrap-vue/bootstrap-vue", - "homepage": "https://bootstrap-vue.js.org", + "_from": "bootstrap-vue", + "_id": "bootstrap-vue@2.0.0-rc.15", + "_inBundle": false, + "_integrity": "sha512-ItLol18cs81xkOoMD+DHjeTn/IVPX3OUmxLdE0Y9E3wNis3mP3zsQZCfROGZEB05prhtw55B2fzGXqSe/lzD4g==", + "_location": "/bootstrap-vue", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "bootstrap-vue", + "name": "bootstrap-vue", + "escapedName": "bootstrap-vue", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/bootstrap-vue/-/bootstrap-vue-2.0.0-rc.15.tgz", + "_shasum": "6bad08352a619e8b7516d8d9d8d1822c532ddce3", + "_spec": "bootstrap-vue", + "_where": "/private/tmp", + "bugs": { + "url": "https://github.com/bootstrap-vue/bootstrap-vue/issues" + }, + "bundleDependencies": false, + "collective": { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap-vue", + "logo": "https://opencollective.com/bootstrap-vue/logo.txt" + }, "contributors": [ { "name": "Pooya Parsa", @@ -41,48 +62,21 @@ "url": "https://github.com/jackmu95" } ], - "files": [ - "src", - "dist", - "nuxt", - "es" - ], - "sideEffects": [ - "./es/utils/object.js", - "./src/utils/object.js", - "./es/utils/array.js", - "./src/utils/array.js", - "**/*.scss", - "**/*.css", - "**/*.vue", - "./docs" - ], - "scripts": { - "build": "scripts/build.sh", - "watch": "rollup -c scripts/rollup.config.js --watch", - "docs-dev": "cross-env NODE_ENV=docs nuxt dev -c docs/nuxt.config.js", - "docs-gen": "cross-env NODE_ENV=docs nuxt generate -c docs/nuxt.config.js", - "docs-build": "cross-env NODE_ENV=docs nuxt build -c docs/nuxt.config.js", - "docs-publish": "scripts/docs-publish.sh", - "test": "jest", - "lint": "eslint --ext .js,.vue ./", - "prettify": "prettier --write '**/*.{js,json,md,scss,ts,vue}'", - "release": "npm run prettify && npm run test && npm run build && standard-version", - "postinstall": "opencollective || exit 0" - }, "dependencies": { "@nuxt/opencollective": "^0.2.1", "bootstrap": "^4.3.1", "popper.js": "^1.14.7", "vue-functional-data-merge": "^2.0.7" }, + "deprecated": false, + "description": "BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.", "devDependencies": { "@babel/cli": "^7.2.3", - "@babel/core": "^7.4.0", - "@babel/plugin-transform-modules-commonjs": "^7.4.0", - "@babel/plugin-transform-runtime": "^7.4.0", - "@babel/preset-env": "^7.4.2", - "@babel/standalone": "^7.4.2", + "@babel/core": "^7.3.4", + "@babel/plugin-transform-modules-commonjs": "^7.2.0", + "@babel/plugin-transform-runtime": "^7.3.4", + "@babel/preset-env": "^7.3.4", + "@babel/standalone": "^7.3.4", "@nuxtjs/google-analytics": "^2.2.0", "@nuxtjs/pwa": "^3.0.0-beta.14", "@vue/test-utils": "^1.0.0-beta.29", @@ -93,9 +87,9 @@ "babel-plugin-istanbul": "^5.1.1", "clean-css-cli": "^4.2.1", "codecov": "^3.2.0", - "codemirror": "^5.45.0", + "codemirror": "^5.44.0", "cross-env": "^5.2.0", - "eslint": "^5.15.3", + "eslint": "^5.15.2", "eslint-config-prettier": "^4.1.0", "eslint-config-standard": "^12.0.0", "eslint-config-vue": "^2.0.2", @@ -106,7 +100,7 @@ "eslint-plugin-promise": "^4.0.1", "eslint-plugin-standard": "^4.0.0", "eslint-plugin-vue": "^5.2.2", - "esm": "^3.2.20", + "esm": "^3.2.18", "gh-pages": "^2.0.1", "highlightjs": "^9.12.0", "html-loader": "^0.5.5", @@ -115,28 +109,47 @@ "lodash": "^4.17.11", "marked": "^0.6.1", "node-sass": "^4.11.0", - "nuxt": "^2.5.1", + "nuxt": "^2.4.5", "postcss-cli": "^6.1.2", "prettier": "1.14.3", - "rollup": "^1.7.3", + "rollup": "^1.6.0", "rollup-plugin-babel": "^4.3.2", - "rollup-plugin-commonjs": "^9.2.2", + "rollup-plugin-commonjs": "^9.2.1", "rollup-plugin-node-resolve": "^4.0.1", "rollup-watch": "^4.3.1", "sass-loader": "^7.1.0", "standard-version": "^5.0.2", "terser": "^3.17.0", - "vue": "^2.6.10", + "typescript": "^3.3.3" + "vue": "^2.6.9", "vue-jest": "^3.0.4", "vue-router": "^3.0.2", - "vue-server-renderer": "^2.6.10", - "vue-template-compiler": "^2.6.10" + "vue-server-renderer": "^2.6.9", + "vue-template-compiler": "^2.6.9" }, - "standard-version": { - "scripts": { - "postchangelog": "./node_modules/.bin/prettier --write CHANGELOG.md" + "files": [ + "src", + "dist", + "nuxt", + "es" + ], + "homepage": "https://bootstrap-vue.js.org", + "jest": { + "testRegex": "spec.js$", + "moduleFileExtensions": [ + "js", + "vue" + ], + "transform": { + "^.+\\.js$": "babel-jest", + ".*\\.(vue)$": "vue-jest" + }, + "coverageDirectory": "./coverage/", + "testEnvironmentOptions": { + "pretendToBeVisual": true } }, + "jsnext:main": "es/index.js", "keywords": [ "Bootstrap", "Bootstrap 4", @@ -185,9 +198,45 @@ "Tag", "Tooltip" ], - "collective": { - "type": "opencollective", - "url": "https://opencollective.com/bootstrap-vue", - "logo": "https://opencollective.com/bootstrap-vue/logo.txt" - } + "license": "MIT", + "main": "dist/bootstrap-vue.common.js", + "module": "es/index.js", + "name": "bootstrap-vue", + "repository": { + "type": "git", + "url": "git+https://github.com/bootstrap-vue/bootstrap-vue.git" + }, + "scripts": { + "build": "scripts/build.sh", + "docs-build": "cross-env NODE_ENV=docs nuxt build -c docs/nuxt.config.js", + "docs-dev": "cross-env NODE_ENV=docs nuxt dev -c docs/nuxt.config.js", + "docs-gen": "cross-env NODE_ENV=docs nuxt generate -c docs/nuxt.config.js", + "docs-publish": "scripts/docs-publish.sh", + "lint": "eslint --ext .js,.vue ./", + "postinstall": "opencollective || exit 0", + "prettify": "prettier --write '**/*.{js,json,md,scss,ts,vue}'", + "release": "npm run prettify && npm run test && npm run build && standard-version", + "test": "jest", + "watch": "rollup -c scripts/rollup.config.js --watch", + "typings:create": "for jsFile in `find ./es/components/*/**.js`; do tsFile=\"$(echo $jsFile | sed s/\\.js/\\.ts/)\"; if ! [[ $jsFile == *'spec'* ]]; then cp $jsFile $tsFile; tsc -d $tsFile --emitDeclarationOnly > /dev/null; rm $tsFile; fi; done", + "typings:clean": "rm ./types/* && for tsFile in `find ./es/components/*/**.ts`; do rm $tsFile; done" + }, + "sideEffects": [ + "./es/utils/object.js", + "./src/utils/object.js", + "./es/utils/array.js", + "./src/utils/array.js", + "**/*.scss", + "**/*.css", + "**/*.vue", + "./docs" + ], + "standard-version": { + "scripts": { + "postchangelog": "./node_modules/.bin/prettier --write CHANGELOG.md" + } + }, + "style": "dist/bootstrap-vue.css", + "version": "2.0.0-rc.15", + "web": "dist/bootstrap-vue.js" } From 767cff1b8f89a2bd3332b656923e74b6699b5b14 Mon Sep 17 00:00:00 2001 From: Greg Sabia Tucker Date: Mon, 25 Mar 2019 19:06:15 -0700 Subject: [PATCH 2/2] Add comma in invalid JSON --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 17be6b9d287..66083621bef 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "sass-loader": "^7.1.0", "standard-version": "^5.0.2", "terser": "^3.17.0", - "typescript": "^3.3.3" + "typescript": "^3.3.3", "vue": "^2.6.9", "vue-jest": "^3.0.4", "vue-router": "^3.0.2",