Skip to content
Permalink
Browse files

[JS] Consolidate dev-dependencies in root package.json

  • Loading branch information
Max van gen Hassend Max van gen Hassend
Max van gen Hassend authored and Max van gen Hassend committed Sep 4, 2019
1 parent 4921f15 commit 1f484382fd4fc04616675d2cbe956e026051e7b6
@@ -81,6 +81,7 @@ module.exports = {
"no-redeclare": "off",
"no-dupe-class-members": "off",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "off",
"prefer-template": "error",
@@ -21,10 +21,5 @@
"scripts": {
"startconsumer": "domain=$npm_package_config_domain runtime=$npm_package_config_runtime cchost=$npm_package_config_cc_host ccport=$npm_package_config_cc_port bounceProxyBaseUrl=$npm_package_config_bounceProxyBaseUrl brokerUri=$npm_package_config_brokerUri ts-node src/main/js/radioConsumer",
"startprovider": "domain=$npm_package_config_domain runtime=$npm_package_config_runtime cchost=$npm_package_config_cc_host ccport=$npm_package_config_cc_port bounceProxyBaseUrl=$npm_package_config_bounceProxyBaseUrl brokerUri=$npm_package_config_brokerUri ts-node src/main/js/radioProvider"
},
"devDependencies": {
"@types/node": "8.9.4",
"ts-node": "^8.3.0",
"typescript": "^3.5.2"
}
}
@@ -1,24 +1,8 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"target": "es2017",
"esModuleInterop": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"typeRoots": [
"node_modules/@types",
"typings"
],
"outDir": ".output",
"rootDir" : ".",
"incremental": true
"rootDir" : "."
},
"include": [
"src/main/**/*",
@@ -1,22 +1,12 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"target": "es2017",
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"typeRoots": [
"../../node_modules/@types",
"node_modules/@types",
"typings"
],
"rootDir" : ".",
"incremental": true
"rootDir" : "."
},
"include": [
"src/**/*"
@@ -5,31 +5,16 @@
"license": "Apache-2.0",
"homepage": "http://joynr.io",
"bugs": "https://github.com/bmwcarit/joynr/issues",
"private": true,
"dependencies": {
"joynr": "file:./src/main/js"
},
"devDependencies": {
"@types/jest": "24.0.11",
"@types/nanoid": "1.2.1",
"@types/node": "8.9.4",
"@types/ws": "6.0.1",
"@typescript-eslint/eslint-plugin": "1.7.0",
"@typescript-eslint/parser": "1.7.0",
"eslint": "5.16.0",
"eslint-config-prettier": "4.2.0",
"eslint-plugin-jest": "22.5.1",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-promise": "3.8.0",
"exit-hook": "1.1.1",
"glob": "7.1.3",
"jest": "24.8.0",
"jest-circus": "24.8.0",
"jest-junit": "6.3.0",
"nanoid": "2.0.1",
"prettier": "1.17.1",
"ts-jest": "24.0.1",
"typedoc": "0.14.2",
"typescript": "3.4.3"
"typedoc": "0.14.2"
},
"config": {
"glob": "src/{main/js/global,main/js/joynr,test/js/!(integration)}/{**/*.js,**/*.ts}"
@@ -41,21 +26,22 @@
"sig": "cd scripts && node createBuildSignature && cd -",
"clean": "rm -rf node_modules package-lock.json src/main/js/node_modules out .output",
"format:install": "npm i prettier@1.17.1 --no-save && npm run format",
"format": "node_modules/.bin/prettier --write $npm_package_config_glob",
"lint": "node_modules/.bin/eslint $npm_package_config_glob --max-warnings 0",
"lint:fix": "node_modules/.bin/eslint $npm_package_config_glob --fix",
"format": "prettier --write $npm_package_config_glob",
"lint": "../../node_modules/.bin/eslint $npm_package_config_glob --max-warnings 0",
"lint:fix": "../../node_modules/.bin/eslint $npm_package_config_glob --fix",
"test": "npm run ts:test:ci && npm run ts:test:sit",
"build:doc": "node_modules/.bin/typedoc --exclude 'src/main/js/node_modules/**/*.ts' --excludeExternals --out wiki/typedoc src/main/js",
"build:doc": "typedoc --exclude 'src/main/js/node_modules/**/*.ts' --excludeExternals --out wiki/typedoc src/main/js",
"build:fast": "npm run build:skip && npm run test",
"build": "npm run clean && npm run build:fast && npm run build:doc",
"build:skip": "cd src/main/js && npm i && cd ../../.. && npm i && npm run sig && npm run lint && npm run ts:package && npm run fixRequire",
"build:install": "npm --prefix src/main/js i && npm --prefix ../.. i && npm i",
"build:skip": "npm run build:install && npm run sig && npm run lint && npm run fixRequire && npm run ts:package",
"fixRequire": "ln -s .. src/main/js/node_modules/joynr",
"ts:compile": "tsc",
"ts:compile:dts": "tsc -d",
"ts:check": "tsc --noEmit",
"ts:test": "jest --config jest.config.js --silent",
"ts:test:ci": "jest --config jest.config.js --coverage",
"ts:test:sit": "jest --config jest.config.integration.js -i --force-exit",
"ts:compile": "../../node_modules/.bin/tsc",
"ts:compile:dts": "../../node_modules/.bin/tsc -d",
"ts:check": "../../node_modules/.bin/tsc --noEmit",
"ts:test": "../../node_modules/.bin/jest --config jest.config.js --silent",
"ts:test:ci": "../../node_modules/.bin/jest --config jest.config.js --coverage",
"ts:test:sit": "../../node_modules/.bin/jest --config jest.config.integration.js -i --force-exit",
"ts:package": "npm run ts:compile:dts && cp src/main/js/package.json .output/src/main/js && cp package.json .output && npm --prefix .output i && npm --prefix .output/src/main/js i && if [ ! -L .output/src/main/js/node_modules/joynr ]; then ln -s .. .output/src/main/js/node_modules/joynr; fi && cp -r src/main/js/META-INF/ .output/src/main/js && cp src/main/js/NOTICE-JS .output/src/main/js/"
},
"repository": {
@@ -1,24 +1,13 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"target": "es2017",
"esModuleInterop": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"typeRoots": [
"../../node_modules/@types",
"node_modules/@types",
"typings"
],
"outDir": ".output",
"rootDir" : ".",
"incremental": true
"rootDir" : "."
},
"include": [
"src/main/**/*",
@@ -0,0 +1,34 @@
{
"name": "joynr-deps",
"version": "1.11.0-SNAPSHOT",
"description": "shared dev dependencies for joynr project setup",
"license": "Apache-2.0",
"homepage": "http://joynr.io",
"bugs": "https://github.com/bmwcarit/joynr/issues",
"private": true,
"devDependencies": {
"@types/jest": "24.0.11",
"@types/node": "8.9.4",
"@typescript-eslint/eslint-plugin": "1.7.0",
"@typescript-eslint/parser": "1.7.0",
"eslint": "5.16.0",
"eslint-config-prettier": "4.2.0",
"eslint-plugin-jest": "22.5.1",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-promise": "3.8.0",
"glob": "7.1.3",
"jest": "24.8.0",
"jest-circus": "24.8.0",
"jest-junit": "6.3.0",
"prettier": "1.17.1",
"ts-jest": "24.0.1",
"typescript": "3.4.3"
},
"engines": {
"node": ">=8.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/bmwcarit/joynr.git"
}
}
@@ -12,24 +12,8 @@
},
"devDependencies": {
"@types/lodash": "4.14.123",
"@types/jest": "24.0.11",
"@types/node": "8.9.4",
"@typescript-eslint/eslint-plugin": "1.7.0",
"@typescript-eslint/parser": "1.7.0",
"browserify": "16.3.0",
"eslint": "5.16.0",
"eslint-config-prettier": "4.2.0",
"eslint-plugin-jest": "22.5.1",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-promise": "3.8.0",
"jest": "24.8.0",
"jest-circus": "24.8.0",
"jest-junit": "6.3.0",
"prettier": "1.13.2",
"ts-jest": "24.0.1",
"ts-node": "8.3.0",
"tsify": "4.0.1",
"typescript": "3.4.3"
"tsify": "4.0.1"
},
"config": {
"domain": "joynr-inter-language-test-domain",
@@ -38,13 +22,13 @@
"scripts": {
"clean": "rm -rf node_modules ../../javascript/libjoynr-js/.output",
"install:browserify": "node bundle.js",
"startprovider": "node_modules/.bin/ts-node src/main/js/provider.ts $npm_package_config_domain",
"startprovider": "ts-node src/main/js/provider.ts $npm_package_config_domain",
"startproviderbundle": "node src/main/js/provider.bundle.js $npm_package_config_domain",
"startjasmine": "export domain=$npm_package_config_domain && node_modules/.bin/jest -i",
"startjasmine": "export domain=$npm_package_config_domain && ../../node_modules/.bin/jest -i",
"build:fast": "cd ../../javascript/libjoynr-js && npm run ts:package && cd - && npm i && npm run install:browserify && npm run lint",
"build": "npm run clean && npm run build:fast",
"format": "node_modules/.bin/prettier --write $npm_package_config_glob",
"lint": "node_modules/.bin/eslint $npm_package_config_glob",
"lint:fix": "node_modules/.bin/eslint $npm_package_config_glob --fix"
"format": "prettier --write $npm_package_config_glob",
"lint": "../../node_modules/.bin/eslint $npm_package_config_glob",
"lint:fix": "../../node_modules/.bin/eslint $npm_package_config_glob --fix"
}
}
@@ -1,25 +1,15 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"target": "es2017",
"esModuleInterop": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"typeRoots": [
"../../node_modules/@types",
"node_modules/@types",
"typings",
"../../javascript/libjoynr-js/typings"
],
"rootDir" : ".",
"outDir": ".output",
"incremental": true
"incremental": false
},
"include": [
"src/main/**/*",
@@ -15,6 +15,6 @@
"scripts": {
"build": "tsc",
"startprovider": "node .output/src/main/js/provider.js $npm_package_config_domain",
"startjest": "export domain=$npm_package_config_domain && export testcase=$npm_package_config_testcase && jest -i"
"startjest": "export domain=$npm_package_config_domain && export testcase=$npm_package_config_testcase && ../../node_modules/.bin/jest -i"
}
}
@@ -6,7 +6,6 @@
"main": "src/main/js/consumer.js",
"private": true,
"dependencies": {
"bluebird": "3.3.5",
"joynr": "file:../../../javascript/libjoynr-js/.output/src/main/js",
"test-base": "file:../../test-base",
"@types/node": "8.9.4",

0 comments on commit 1f48438

Please sign in to comment.
You can’t perform that action at this time.