diff --git a/.vscode/launch.json b/.vscode/launch.json index d7d1601..431aa1d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,13 +4,6 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Launch Program", - "program": "", - "args": ["${file}"] - }, { "type": "pwa-node", "request": "launch", @@ -35,11 +28,11 @@ "preLaunchTask": "npm: build", "args": [ "--disable-extensions", - "--extensionDevelopmentPath=${workspaceFolder}/packages/react-creates-vscode", - "--extensionTestsPath=${workspaceFolder}/packages/react-creates-vscode/dist/vscode-test/test-runner", - "${workspaceFolder}/packages/react-creates-vscode/dist/fixtures" + "--extensionDevelopmentPath=${workspaceFolder}/packages/vscode", + "--extensionTestsPath=${workspaceFolder}/packages/vscode/dist/vscode-test/test-runner", + "${workspaceFolder}/packages/vscode/dist/fixtures" ], - "outFiles": ["${workspaceFolder}/packages/react-creates-vscode/dist/vscode-test/**/*.js"] + "outFiles": ["${workspaceFolder}/packages/vscode/dist/vscode-test/**/*.js"] }, { "name": "Extension Dev", @@ -50,10 +43,10 @@ "preLaunchTask": "npm: build", "args": [ "--disable-extensions", - "--extensionDevelopmentPath=${workspaceFolder}/packages/react-creates-vscode", - "${workspaceFolder}/packages/react-creates-vscode/dist/fixtures" + "--extensionDevelopmentPath=${workspaceFolder}/packages/vscode", + "${workspaceFolder}/packages/vscode/dist/fixtures" ], - "outFiles": ["${workspaceFolder}/packages/react-creates-vscode/dist/vscode-test/**/*.js"] + "outFiles": ["${workspaceFolder}/packages/vscode/dist/vscode-test/**/*.js"] } ] } diff --git a/lerna.json b/lerna.json deleted file mode 100644 index e9dcde3..0000000 --- a/lerna.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "version": "2.0.6", - "useWorkspaces": true -} diff --git a/package-lock.json b/package-lock.json index 86faff0..c861bf1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -159,19 +159,19 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.2.tgz", - "integrity": "sha512-lTVWHs7O2hjBFZunXTZYnYqtB9GakA1lnxIf+gKq2nY5gxkkNi/lQvveW6t8gFdOHTg6nG50Xs95PrLqVpcaLg==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.3.tgz", + "integrity": "sha512-uGo44hIwoLGNyduRpjdEpovcbMdd+Nv7amtmJxnKmI8xj6yd5LncmSwDa5NgX/41lIFJtkjD6YdVfgEzPfJ5UA==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.3.1", + "espree": "^9.3.2", "globals": "^13.9.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { @@ -224,9 +224,9 @@ "dev": true }, "node_modules/@jest/expect-utils": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.0.2.tgz", - "integrity": "sha512-YryfH2zN5c7M8eLtn9oTBRj1sfD+X4cHNXJnTejqCveOS33wADEZUxJ7de5++lRvByNpRpfAnc8zTK7yrUJqgA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.1.0.tgz", + "integrity": "sha512-5BrG48dpC0sB80wpeIX5FU6kolDJI4K0n5BM9a5V38MGx0pyRvUBSS0u2aNTdDzmOrCjhOg8pGs6a20ivYkdmw==", "dev": true, "dependencies": { "jest-get-type": "^28.0.2" @@ -248,9 +248,9 @@ } }, "node_modules/@jest/types": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.0.2.tgz", - "integrity": "sha512-hi3jUdm9iht7I2yrV5C4s3ucCJHUP8Eh3W6rQ1s4n/Qw9rQgsda4eqCt+r3BKRi7klVmZfQlMx1nGlzNMP2d8A==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.0.tgz", + "integrity": "sha512-xmEggMPr317MIOjjDoZ4ejCSr9Lpbt/u34+dvc99t7DS8YirW5rwZEhzKPC2BMUFkUhI48qs6qLUSGw5FuL0GA==", "dev": true, "dependencies": { "@jest/schemas": "^28.0.2", @@ -299,6 +299,10 @@ "node": ">= 8" } }, + "node_modules/@react-creates/core": { + "resolved": "packages/core", + "link": true + }, "node_modules/@sinclair/typebox": { "version": "0.23.5", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.23.5.tgz", @@ -343,9 +347,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", - "integrity": "sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==", + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.2.tgz", + "integrity": "sha512-Z1nseZON+GEnFjJc04sv4NSALGjhFwy6K0HXt7qsn5ArfAKtb63dXNJHf+1YW6IpOIYRBGUbu3GwJdj8DGnCjA==", "dev": true, "dependencies": { "@types/estree": "*", @@ -450,9 +454,9 @@ "dev": true }, "node_modules/@types/react": { - "version": "18.0.8", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.8.tgz", - "integrity": "sha512-+j2hk9BzCOrrOSJASi5XiOyBbERk9jG5O73Ya4M0env5Ixi6vUNli4qy994AINcEF+1IEHISYFfIT4zwr++LKw==", + "version": "18.0.9", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.9.tgz", + "integrity": "sha512-9bjbg1hJHUm4De19L1cHiW0Jvx3geel6Qczhjd0qY5VKVE2X5+x77YxAepuCwVh4vrgZJdgEJw48zrhRIeF4Nw==", "dev": true, "dependencies": { "@types/prop-types": "*", @@ -492,9 +496,9 @@ "dev": true }, "node_modules/@types/vscode": { - "version": "1.66.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.66.0.tgz", - "integrity": "sha512-ZfJck4M7nrGasfs4A4YbUoxis3Vu24cETw3DERsNYtDZmYSYtk6ljKexKFKhImO/ZmY6ZMsmegu2FPkXoUFImA==" + "version": "1.67.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.67.0.tgz", + "integrity": "sha512-GH8BDf8cw9AC9080uneJfulhSa7KHSMI2s/CyKePXoGNos9J486w2V4YKoeNUqIEkW4hKoEAWp6/cXTwyGj47g==" }, "node_modules/@types/yargs": { "version": "17.0.10", @@ -1047,14 +1051,14 @@ "dev": true }, "node_modules/array-includes": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", - "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", "get-intrinsic": "^1.1.1", "is-string": "^1.0.7" }, @@ -1357,9 +1361,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001335", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001335.tgz", - "integrity": "sha512-ddP1Tgm7z2iIxu6QTtbZUv6HJxSaV/PZeSrWFZtbY4JZ69tOeNhBCl3HyRQgeNZKE5AOn1kpV7fhljigy0Ty3w==", + "version": "1.0.30001338", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001338.tgz", + "integrity": "sha512-1gLHWyfVoRDsHieO+CaeYe7jSo/MT7D7lhaXUiwwbuR5BwQxORs0f1tAwUSQr3YbxRXJvxHM/PA5FfPQRnsPeQ==", "dev": true, "funding": [ { @@ -1861,9 +1865,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.131", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.131.tgz", - "integrity": "sha512-oi3YPmaP87hiHn0c4ePB67tXaF+ldGhxvZnT19tW9zX6/Ej+pLN0Afja5rQ6S+TND7I9EuwQTT8JYn1k7R7rrw==", + "version": "1.4.137", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.137.tgz", + "integrity": "sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==", "dev": true }, "node_modules/emoji-regex": { @@ -1925,17 +1929,19 @@ } }, "node_modules/es-abstract": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.5.tgz", - "integrity": "sha512-Aa2G2+Rd3b6kxEUKTF4TaW67czBLyAv3z7VOhYRU50YBx+bbsYZ9xQP4lMNazePuFlybXI0V4MruPos7qUo5fA==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.0.tgz", + "integrity": "sha512-URbD8tgRthKD3YcC39vbvSDrX23upXnPcnGAjQfgxXF5ID75YcENawc9ZX/9iTP9ptUyfCLIxTTuMYoRfiOVKA==", "dev": true, "dependencies": { "call-bind": "^1.0.2", "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", "get-intrinsic": "^1.1.1", "get-symbol-description": "^1.0.0", "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", "has-symbols": "^1.0.3", "internal-slot": "^1.0.3", "is-callable": "^1.2.4", @@ -1947,9 +1953,10 @@ "object-inspect": "^1.12.0", "object-keys": "^1.1.1", "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" + "regexp.prototype.flags": "^1.4.1", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -2012,12 +2019,12 @@ } }, "node_modules/eslint": { - "version": "8.14.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz", - "integrity": "sha512-3/CE4aJX7LNEiE3i6FeodHmI/38GZtWCsAtsymScmzYapx8q1nVVb+eLcLSzATmCPXw5pT4TqVs1E0OmxAd9tw==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.15.0.tgz", + "integrity": "sha512-GG5USZ1jhCu8HJkzGgeK8/+RGnHaNYZGrGDzUtigK3BsGESW/rs2az23XqE0WVwDxy1VRvvjSSGu5nB0Bu+6SA==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.2.2", + "@eslint/eslintrc": "^1.2.3", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -2028,7 +2035,7 @@ "eslint-scope": "^7.1.1", "eslint-utils": "^3.0.0", "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", + "espree": "^9.3.2", "esquery": "^1.4.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -2044,7 +2051,7 @@ "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", "regexpp": "^3.2.0", @@ -2217,13 +2224,13 @@ } }, "node_modules/espree": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.1.tgz", - "integrity": "sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ==", + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", + "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", "dev": true, "dependencies": { - "acorn": "^8.7.0", - "acorn-jsx": "^5.3.1", + "acorn": "^8.7.1", + "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -2314,16 +2321,16 @@ } }, "node_modules/expect": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-28.0.2.tgz", - "integrity": "sha512-X0qIuI/zKv98k34tM+uGeOgAC73lhs4vROF9MkPk94C1zujtwv4Cla8SxhWn0G1OwvG9gLLL7RjFBkwGVaZ83w==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-28.1.0.tgz", + "integrity": "sha512-qFXKl8Pmxk8TBGfaFKRtcQjfXEnKAs+dmlxdwvukJZorwrAabT7M3h8oLOG01I2utEhkmUTi17CHaPBovZsKdw==", "dev": true, "dependencies": { - "@jest/expect-utils": "^28.0.2", + "@jest/expect-utils": "^28.1.0", "jest-get-type": "^28.0.2", - "jest-matcher-utils": "^28.0.2", - "jest-message-util": "^28.0.2", - "jest-util": "^28.0.2" + "jest-matcher-utils": "^28.1.0", + "jest-message-util": "^28.1.0", + "jest-util": "^28.1.0" }, "engines": { "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" @@ -2568,6 +2575,24 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", @@ -3381,15 +3406,15 @@ } }, "node_modules/jest-diff": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.0.2.tgz", - "integrity": "sha512-33Rnf821Y54OAloav0PGNWHlbtEorXpjwchnToyyWbec10X74FOW7hGfvrXLGz7xOe2dz0uo9JVFAHHj/2B5pg==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.0.tgz", + "integrity": "sha512-8eFd3U3OkIKRtlasXfiAQfbovgFgRDb0Ngcs2E+FMeBZ4rUezqIaGjuyggJBp+llosQXNEWofk/Sz4Hr5gMUhA==", "dev": true, "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^28.0.2", "jest-get-type": "^28.0.2", - "pretty-format": "^28.0.2" + "pretty-format": "^28.1.0" }, "engines": { "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" @@ -3405,33 +3430,33 @@ } }, "node_modules/jest-matcher-utils": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.0.2.tgz", - "integrity": "sha512-SxtTiI2qLJHFtOz/bySStCnwCvISAuxQ/grS+74dfTy5AuJw3Sgj9TVUvskcnImTfpzLoMCDJseRaeRrVYbAOA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.1.0.tgz", + "integrity": "sha512-onnax0n2uTLRQFKAjC7TuaxibrPSvZgKTcSCnNUz/tOjJ9UhxNm7ZmPpoQavmTDUjXvUQ8KesWk2/VdrxIFzTQ==", "dev": true, "dependencies": { "chalk": "^4.0.0", - "jest-diff": "^28.0.2", + "jest-diff": "^28.1.0", "jest-get-type": "^28.0.2", - "pretty-format": "^28.0.2" + "pretty-format": "^28.1.0" }, "engines": { "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" } }, "node_modules/jest-message-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.0.2.tgz", - "integrity": "sha512-knK7XyojvwYh1XiF2wmVdskgM/uN11KsjcEWWHfnMZNEdwXCrqB4sCBO94F4cfiAwCS8WFV6CDixDwPlMh/wdA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.0.tgz", + "integrity": "sha512-RpA8mpaJ/B2HphDMiDlrAZdDytkmwFqgjDZovM21F35lHGeUeCvYmm6W+sbQ0ydaLpg5bFAUuWG1cjqOl8vqrw==", "dev": true, "dependencies": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.0.2", + "@jest/types": "^28.1.0", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^28.0.2", + "pretty-format": "^28.1.0", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, @@ -3440,12 +3465,12 @@ } }, "node_modules/jest-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.0.2.tgz", - "integrity": "sha512-EVdpIRCC8lzqhp9A0u0aAKlsFIzufK6xKxNK7awsnebTdOP4hpyQW5o6Ox2qPl8gbeUKYF+POLyItaND53kpGA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.0.tgz", + "integrity": "sha512-qYdCKD77k4Hwkose2YBEqQk7PzUf/NSE+rutzceduFveQREeH6b+89Dc9+wjX9dAwHcgdx4yedGA3FQlU/qCTA==", "dev": true, "dependencies": { - "@jest/types": "^28.0.2", + "@jest/types": "^28.1.0", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -4397,13 +4422,13 @@ } }, "node_modules/object.hasown": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.0.tgz", - "integrity": "sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.1.tgz", + "integrity": "sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A==", "dev": true, "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4751,9 +4776,9 @@ } }, "node_modules/pretty-format": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.0.2.tgz", - "integrity": "sha512-UmGZ1IERwS3yY35LDMTaBUYI1w4udZDdJGGT/DqQeKG9ZLDn7/K2Jf/JtYSRiHCCKMHvUA+zsEGSmHdpaVp1yw==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.0.tgz", + "integrity": "sha512-79Z4wWOYCdvQkEoEuSlBhHJqWeZ8D8YRPiPctJFCtvuaClGpiwiQYSCUOE6IEKUbbFukKOTFIUAXE8N4EQTo1Q==", "dev": true, "dependencies": { "@jest/schemas": "^28.0.2", @@ -4900,11 +4925,11 @@ } }, "node_modules/react-creates": { - "resolved": "packages/react-creates", + "resolved": "packages/cli", "link": true }, "node_modules/react-creates-vsc": { - "resolved": "packages/react-creates-vscode", + "resolved": "packages/vscode", "link": true }, "node_modules/react-is": { @@ -6524,25 +6549,42 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/react-creates": { + "packages/cli": { + "name": "react-creates", "version": "2.0.6", "license": "ISC", "dependencies": { "@file-services/node": "^6.0.0", "@file-services/types": "^6.0.0", + "@react-creates/core": "^2.0.6", "@types/find-cache-dir": "^3.2.1", - "@types/mustache": "^4.1.2", "@types/prompts": "^2.0.14", "commander": "^9.2.0", "find-cache-dir": "^3.3.2", - "mustache": "^4.2.0", "prompts": "^2.4.2" }, "bin": { "react-creates": "bin/react-creates.js" } }, - "packages/react-creates-vscode": { + "packages/cli/node_modules/commander": { + "version": "9.2.0", + "license": "MIT", + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "packages/core": { + "name": "@react-creates/core", + "version": "2.0.6", + "license": "ISC", + "dependencies": { + "@file-services/types": "^6.0.0", + "@types/mustache": "^4.1.2", + "mustache": "^4.2.0" + } + }, + "packages/vscode": { "name": "react-creates-vsc", "version": "2.0.6", "dependencies": { @@ -6554,14 +6596,6 @@ "engines": { "vscode": "^1.45.0" } - }, - "packages/react-creates/node_modules/commander": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.2.0.tgz", - "integrity": "sha512-e2i4wANQiSXgnrBlIatyHtP1odfUp0BbV5Y5nEGbxtIrStkEOAAzCUirvLBNXHLr7kwLvJl6V+4V3XV9x7Wd9w==", - "engines": { - "node": "^12.20.0 || >=14" - } } }, "dependencies": { @@ -6656,19 +6690,19 @@ "dev": true }, "@eslint/eslintrc": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.2.tgz", - "integrity": "sha512-lTVWHs7O2hjBFZunXTZYnYqtB9GakA1lnxIf+gKq2nY5gxkkNi/lQvveW6t8gFdOHTg6nG50Xs95PrLqVpcaLg==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.3.tgz", + "integrity": "sha512-uGo44hIwoLGNyduRpjdEpovcbMdd+Nv7amtmJxnKmI8xj6yd5LncmSwDa5NgX/41lIFJtkjD6YdVfgEzPfJ5UA==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.3.1", + "espree": "^9.3.2", "globals": "^13.9.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" } }, @@ -6712,9 +6746,9 @@ "dev": true }, "@jest/expect-utils": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.0.2.tgz", - "integrity": "sha512-YryfH2zN5c7M8eLtn9oTBRj1sfD+X4cHNXJnTejqCveOS33wADEZUxJ7de5++lRvByNpRpfAnc8zTK7yrUJqgA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.1.0.tgz", + "integrity": "sha512-5BrG48dpC0sB80wpeIX5FU6kolDJI4K0n5BM9a5V38MGx0pyRvUBSS0u2aNTdDzmOrCjhOg8pGs6a20ivYkdmw==", "dev": true, "requires": { "jest-get-type": "^28.0.2" @@ -6730,9 +6764,9 @@ } }, "@jest/types": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.0.2.tgz", - "integrity": "sha512-hi3jUdm9iht7I2yrV5C4s3ucCJHUP8Eh3W6rQ1s4n/Qw9rQgsda4eqCt+r3BKRi7klVmZfQlMx1nGlzNMP2d8A==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.0.tgz", + "integrity": "sha512-xmEggMPr317MIOjjDoZ4ejCSr9Lpbt/u34+dvc99t7DS8YirW5rwZEhzKPC2BMUFkUhI48qs6qLUSGw5FuL0GA==", "dev": true, "requires": { "@jest/schemas": "^28.0.2", @@ -6769,6 +6803,14 @@ "fastq": "^1.6.0" } }, + "@react-creates/core": { + "version": "file:packages/core", + "requires": { + "@file-services/types": "^6.0.0", + "@types/mustache": "^4.1.2", + "mustache": "^4.2.0" + } + }, "@sinclair/typebox": { "version": "0.23.5", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.23.5.tgz", @@ -6799,9 +6841,9 @@ "requires": {} }, "@types/eslint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", - "integrity": "sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==", + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.2.tgz", + "integrity": "sha512-Z1nseZON+GEnFjJc04sv4NSALGjhFwy6K0HXt7qsn5ArfAKtb63dXNJHf+1YW6IpOIYRBGUbu3GwJdj8DGnCjA==", "dev": true, "requires": { "@types/estree": "*", @@ -6906,9 +6948,9 @@ "dev": true }, "@types/react": { - "version": "18.0.8", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.8.tgz", - "integrity": "sha512-+j2hk9BzCOrrOSJASi5XiOyBbERk9jG5O73Ya4M0env5Ixi6vUNli4qy994AINcEF+1IEHISYFfIT4zwr++LKw==", + "version": "18.0.9", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.9.tgz", + "integrity": "sha512-9bjbg1hJHUm4De19L1cHiW0Jvx3geel6Qczhjd0qY5VKVE2X5+x77YxAepuCwVh4vrgZJdgEJw48zrhRIeF4Nw==", "dev": true, "requires": { "@types/prop-types": "*", @@ -6948,9 +6990,9 @@ "dev": true }, "@types/vscode": { - "version": "1.66.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.66.0.tgz", - "integrity": "sha512-ZfJck4M7nrGasfs4A4YbUoxis3Vu24cETw3DERsNYtDZmYSYtk6ljKexKFKhImO/ZmY6ZMsmegu2FPkXoUFImA==" + "version": "1.67.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.67.0.tgz", + "integrity": "sha512-GH8BDf8cw9AC9080uneJfulhSa7KHSMI2s/CyKePXoGNos9J486w2V4YKoeNUqIEkW4hKoEAWp6/cXTwyGj47g==" }, "@types/yargs": { "version": "17.0.10", @@ -7364,14 +7406,14 @@ "dev": true }, "array-includes": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", - "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", "dev": true, "requires": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", "get-intrinsic": "^1.1.1", "is-string": "^1.0.7" } @@ -7575,9 +7617,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001335", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001335.tgz", - "integrity": "sha512-ddP1Tgm7z2iIxu6QTtbZUv6HJxSaV/PZeSrWFZtbY4JZ69tOeNhBCl3HyRQgeNZKE5AOn1kpV7fhljigy0Ty3w==", + "version": "1.0.30001338", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001338.tgz", + "integrity": "sha512-1gLHWyfVoRDsHieO+CaeYe7jSo/MT7D7lhaXUiwwbuR5BwQxORs0f1tAwUSQr3YbxRXJvxHM/PA5FfPQRnsPeQ==", "dev": true }, "chainsaw": { @@ -7948,9 +7990,9 @@ } }, "electron-to-chromium": { - "version": "1.4.131", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.131.tgz", - "integrity": "sha512-oi3YPmaP87hiHn0c4ePB67tXaF+ldGhxvZnT19tW9zX6/Ej+pLN0Afja5rQ6S+TND7I9EuwQTT8JYn1k7R7rrw==", + "version": "1.4.137", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.137.tgz", + "integrity": "sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==", "dev": true }, "emoji-regex": { @@ -8000,17 +8042,19 @@ } }, "es-abstract": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.5.tgz", - "integrity": "sha512-Aa2G2+Rd3b6kxEUKTF4TaW67czBLyAv3z7VOhYRU50YBx+bbsYZ9xQP4lMNazePuFlybXI0V4MruPos7qUo5fA==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.0.tgz", + "integrity": "sha512-URbD8tgRthKD3YcC39vbvSDrX23upXnPcnGAjQfgxXF5ID75YcENawc9ZX/9iTP9ptUyfCLIxTTuMYoRfiOVKA==", "dev": true, "requires": { "call-bind": "^1.0.2", "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", "get-intrinsic": "^1.1.1", "get-symbol-description": "^1.0.0", "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", "has-symbols": "^1.0.3", "internal-slot": "^1.0.3", "is-callable": "^1.2.4", @@ -8022,9 +8066,10 @@ "object-inspect": "^1.12.0", "object-keys": "^1.1.1", "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" + "regexp.prototype.flags": "^1.4.1", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" } }, "es-module-lexer": { @@ -8066,12 +8111,12 @@ "dev": true }, "eslint": { - "version": "8.14.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz", - "integrity": "sha512-3/CE4aJX7LNEiE3i6FeodHmI/38GZtWCsAtsymScmzYapx8q1nVVb+eLcLSzATmCPXw5pT4TqVs1E0OmxAd9tw==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.15.0.tgz", + "integrity": "sha512-GG5USZ1jhCu8HJkzGgeK8/+RGnHaNYZGrGDzUtigK3BsGESW/rs2az23XqE0WVwDxy1VRvvjSSGu5nB0Bu+6SA==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.2.2", + "@eslint/eslintrc": "^1.2.3", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -8082,7 +8127,7 @@ "eslint-scope": "^7.1.1", "eslint-utils": "^3.0.0", "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", + "espree": "^9.3.2", "esquery": "^1.4.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -8098,7 +8143,7 @@ "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", "regexpp": "^3.2.0", @@ -8221,13 +8266,13 @@ "dev": true }, "espree": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.1.tgz", - "integrity": "sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ==", + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", + "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", "dev": true, "requires": { - "acorn": "^8.7.0", - "acorn-jsx": "^5.3.1", + "acorn": "^8.7.1", + "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.3.0" } }, @@ -8291,16 +8336,16 @@ "dev": true }, "expect": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-28.0.2.tgz", - "integrity": "sha512-X0qIuI/zKv98k34tM+uGeOgAC73lhs4vROF9MkPk94C1zujtwv4Cla8SxhWn0G1OwvG9gLLL7RjFBkwGVaZ83w==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-28.1.0.tgz", + "integrity": "sha512-qFXKl8Pmxk8TBGfaFKRtcQjfXEnKAs+dmlxdwvukJZorwrAabT7M3h8oLOG01I2utEhkmUTi17CHaPBovZsKdw==", "dev": true, "requires": { - "@jest/expect-utils": "^28.0.2", + "@jest/expect-utils": "^28.1.0", "jest-get-type": "^28.0.2", - "jest-matcher-utils": "^28.0.2", - "jest-message-util": "^28.0.2", - "jest-util": "^28.0.2" + "jest-matcher-utils": "^28.1.0", + "jest-message-util": "^28.1.0", + "jest-util": "^28.1.0" } }, "fast-deep-equal": { @@ -8497,6 +8542,18 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + } + }, "functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", @@ -9065,15 +9122,15 @@ "dev": true }, "jest-diff": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.0.2.tgz", - "integrity": "sha512-33Rnf821Y54OAloav0PGNWHlbtEorXpjwchnToyyWbec10X74FOW7hGfvrXLGz7xOe2dz0uo9JVFAHHj/2B5pg==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.0.tgz", + "integrity": "sha512-8eFd3U3OkIKRtlasXfiAQfbovgFgRDb0Ngcs2E+FMeBZ4rUezqIaGjuyggJBp+llosQXNEWofk/Sz4Hr5gMUhA==", "dev": true, "requires": { "chalk": "^4.0.0", "diff-sequences": "^28.0.2", "jest-get-type": "^28.0.2", - "pretty-format": "^28.0.2" + "pretty-format": "^28.1.0" } }, "jest-get-type": { @@ -9083,41 +9140,41 @@ "dev": true }, "jest-matcher-utils": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.0.2.tgz", - "integrity": "sha512-SxtTiI2qLJHFtOz/bySStCnwCvISAuxQ/grS+74dfTy5AuJw3Sgj9TVUvskcnImTfpzLoMCDJseRaeRrVYbAOA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.1.0.tgz", + "integrity": "sha512-onnax0n2uTLRQFKAjC7TuaxibrPSvZgKTcSCnNUz/tOjJ9UhxNm7ZmPpoQavmTDUjXvUQ8KesWk2/VdrxIFzTQ==", "dev": true, "requires": { "chalk": "^4.0.0", - "jest-diff": "^28.0.2", + "jest-diff": "^28.1.0", "jest-get-type": "^28.0.2", - "pretty-format": "^28.0.2" + "pretty-format": "^28.1.0" } }, "jest-message-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.0.2.tgz", - "integrity": "sha512-knK7XyojvwYh1XiF2wmVdskgM/uN11KsjcEWWHfnMZNEdwXCrqB4sCBO94F4cfiAwCS8WFV6CDixDwPlMh/wdA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.0.tgz", + "integrity": "sha512-RpA8mpaJ/B2HphDMiDlrAZdDytkmwFqgjDZovM21F35lHGeUeCvYmm6W+sbQ0ydaLpg5bFAUuWG1cjqOl8vqrw==", "dev": true, "requires": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.0.2", + "@jest/types": "^28.1.0", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^28.0.2", + "pretty-format": "^28.1.0", "slash": "^3.0.0", "stack-utils": "^2.0.3" } }, "jest-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.0.2.tgz", - "integrity": "sha512-EVdpIRCC8lzqhp9A0u0aAKlsFIzufK6xKxNK7awsnebTdOP4hpyQW5o6Ox2qPl8gbeUKYF+POLyItaND53kpGA==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.0.tgz", + "integrity": "sha512-qYdCKD77k4Hwkose2YBEqQk7PzUf/NSE+rutzceduFveQREeH6b+89Dc9+wjX9dAwHcgdx4yedGA3FQlU/qCTA==", "dev": true, "requires": { - "@jest/types": "^28.0.2", + "@jest/types": "^28.1.0", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -9852,13 +9909,13 @@ } }, "object.hasown": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.0.tgz", - "integrity": "sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.1.tgz", + "integrity": "sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A==", "dev": true, "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" } }, "object.values": { @@ -10114,9 +10171,9 @@ "dev": true }, "pretty-format": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.0.2.tgz", - "integrity": "sha512-UmGZ1IERwS3yY35LDMTaBUYI1w4udZDdJGGT/DqQeKG9ZLDn7/K2Jf/JtYSRiHCCKMHvUA+zsEGSmHdpaVp1yw==", + "version": "28.1.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.0.tgz", + "integrity": "sha512-79Z4wWOYCdvQkEoEuSlBhHJqWeZ8D8YRPiPctJFCtvuaClGpiwiQYSCUOE6IEKUbbFukKOTFIUAXE8N4EQTo1Q==", "dev": true, "requires": { "@jest/schemas": "^28.0.2", @@ -10228,28 +10285,25 @@ } }, "react-creates": { - "version": "file:packages/react-creates", + "version": "file:packages/cli", "requires": { "@file-services/node": "^6.0.0", "@file-services/types": "^6.0.0", + "@react-creates/core": "^2.0.6", "@types/find-cache-dir": "^3.2.1", - "@types/mustache": "^4.1.2", "@types/prompts": "^2.0.14", "commander": "^9.2.0", "find-cache-dir": "^3.3.2", - "mustache": "^4.2.0", "prompts": "^2.4.2" }, "dependencies": { "commander": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.2.0.tgz", - "integrity": "sha512-e2i4wANQiSXgnrBlIatyHtP1odfUp0BbV5Y5nEGbxtIrStkEOAAzCUirvLBNXHLr7kwLvJl6V+4V3XV9x7Wd9w==" + "version": "9.2.0" } } }, "react-creates-vsc": { - "version": "file:packages/react-creates-vscode", + "version": "file:packages/vscode", "requires": { "@file-services/node": "^6.0.0", "@file-services/types": "^6.0.0", diff --git a/packages/react-creates/README.md b/packages/cli/README.md similarity index 99% rename from packages/react-creates/README.md rename to packages/cli/README.md index 766cb4c..4901f04 100644 --- a/packages/react-creates/README.md +++ b/packages/cli/README.md @@ -9,7 +9,7 @@ Simple and easy to use react CLI.
React creates for you useful and common tools that adapt themselves to your project for faster and easier development

- +

# Table of content diff --git a/packages/cli/bin/react-creates.js b/packages/cli/bin/react-creates.js new file mode 100755 index 0000000..4f46430 --- /dev/null +++ b/packages/cli/bin/react-creates.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require('../dist/cli'); diff --git a/packages/react-creates/fixtures/javascript-class-prop-types/Component.js b/packages/cli/fixtures/javascript-class-prop-types/Component.js similarity index 100% rename from packages/react-creates/fixtures/javascript-class-prop-types/Component.js rename to packages/cli/fixtures/javascript-class-prop-types/Component.js diff --git a/packages/react-creates/fixtures/javascript-class-prop-types/Component.test.js b/packages/cli/fixtures/javascript-class-prop-types/Component.test.js similarity index 100% rename from packages/react-creates/fixtures/javascript-class-prop-types/Component.test.js rename to packages/cli/fixtures/javascript-class-prop-types/Component.test.js diff --git a/packages/react-creates/fixtures/javascript-class-prop-types/index.js b/packages/cli/fixtures/javascript-class-prop-types/index.js similarity index 100% rename from packages/react-creates/fixtures/javascript-class-prop-types/index.js rename to packages/cli/fixtures/javascript-class-prop-types/index.js diff --git a/packages/react-creates/fixtures/javascript-class/Component.js b/packages/cli/fixtures/javascript-class/Component.js similarity index 100% rename from packages/react-creates/fixtures/javascript-class/Component.js rename to packages/cli/fixtures/javascript-class/Component.js diff --git a/packages/react-creates/fixtures/javascript-class/Component.test.js b/packages/cli/fixtures/javascript-class/Component.test.js similarity index 100% rename from packages/react-creates/fixtures/javascript-class/Component.test.js rename to packages/cli/fixtures/javascript-class/Component.test.js diff --git a/packages/react-creates/fixtures/javascript-class/index.js b/packages/cli/fixtures/javascript-class/index.js similarity index 100% rename from packages/react-creates/fixtures/javascript-class/index.js rename to packages/cli/fixtures/javascript-class/index.js diff --git a/packages/react-creates/fixtures/javascript-function-prop-types/Component.js b/packages/cli/fixtures/javascript-function-prop-types/Component.js similarity index 100% rename from packages/react-creates/fixtures/javascript-function-prop-types/Component.js rename to packages/cli/fixtures/javascript-function-prop-types/Component.js diff --git a/packages/react-creates/fixtures/javascript-function-prop-types/Component.test.js b/packages/cli/fixtures/javascript-function-prop-types/Component.test.js similarity index 100% rename from packages/react-creates/fixtures/javascript-function-prop-types/Component.test.js rename to packages/cli/fixtures/javascript-function-prop-types/Component.test.js diff --git a/packages/react-creates/fixtures/javascript-function-prop-types/index.js b/packages/cli/fixtures/javascript-function-prop-types/index.js similarity index 100% rename from packages/react-creates/fixtures/javascript-function-prop-types/index.js rename to packages/cli/fixtures/javascript-function-prop-types/index.js diff --git a/packages/react-creates/fixtures/javascript-function/Component.js b/packages/cli/fixtures/javascript-function/Component.js similarity index 100% rename from packages/react-creates/fixtures/javascript-function/Component.js rename to packages/cli/fixtures/javascript-function/Component.js diff --git a/packages/react-creates/fixtures/javascript-function/Component.test.js b/packages/cli/fixtures/javascript-function/Component.test.js similarity index 100% rename from packages/react-creates/fixtures/javascript-function/Component.test.js rename to packages/cli/fixtures/javascript-function/Component.test.js diff --git a/packages/react-creates/fixtures/javascript-function/index.js b/packages/cli/fixtures/javascript-function/index.js similarity index 100% rename from packages/react-creates/fixtures/javascript-function/index.js rename to packages/cli/fixtures/javascript-function/index.js diff --git a/packages/react-creates/fixtures/no-style-specified/Component.test.tsx b/packages/cli/fixtures/no-style-specified/Component.test.tsx similarity index 100% rename from packages/react-creates/fixtures/no-style-specified/Component.test.tsx rename to packages/cli/fixtures/no-style-specified/Component.test.tsx diff --git a/packages/react-creates/fixtures/no-style-specified/Component.tsx b/packages/cli/fixtures/no-style-specified/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/no-style-specified/Component.tsx rename to packages/cli/fixtures/no-style-specified/Component.tsx diff --git a/packages/react-creates/fixtures/no-style-specified/index.tsx b/packages/cli/fixtures/no-style-specified/index.tsx similarity index 100% rename from packages/react-creates/fixtures/no-style-specified/index.tsx rename to packages/cli/fixtures/no-style-specified/index.tsx diff --git a/packages/react-creates/fixtures/skip-test/Component.tsx b/packages/cli/fixtures/skip-test/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/skip-test/Component.tsx rename to packages/cli/fixtures/skip-test/Component.tsx diff --git a/packages/react-creates/fixtures/skip-test/index.tsx b/packages/cli/fixtures/skip-test/index.tsx similarity index 100% rename from packages/react-creates/fixtures/skip-test/index.tsx rename to packages/cli/fixtures/skip-test/index.tsx diff --git a/packages/react-creates/fixtures/style-css/Component.test.tsx b/packages/cli/fixtures/style-css/Component.test.tsx similarity index 100% rename from packages/react-creates/fixtures/style-css/Component.test.tsx rename to packages/cli/fixtures/style-css/Component.test.tsx diff --git a/packages/react-creates/fixtures/style-css/Component.tsx b/packages/cli/fixtures/style-css/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/style-css/Component.tsx rename to packages/cli/fixtures/style-css/Component.tsx diff --git a/packages/react-creates/fixtures/style-css/index.tsx b/packages/cli/fixtures/style-css/index.tsx similarity index 100% rename from packages/react-creates/fixtures/style-css/index.tsx rename to packages/cli/fixtures/style-css/index.tsx diff --git a/packages/react-creates/fixtures/style-css/style.css b/packages/cli/fixtures/style-css/style.css similarity index 100% rename from packages/react-creates/fixtures/style-css/style.css rename to packages/cli/fixtures/style-css/style.css diff --git a/packages/react-creates/fixtures/style-none/Component.test.tsx b/packages/cli/fixtures/style-none/Component.test.tsx similarity index 100% rename from packages/react-creates/fixtures/style-none/Component.test.tsx rename to packages/cli/fixtures/style-none/Component.test.tsx diff --git a/packages/react-creates/fixtures/style-none/Component.tsx b/packages/cli/fixtures/style-none/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/style-none/Component.tsx rename to packages/cli/fixtures/style-none/Component.tsx diff --git a/packages/react-creates/fixtures/style-none/index.tsx b/packages/cli/fixtures/style-none/index.tsx similarity index 100% rename from packages/react-creates/fixtures/style-none/index.tsx rename to packages/cli/fixtures/style-none/index.tsx diff --git a/packages/react-creates/fixtures/style-scss/Component.test.tsx b/packages/cli/fixtures/style-scss/Component.test.tsx similarity index 100% rename from packages/react-creates/fixtures/style-scss/Component.test.tsx rename to packages/cli/fixtures/style-scss/Component.test.tsx diff --git a/packages/react-creates/fixtures/style-scss/Component.tsx b/packages/cli/fixtures/style-scss/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/style-scss/Component.tsx rename to packages/cli/fixtures/style-scss/Component.tsx diff --git a/packages/react-creates/fixtures/style-scss/index.tsx b/packages/cli/fixtures/style-scss/index.tsx similarity index 100% rename from packages/react-creates/fixtures/style-scss/index.tsx rename to packages/cli/fixtures/style-scss/index.tsx diff --git a/packages/react-creates/fixtures/style-scss/style.scss b/packages/cli/fixtures/style-scss/style.scss similarity index 100% rename from packages/react-creates/fixtures/style-scss/style.scss rename to packages/cli/fixtures/style-scss/style.scss diff --git a/packages/react-creates/fixtures/typescript-class/Component.test.tsx b/packages/cli/fixtures/typescript-class/Component.test.tsx similarity index 100% rename from packages/react-creates/fixtures/typescript-class/Component.test.tsx rename to packages/cli/fixtures/typescript-class/Component.test.tsx diff --git a/packages/react-creates/fixtures/typescript-class/Component.tsx b/packages/cli/fixtures/typescript-class/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/typescript-class/Component.tsx rename to packages/cli/fixtures/typescript-class/Component.tsx diff --git a/packages/react-creates/fixtures/typescript-class/index.tsx b/packages/cli/fixtures/typescript-class/index.tsx similarity index 100% rename from packages/react-creates/fixtures/typescript-class/index.tsx rename to packages/cli/fixtures/typescript-class/index.tsx diff --git a/packages/react-creates/fixtures/typescript-function/Component.test.tsx b/packages/cli/fixtures/typescript-function/Component.test.tsx similarity index 100% rename from packages/react-creates/fixtures/typescript-function/Component.test.tsx rename to packages/cli/fixtures/typescript-function/Component.test.tsx diff --git a/packages/react-creates/fixtures/typescript-function/Component.tsx b/packages/cli/fixtures/typescript-function/Component.tsx similarity index 100% rename from packages/react-creates/fixtures/typescript-function/Component.tsx rename to packages/cli/fixtures/typescript-function/Component.tsx diff --git a/packages/react-creates/fixtures/typescript-function/index.tsx b/packages/cli/fixtures/typescript-function/index.tsx similarity index 100% rename from packages/react-creates/fixtures/typescript-function/index.tsx rename to packages/cli/fixtures/typescript-function/index.tsx diff --git a/packages/react-creates/package.json b/packages/cli/package.json similarity index 89% rename from packages/react-creates/package.json rename to packages/cli/package.json index eadc1ef..5abbd20 100644 --- a/packages/react-creates/package.json +++ b/packages/cli/package.json @@ -14,8 +14,8 @@ "bin": { "react-creates": "bin/react-creates.js" }, - "homepage": "https://github.com/tzachbon/react-creates/tree/master/packages/react-creates", - "readme": "https://github.com/tzachbon/react-creates/tree/master/packages/react-creates/README.md", + "homepage": "https://github.com/tzachbon/react-creates/tree/master/packages/cli", + "readme": "https://github.com/tzachbon/react-creates/tree/master/packages/cli/README.md", "scripts": {}, "keywords": [ "react", @@ -38,11 +38,10 @@ "@file-services/node": "^6.0.0", "@file-services/types": "^6.0.0", "@types/find-cache-dir": "^3.2.1", - "@types/mustache": "^4.1.2", "@types/prompts": "^2.0.14", + "@react-creates/core": "^2.0.6", "commander": "^9.2.0", "find-cache-dir": "^3.3.2", - "mustache": "^4.2.0", "prompts": "^2.4.2" } } diff --git a/packages/react-creates/screencast.gif b/packages/cli/screencast.gif similarity index 100% rename from packages/react-creates/screencast.gif rename to packages/cli/screencast.gif diff --git a/packages/react-creates/src/cli/cli.ts b/packages/cli/src/cli.ts similarity index 100% rename from packages/react-creates/src/cli/cli.ts rename to packages/cli/src/cli.ts diff --git a/packages/react-creates/src/cli/commands/clear-cache.ts b/packages/cli/src/commands/clear-cache.ts similarity index 100% rename from packages/react-creates/src/cli/commands/clear-cache.ts rename to packages/cli/src/commands/clear-cache.ts diff --git a/packages/react-creates/src/cli/commands/create-component.ts b/packages/cli/src/commands/create-component.ts similarity index 93% rename from packages/react-creates/src/cli/commands/create-component.ts rename to packages/cli/src/commands/create-component.ts index 917a12d..0a06790 100644 --- a/packages/react-creates/src/cli/commands/create-component.ts +++ b/packages/cli/src/commands/create-component.ts @@ -7,7 +7,7 @@ import { CreateComponentOption, resolveCreateComponentOptions, CreateComponentMeta, -} from '../../create-component'; +} from '@react-creates/core'; import prompts from 'prompts'; import { FileSystemCache } from '../file-system-cache'; @@ -30,6 +30,12 @@ export function createComponentCommand() { { name, ...options }, { fileSystem: nodeFs, + logger: console, + templateDirectory: nodeFs.join( + nodeFs.dirname(require.resolve('react-creates/package.json')), + 'templates', + 'component' + ), onFinished({ name: _name, directory: _directory, ...resolvedOptions }) { if (optionsCache && !options.fresh && !options.yes) { for (const [key, value] of Object.entries(resolvedOptions)) { diff --git a/packages/react-creates/src/cli/file-system-cache.ts b/packages/cli/src/file-system-cache.ts similarity index 100% rename from packages/react-creates/src/cli/file-system-cache.ts rename to packages/cli/src/file-system-cache.ts diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts new file mode 100644 index 0000000..201b074 --- /dev/null +++ b/packages/cli/src/index.ts @@ -0,0 +1,2 @@ +export { buildCreateComponentCommand } from './commands/create-component'; +export { FileSystemCache } from './file-system-cache'; diff --git a/packages/react-creates-vscode/src/tsconfig.json b/packages/cli/src/tsconfig.json similarity index 64% rename from packages/react-creates-vscode/src/tsconfig.json rename to packages/cli/src/tsconfig.json index 359006d..523ba2e 100644 --- a/packages/react-creates-vscode/src/tsconfig.json +++ b/packages/cli/src/tsconfig.json @@ -3,5 +3,5 @@ "compilerOptions": { "outDir": "../dist" }, - "references": [{ "path": "../../react-creates/src" }] + "references": [{ "path": "../../core/src" }] } diff --git a/packages/react-creates/templates/component/javascript/class/index.js.template b/packages/cli/templates/component/javascript/class/index.js.template similarity index 100% rename from packages/react-creates/templates/component/javascript/class/index.js.template rename to packages/cli/templates/component/javascript/class/index.js.template diff --git a/packages/react-creates/templates/component/javascript/class/style.{{style}}.template b/packages/cli/templates/component/javascript/class/style.{{style}}.template similarity index 100% rename from packages/react-creates/templates/component/javascript/class/style.{{style}}.template rename to packages/cli/templates/component/javascript/class/style.{{style}}.template diff --git a/packages/react-creates/templates/component/javascript/class/{{name}}.js.template b/packages/cli/templates/component/javascript/class/{{name}}.js.template similarity index 100% rename from packages/react-creates/templates/component/javascript/class/{{name}}.js.template rename to packages/cli/templates/component/javascript/class/{{name}}.js.template diff --git a/packages/react-creates/templates/component/javascript/class/{{name}}.test.js.template b/packages/cli/templates/component/javascript/class/{{name}}.test.js.template similarity index 100% rename from packages/react-creates/templates/component/javascript/class/{{name}}.test.js.template rename to packages/cli/templates/component/javascript/class/{{name}}.test.js.template diff --git a/packages/react-creates/templates/component/javascript/function/index.js.template b/packages/cli/templates/component/javascript/function/index.js.template similarity index 100% rename from packages/react-creates/templates/component/javascript/function/index.js.template rename to packages/cli/templates/component/javascript/function/index.js.template diff --git a/packages/react-creates/templates/component/javascript/function/style.{{style}}.template b/packages/cli/templates/component/javascript/function/style.{{style}}.template similarity index 100% rename from packages/react-creates/templates/component/javascript/function/style.{{style}}.template rename to packages/cli/templates/component/javascript/function/style.{{style}}.template diff --git a/packages/react-creates/templates/component/javascript/function/{{name}}.js.template b/packages/cli/templates/component/javascript/function/{{name}}.js.template similarity index 100% rename from packages/react-creates/templates/component/javascript/function/{{name}}.js.template rename to packages/cli/templates/component/javascript/function/{{name}}.js.template diff --git a/packages/react-creates/templates/component/javascript/function/{{name}}.test.js.template b/packages/cli/templates/component/javascript/function/{{name}}.test.js.template similarity index 100% rename from packages/react-creates/templates/component/javascript/function/{{name}}.test.js.template rename to packages/cli/templates/component/javascript/function/{{name}}.test.js.template diff --git a/packages/react-creates/templates/component/typescript/class/index.tsx.template b/packages/cli/templates/component/typescript/class/index.tsx.template similarity index 100% rename from packages/react-creates/templates/component/typescript/class/index.tsx.template rename to packages/cli/templates/component/typescript/class/index.tsx.template diff --git a/packages/react-creates/templates/component/typescript/class/style.{{style}}.template b/packages/cli/templates/component/typescript/class/style.{{style}}.template similarity index 100% rename from packages/react-creates/templates/component/typescript/class/style.{{style}}.template rename to packages/cli/templates/component/typescript/class/style.{{style}}.template diff --git a/packages/react-creates/templates/component/typescript/class/{{name}}.test.tsx.template b/packages/cli/templates/component/typescript/class/{{name}}.test.tsx.template similarity index 100% rename from packages/react-creates/templates/component/typescript/class/{{name}}.test.tsx.template rename to packages/cli/templates/component/typescript/class/{{name}}.test.tsx.template diff --git a/packages/react-creates/templates/component/typescript/class/{{name}}.tsx.template b/packages/cli/templates/component/typescript/class/{{name}}.tsx.template similarity index 100% rename from packages/react-creates/templates/component/typescript/class/{{name}}.tsx.template rename to packages/cli/templates/component/typescript/class/{{name}}.tsx.template diff --git a/packages/react-creates/templates/component/typescript/function/index.tsx.template b/packages/cli/templates/component/typescript/function/index.tsx.template similarity index 100% rename from packages/react-creates/templates/component/typescript/function/index.tsx.template rename to packages/cli/templates/component/typescript/function/index.tsx.template diff --git a/packages/react-creates/templates/component/typescript/function/style.{{style}}.template b/packages/cli/templates/component/typescript/function/style.{{style}}.template similarity index 100% rename from packages/react-creates/templates/component/typescript/function/style.{{style}}.template rename to packages/cli/templates/component/typescript/function/style.{{style}}.template diff --git a/packages/react-creates/templates/component/typescript/function/{{name}}.test.tsx.template b/packages/cli/templates/component/typescript/function/{{name}}.test.tsx.template similarity index 100% rename from packages/react-creates/templates/component/typescript/function/{{name}}.test.tsx.template rename to packages/cli/templates/component/typescript/function/{{name}}.test.tsx.template diff --git a/packages/react-creates/templates/component/typescript/function/{{name}}.tsx.template b/packages/cli/templates/component/typescript/function/{{name}}.tsx.template similarity index 100% rename from packages/react-creates/templates/component/typescript/function/{{name}}.tsx.template rename to packages/cli/templates/component/typescript/function/{{name}}.tsx.template diff --git a/packages/react-creates/test/component/css-modules.test.ts b/packages/cli/test/component/css-modules.test.ts similarity index 100% rename from packages/react-creates/test/component/css-modules.test.ts rename to packages/cli/test/component/css-modules.test.ts diff --git a/packages/react-creates/test/component/general.test.ts b/packages/cli/test/component/general.test.ts similarity index 100% rename from packages/react-creates/test/component/general.test.ts rename to packages/cli/test/component/general.test.ts diff --git a/packages/react-creates/test/component/javascript.test.ts b/packages/cli/test/component/javascript.test.ts similarity index 100% rename from packages/react-creates/test/component/javascript.test.ts rename to packages/cli/test/component/javascript.test.ts diff --git a/packages/react-creates/test/component/style.test.ts b/packages/cli/test/component/style.test.ts similarity index 100% rename from packages/react-creates/test/component/style.test.ts rename to packages/cli/test/component/style.test.ts diff --git a/packages/react-creates/test/component/typescript.test.ts b/packages/cli/test/component/typescript.test.ts similarity index 100% rename from packages/react-creates/test/component/typescript.test.ts rename to packages/cli/test/component/typescript.test.ts diff --git a/packages/react-creates/test/driver.ts b/packages/cli/test/driver.ts similarity index 100% rename from packages/react-creates/test/driver.ts rename to packages/cli/test/driver.ts diff --git a/packages/react-creates/test/tsconfig.json b/packages/cli/test/tsconfig.json similarity index 100% rename from packages/react-creates/test/tsconfig.json rename to packages/cli/test/tsconfig.json diff --git a/packages/core/README.md b/packages/core/README.md new file mode 100644 index 0000000..e8b84e3 --- /dev/null +++ b/packages/core/README.md @@ -0,0 +1,7 @@ +

+

+

+ React Creates (Core) ⚛️ +

+

+

diff --git a/packages/core/package.json b/packages/core/package.json new file mode 100644 index 0000000..81c5007 --- /dev/null +++ b/packages/core/package.json @@ -0,0 +1,38 @@ +{ + "name": "@react-creates/core", + "version": "2.0.6", + "description": "React creates for you useful and common tools that adapt themselves to your project for faster and easier development", + "files": [ + "dist", + "!dist/test", + "!dist/tsconfig.tsbuildinfo", + "src" + ], + "types": "dist/index.d.ts", + "main": "dist/index.js", + "homepage": "https://github.com/tzachbon/react-creates/tree/master/packages/core", + "readme": "https://github.com/tzachbon/react-creates/tree/master/packages/core/README.md", + "scripts": {}, + "keywords": [ + "react", + "component", + "cli", + "generator", + "tool", + "react-native", + "react native", + "native", + "ng add" + ], + "author": { + "name": "Tzach Bonfil", + "email": "tzachbonfil@gmail.com", + "url": "https://github.com/tzachbon" + }, + "license": "ISC", + "dependencies": { + "@file-services/types": "^6.0.0", + "@types/mustache": "^4.1.2", + "mustache": "^4.2.0" + } +} diff --git a/packages/core/screencast.gif b/packages/core/screencast.gif new file mode 100644 index 0000000..4813930 Binary files /dev/null and b/packages/core/screencast.gif differ diff --git a/packages/react-creates/src/create-component.ts b/packages/core/src/create-component.ts similarity index 91% rename from packages/react-creates/src/create-component.ts rename to packages/core/src/create-component.ts index 62bc99e..8e70c1a 100644 --- a/packages/react-creates/src/create-component.ts +++ b/packages/core/src/create-component.ts @@ -1,14 +1,8 @@ -import { nodeFs } from '@file-services/node'; import type { IFileSystem } from '@file-services/types'; import { render } from 'mustache'; const testFileRegex = /^(.*?)\.test\.(.*?)$/; const styleFileRegex = /^style\.\{\{style\}\}\.template$/; -const defaultTemplateDirectory = nodeFs.join( - nodeFs.dirname(require.resolve('react-creates/package.json')), - 'templates', - 'component' -); export const createComponentProperties = { language: ['typescript', 'javascript'], @@ -34,10 +28,10 @@ export interface CreateComponentMeta { resolveProperty?

( key: P ): Promise | ComponentOption[P] | undefined; - fileSystem?: IFileSystem; - templateDirectory?: string; + fileSystem: IFileSystem; + templateDirectory: string; onFinished?: (options: Required) => Promise | void; - logger?: { + logger: { log: (...messages: any[]) => void; error: (...messages: any[]) => void; }; @@ -45,13 +39,7 @@ export interface CreateComponentMeta { export async function createComponent( options: CreateComponentOption, - { - resolveProperty, - fileSystem = nodeFs, - templateDirectory = defaultTemplateDirectory, - logger = console, - onFinished, - }: CreateComponentMeta = {} + { resolveProperty, fileSystem, templateDirectory, logger, onFinished }: CreateComponentMeta ) { const resolvedOptions = await resolveCreateComponentOptions(options, resolveProperty); const { language, type, name, directory: target, cssModules } = resolvedOptions; diff --git a/packages/react-creates/src/index.ts b/packages/core/src/index.ts similarity index 57% rename from packages/react-creates/src/index.ts rename to packages/core/src/index.ts index 2a3ed12..c0aa574 100644 --- a/packages/react-creates/src/index.ts +++ b/packages/core/src/index.ts @@ -6,5 +6,3 @@ export { createComponentProperties, resolveCreateComponentOptions, } from './create-component'; -export { buildCreateComponentCommand } from './cli/commands/create-component'; -export { FileSystemCache } from './cli/file-system-cache'; diff --git a/packages/react-creates/src/tsconfig.json b/packages/core/src/tsconfig.json similarity index 100% rename from packages/react-creates/src/tsconfig.json rename to packages/core/src/tsconfig.json diff --git a/packages/react-creates/bin/react-creates.js b/packages/react-creates/bin/react-creates.js deleted file mode 100755 index 96a3df8..0000000 --- a/packages/react-creates/bin/react-creates.js +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node - -require('../dist/cli/cli'); diff --git a/packages/react-creates-vscode/.DS_Store b/packages/vscode/.DS_Store similarity index 100% rename from packages/react-creates-vscode/.DS_Store rename to packages/vscode/.DS_Store diff --git a/packages/react-creates-vscode/.vscodeignore b/packages/vscode/.vscodeignore similarity index 100% rename from packages/react-creates-vscode/.vscodeignore rename to packages/vscode/.vscodeignore diff --git a/packages/react-creates-vscode/LICENSE b/packages/vscode/LICENSE similarity index 100% rename from packages/react-creates-vscode/LICENSE rename to packages/vscode/LICENSE diff --git a/packages/react-creates-vscode/README.md b/packages/vscode/README.md similarity index 100% rename from packages/react-creates-vscode/README.md rename to packages/vscode/README.md diff --git a/packages/react-creates-vscode/assets/.DS_Store b/packages/vscode/assets/.DS_Store similarity index 100% rename from packages/react-creates-vscode/assets/.DS_Store rename to packages/vscode/assets/.DS_Store diff --git a/packages/react-creates-vscode/assets/add_icon_dark.svg b/packages/vscode/assets/add_icon_dark.svg similarity index 100% rename from packages/react-creates-vscode/assets/add_icon_dark.svg rename to packages/vscode/assets/add_icon_dark.svg diff --git a/packages/react-creates-vscode/assets/add_icon_light.svg b/packages/vscode/assets/add_icon_light.svg similarity index 100% rename from packages/react-creates-vscode/assets/add_icon_light.svg rename to packages/vscode/assets/add_icon_light.svg diff --git a/packages/react-creates-vscode/assets/logo.png b/packages/vscode/assets/logo.png similarity index 100% rename from packages/react-creates-vscode/assets/logo.png rename to packages/vscode/assets/logo.png diff --git a/packages/react-creates-vscode/assets/logo.svg b/packages/vscode/assets/logo.svg similarity index 100% rename from packages/react-creates-vscode/assets/logo.svg rename to packages/vscode/assets/logo.svg diff --git a/packages/react-creates-vscode/fixtures/javascript-app/package.json b/packages/vscode/fixtures/javascript-app/package.json similarity index 100% rename from packages/react-creates-vscode/fixtures/javascript-app/package.json rename to packages/vscode/fixtures/javascript-app/package.json diff --git a/packages/react-creates-vscode/fixtures/javascript-app/src/MyComponent.js b/packages/vscode/fixtures/javascript-app/src/MyComponent.js similarity index 100% rename from packages/react-creates-vscode/fixtures/javascript-app/src/MyComponent.js rename to packages/vscode/fixtures/javascript-app/src/MyComponent.js diff --git a/packages/react-creates-vscode/package.json b/packages/vscode/package.json similarity index 97% rename from packages/react-creates-vscode/package.json rename to packages/vscode/package.json index 9a44826..362571a 100644 --- a/packages/react-creates-vscode/package.json +++ b/packages/vscode/package.json @@ -35,9 +35,9 @@ "Other" ], "icon": "assets/logo.png", - "homepage": "https://github.com/tzachbon/react-creates/tree/master/packages/react-creates-vscode/README.md", + "homepage": "https://github.com/tzachbon/react-creates/tree/master/packages/vscode/README.md", "repository": { - "url": "https://github.com/tzachbon/react-creates/tree/master/packages/react-creates-vscode.git", + "url": "https://github.com/tzachbon/react-creates/tree/master/packages/vscode.git", "type": "github" }, "activationEvents": [ diff --git a/packages/react-creates-vscode/screencast.gif b/packages/vscode/screencast.gif similarity index 100% rename from packages/react-creates-vscode/screencast.gif rename to packages/vscode/screencast.gif diff --git a/packages/react-creates-vscode/src/auto-global-update.ts b/packages/vscode/src/auto-global-update.ts similarity index 100% rename from packages/react-creates-vscode/src/auto-global-update.ts rename to packages/vscode/src/auto-global-update.ts diff --git a/packages/react-creates-vscode/src/commands/clear-cache.ts b/packages/vscode/src/commands/clear-cache.ts similarity index 100% rename from packages/react-creates-vscode/src/commands/clear-cache.ts rename to packages/vscode/src/commands/clear-cache.ts diff --git a/packages/react-creates-vscode/src/commands/create/component.ts b/packages/vscode/src/commands/create/component.ts similarity index 95% rename from packages/react-creates-vscode/src/commands/create/component.ts rename to packages/vscode/src/commands/create/component.ts index 2fea214..b2f409c 100644 --- a/packages/react-creates-vscode/src/commands/create/component.ts +++ b/packages/vscode/src/commands/create/component.ts @@ -1,12 +1,8 @@ import * as vscode from 'vscode'; import { getPathUri } from '../../utils/get-path-uri'; import { tryRun } from '../../utils/try-run'; -import { - ComponentOption, - createComponentProperties, - buildCreateComponentCommand, - FileSystemCache, -} from 'react-creates'; +import { buildCreateComponentCommand, FileSystemCache } from 'react-creates'; +import { ComponentOption, createComponentProperties } from '@react-creates/core'; import type { CommandWithContext } from '../../main'; import { Terminals } from '../../terminals'; diff --git a/packages/react-creates-vscode/src/commands/create/index.ts b/packages/vscode/src/commands/create/index.ts similarity index 100% rename from packages/react-creates-vscode/src/commands/create/index.ts rename to packages/vscode/src/commands/create/index.ts diff --git a/packages/react-creates-vscode/src/main.ts b/packages/vscode/src/main.ts similarity index 100% rename from packages/react-creates-vscode/src/main.ts rename to packages/vscode/src/main.ts diff --git a/packages/react-creates-vscode/src/register-command.ts b/packages/vscode/src/register-command.ts similarity index 100% rename from packages/react-creates-vscode/src/register-command.ts rename to packages/vscode/src/register-command.ts diff --git a/packages/react-creates-vscode/src/terminals.ts b/packages/vscode/src/terminals.ts similarity index 100% rename from packages/react-creates-vscode/src/terminals.ts rename to packages/vscode/src/terminals.ts diff --git a/packages/vscode/src/tsconfig.json b/packages/vscode/src/tsconfig.json new file mode 100644 index 0000000..15a60b2 --- /dev/null +++ b/packages/vscode/src/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../dist" + }, + "references": [{ "path": "../../cli/src" }] +} diff --git a/packages/react-creates-vscode/src/utils/get-path-uri.ts b/packages/vscode/src/utils/get-path-uri.ts similarity index 100% rename from packages/react-creates-vscode/src/utils/get-path-uri.ts rename to packages/vscode/src/utils/get-path-uri.ts diff --git a/packages/react-creates-vscode/src/utils/try-run.ts b/packages/vscode/src/utils/try-run.ts similarity index 100% rename from packages/react-creates-vscode/src/utils/try-run.ts rename to packages/vscode/src/utils/try-run.ts diff --git a/packages/react-creates-vscode/vscode-test/extension.test.ts b/packages/vscode/vscode-test/extension.test.ts similarity index 100% rename from packages/react-creates-vscode/vscode-test/extension.test.ts rename to packages/vscode/vscode-test/extension.test.ts diff --git a/packages/react-creates-vscode/vscode-test/test-runner.ts b/packages/vscode/vscode-test/test-runner.ts similarity index 100% rename from packages/react-creates-vscode/vscode-test/test-runner.ts rename to packages/vscode/vscode-test/test-runner.ts diff --git a/packages/react-creates-vscode/vscode-test/test-starter.ts b/packages/vscode/vscode-test/test-starter.ts similarity index 100% rename from packages/react-creates-vscode/vscode-test/test-starter.ts rename to packages/vscode/vscode-test/test-starter.ts diff --git a/packages/react-creates-vscode/vscode-test/tsconfig.json b/packages/vscode/vscode-test/tsconfig.json similarity index 64% rename from packages/react-creates-vscode/vscode-test/tsconfig.json rename to packages/vscode/vscode-test/tsconfig.json index 3ac2e8e..3653b11 100644 --- a/packages/react-creates-vscode/vscode-test/tsconfig.json +++ b/packages/vscode/vscode-test/tsconfig.json @@ -4,5 +4,5 @@ "outDir": "../dist/vscode-test", "types": ["mocha", "node"] }, - "references": [{ "path": "../../react-creates/src" }, { "path": "../src" }] + "references": [{ "path": "../../cli/src" }, { "path": "../src" }] } diff --git a/packages/react-creates-vscode/webpack.config.js b/packages/vscode/webpack.config.js similarity index 100% rename from packages/react-creates-vscode/webpack.config.js rename to packages/vscode/webpack.config.js diff --git a/tsconfig.json b/tsconfig.json index 28da51d..4259bed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,10 @@ { "files": [], "references": [ - { "path": "./packages/react-creates/src" }, - { "path": "./packages/react-creates/test" }, - { "path": "./packages/react-creates-vscode/src" }, - { "path": "./packages/react-creates-vscode/vscode-test" } + { "path": "./packages/core/src" }, + { "path": "./packages/cli/src" }, + { "path": "./packages/cli/test" }, + { "path": "./packages/vscode/src" }, + { "path": "./packages/vscode/vscode-test" } ] }