create-leafygreen-app
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.0.8](https://github.com/TheSonOfThomp/create-leafygreen-app/compare/v0.0.3...v0.0.8) (2022-05-02) | ||
### [0.0.6](https://github.com/TheSonOfThomp/create-leafygreen-app/compare/v0.0.3...v0.0.6) (2022-05-02) | ||
@@ -7,0 +9,0 @@ |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (options.packagesOnly) { | ||
(0, installLeafyGreen_1.installLeafyGreen)(__dirname) | ||
(0, installLeafyGreen_1.installLeafyGreen)(process.cwd()) | ||
.then(() => (0, finish_1.finish)()); | ||
@@ -73,2 +73,2 @@ } | ||
exports.init = init; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWxlYWZ5Z3JlZW4tYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpYi9jcmVhdGUtbGVhZnlncmVlbi1hcHAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsa0RBQTBCO0FBQzFCLHlDQUFvQztBQUNwQyxzRUFBdUM7QUFFdkMsaURBQThDO0FBQzlDLG1EQUFnRDtBQUNoRCxxREFBa0Q7QUFDbEQscUNBQWtDO0FBQ2xDLDJEQUF3RDtBQUN4RCw2Q0FBNkM7QUFDN0MsSUFBSSxXQUFtQixDQUFDO0FBRXhCLE1BQU0sRUFBRSxHQUFHOzs7Ozs7Ozs7Q0FTVixDQUFDO0FBRUYsU0FBZ0IsSUFBSTtJQUNsQixNQUFNLE9BQU8sR0FBRyxJQUFJLG1CQUFPLENBQUMsdUJBQXVCLENBQUM7UUFDbEQsZ0NBQWdDO1NBQy9CLFNBQVMsQ0FBQyxxQkFBcUIsQ0FBQztTQUNoQyxNQUFNLENBQUMsUUFBUSxFQUFFLHlDQUF5QyxFQUFFLEtBQUssQ0FBQztTQUNs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tBR0Y7QUFFSCxDQUFDO0FBdERELG9CQXNEQyJ9 |
@@ -30,3 +30,3 @@ "use strict"; | ||
const cra = (0, child_process_1.spawn)(`npx`, [ | ||
'create-next-app', | ||
'create-next-app@latest', | ||
name, | ||
@@ -86,2 +86,2 @@ `--ts` | ||
exports.updateNextApp = updateNextApp; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlTmV4dEFwcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvY3JlYXRlTmV4dEFwcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSw4Q0FBOEM7QUFDOUMsaURBQXNDO0FBQ3RDLDRDQUFvQjtBQUNwQixnREFBd0I7QUFFeEIsa0RBQTBCO0FBQzFCLDhDQUFzQjtBQUV0QiwyREFBd0Q7QUFDeEQsbUNBQXFDO0FBRXJDOzs7O0dBSUc7QUFDSCxTQUFnQixhQUFhLENBQUMsSUFBWTtJQUN4QyxNQUFNLE9BQU8sR0FBRyxjQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBRW5DLE9BQU8sSUFBSSxPQUFPLENBQUMsQ0FBQyxPQUFPLEVBQUUsRUFBRTtRQUM3QixJQUFJLENBQUMsWUFBRSxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUMsRUFBRTtZQUMzQixPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsZUFBSyxDQUFDLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxFQUFFLENBQUMsQ0FBQztZQUNsRCxNQUFNLE9BQU8sR0FBRyxJQUFBLGFBQUcsRUFBQztnQkFDbEIsSUFBSSxFQUFFLG1CQUFtQjtnQkFDekIsTUFBTSxFQUFFLE9BQU8sQ0FBQyxNQUFNO2FBQ3ZCLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztZQUNYLE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+30,8 @@ "use strict"; | ||
const cra = (0, child_process_1.spawn)(`npx`, [ | ||
'create-react-app', | ||
'create-react-app@latest', | ||
name, | ||
`--template`, | ||
`typescript`, | ||
`--scripts-version`, | ||
`4.0.3` | ||
]); | ||
@@ -42,3 +44,2 @@ cra.stdout.on('data', (data) => { | ||
spinner.stop(); | ||
console.log('Successgully installed'); | ||
(0, installLeafyGreen_1.installLeafyGreen)(appPath) | ||
@@ -77,2 +78,2 @@ .then(() => updateReactApp(appPath)) | ||
exports.updateReactApp = updateReactApp; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlUmVhY3RBcHAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL2NyZWF0ZVJlYWN0QXBwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDhDQUE4QztBQUM5QyxpREFBc0M7QUFDdEMsNENBQW9CO0FBQ3BCLGdEQUF3QjtBQUV4QixrREFBMEI7QUFDMUIsOENBQXNCO0FBRXRCLDJEQUF3RDtBQUN4RCxtQ0FBcUM7QUFFckM7Ozs7R0FJRztBQUNILFNBQWdCLGNBQWMsQ0FBQyxJQUFZO0lBQ3pDLE1BQU0sT0FBTyxHQUFHLGNBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7SUFFbkMsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxFQUFFO1FBQzdCLElBQUksQ0FBQyxZQUFFLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQzNCLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxlQUFLLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDLEVBQUUsQ0FBQyxDQUFDO1lBQ25ELE1BQU0sT0FBTyxHQUFHLElBQUEsYUFBRyxFQUFDO2dCQUNsQixJQUFJLE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BQU8sQ0FBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLFFBQVEsQ0FBQyxFQUM5QyxjQUFJLENBQUMsT0FBTyxDQUFDLE9BQU8sRUFBRSxZQUFZLEVBQUUsUUFBUSxDQUFDLENBQzlDLENBQUM7SUFDSixDQUFDO0FBQ0gsQ0FBQztBQW5CRCx3Q0FtQkMifQ== |
@@ -9,2 +9,3 @@ "use strict"; | ||
const child_process_1 = require("child_process"); | ||
const fs_1 = __importDefault(require("fs")); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
@@ -14,3 +15,3 @@ const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const package_ignore_json_1 = __importDefault(require("./package.ignore.json")); | ||
const peerDependencies_json_1 = __importDefault(require("./peerDependencies.json")); | ||
// import peerDependencies from './peerDependencies.json'; | ||
const utils_1 = require("./utils"); | ||
@@ -34,5 +35,23 @@ /** | ||
.map((result) => `${result.package.name}@^${result.package.version}`); | ||
const peerPackages = Object.entries(peerDependencies_json_1.default).map(([pkg, version]) => `${pkg}@${version}`); | ||
const packages = [...peerPackages, ...lgPackages]; | ||
const install = (0, child_process_1.spawn)(`yarn`, [`add`, ...packages], { cwd: appPath }); | ||
// const peerPackages = Object.entries(peerDependencies).map( | ||
// ([pkg, version]) => `${pkg}@${version}` | ||
// ); | ||
const packages = [...lgPackages]; | ||
const packageMgr = readLockFile(appPath); | ||
// eslint-disable-next-line functional/no-let | ||
let install; | ||
switch (packageMgr) { | ||
case 'yarn': | ||
spinner.text = `Installing using ${packageMgr}`; | ||
install = (0, child_process_1.spawn)(`yarn`, [`add`, ...packages, `--legacy-peer-deps`], { cwd: appPath }); | ||
break; | ||
case 'npm': | ||
spinner.text = `Installing using ${packageMgr}`; | ||
install = (0, child_process_1.spawn)(`npm`, [`install`, ...packages, `--legacy-peer-deps`], { cwd: appPath }); | ||
break; | ||
default: | ||
spinner.text = 'Could not identify package manageer. Using npm.'; | ||
install = (0, child_process_1.spawn)(`npm`, [`install`, ...packages, `--legacy-peer-deps`], { cwd: appPath }); | ||
break; | ||
} | ||
install.stdout.on('data', (data) => { | ||
@@ -58,2 +77,11 @@ spinner.text = data.toString(); | ||
exports.installLeafyGreen = installLeafyGreen; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFsbExlYWZ5R3JlZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL2luc3RhbGxMZWFmeUdyZWVuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDhDQUE4QztBQUM5QyxpREFBc0M7QUFFdEMsa0RBQTBCO0FBQzFCLDREQUErQjtBQUMvQiw4Q0FBc0I7QUFFdEIsZ0ZBQW1EO0FBQ25ELG9GQUF1RDtBQUN2RCxtQ0FBcUM7QUFFckM7Ozs7R0FJRztBQUNILFNBQWdCLGlCQUFpQixDQUFDLE9BQWU7SUFDL0MsT0FBTyxDQUFDLEdBQUcsQ0FBQyxlQUFLLENBQUMsS0FBSyxDQUFDLDJDQUEyQyxDQUFDLENBQUMsQ0FBQztJQUN0RSxNQUFNLE9BQU8sR0FBRyxJQUFBLGFBQUcsRUFBQyxrQ0FBa0MsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ2hFLE1BQU0sT0FBTyxHQUFHLCtEQUErRCxDQUFDO0lBRWhGLE9BQU8sSUFBSSxPQUFPLENBQUMsQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEVBQUU7UUFDckMsT0FBTyxJQUFBLG9CQUFLLEVBQUMsT0FBTyxDQUFDO2FBQ3BCLElBQUksQ0FBQyxDQUFDLElBQUksRUFBRSxFQUFFLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDO2FBQzNCLElBQUksQ0FBQyxDQUFDLEVBQUUsT0FBTyxFQUFFLEVBQUUsRUFBRTtZQUNwQixPQUFPLENBQUMsSUFBSSxHQUFHLGdD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QUFVLENBQUMsQ0FBQztZQUV0QyxPQUFPLENBQUMsRUFBRSxDQUFDLE9BQU8sRUFBRSxHQUFHLEVBQUU7Z0JBQ3ZCLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztnQkFDZixPQUFPLENBQUMsR0FBRyxDQUFDLCtCQUErQixDQUFDLENBQUE7Z0JBQzVDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtZQUNmLENBQUMsQ0FBQyxDQUFDO1lBRUgsT0FBTyxDQUFDLEVBQUUsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRTtnQkFDMUIsT0FBTyxDQUFDLElBQUksRUFBRSxDQUFBO2dCQUNkLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQTtZQUNiLENBQUMsQ0FBQyxDQUFBO1FBQ0osQ0FBQyxDQUFDO2FBQ0QsS0FBSyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1lBQ1gsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFBO1FBQ2IsQ0FBQyxDQUFDLENBQUE7SUFDSixDQUFDLENBQUMsQ0FBQTtBQUVKLENBQUM7QUFoREQsOENBZ0RDIn0= | ||
function readLockFile(appPath) { | ||
if (fs_1.default.existsSync(`${appPath}/package-lock.json`)) { | ||
return `npm`; | ||
} | ||
else if (fs_1.default.existsSync(`${appPath}/yarn.lock`)) { | ||
return `yarn`; | ||
} | ||
return undefined; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFsbExlYWZ5R3JlZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL2luc3RhbGxMZWFmeUdyZWVuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDhDQUE4QztBQUM5QyxpREFBc0U7QUFDdEUsNENBQW9CO0FBRXBCLGtEQUEwQjtBQUMx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yxZQUFZLENBQUMsRUFBRTtRQUNoRCxPQUFPLE1BQU0sQ0FBQTtLQUNkO0lBRUQsT0FBTyxTQUFTLENBQUE7QUFDbEIsQ0FBQyJ9 |
{ | ||
"name": "create-leafygreen-app", | ||
"version": "0.0.6", | ||
"version": "0.0.8", | ||
"description": "Bootstrap a React app with Leafygreen UI components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,5 +7,15 @@ # create-leafygreen-app | ||
Run the command | ||
Create a new React app with Leafygreen UI components pre-installed | ||
```bash | ||
npx create-leafygreen-app <project-name> | ||
npx create-leafygreen-app@latest <project-name> | ||
``` | ||
Create a new Next app | ||
```bash | ||
npx create-leafygreen-app@latest --next <project-name> | ||
``` | ||
Install all Leafygreen UI components to an existing project | ||
```bash | ||
npx create-leafygreen-app@latest --packages-only | ||
``` |
@@ -43,3 +43,3 @@ import chalk from 'chalk'; | ||
if (options.packagesOnly) { | ||
installLeafyGreen(__dirname) | ||
installLeafyGreen(process.cwd()) | ||
.then(() => finish()) | ||
@@ -46,0 +46,0 @@ } else { |
@@ -28,3 +28,3 @@ /* eslint-disable functional/immutable-data */ | ||
const cra = spawn(`npx`, [ | ||
'create-next-app', | ||
'create-next-app@latest', | ||
name, | ||
@@ -31,0 +31,0 @@ `--ts` |
@@ -28,6 +28,8 @@ /* eslint-disable functional/immutable-data */ | ||
const cra = spawn(`npx`, [ | ||
'create-react-app', | ||
'create-react-app@latest', | ||
name, | ||
`--template`, | ||
`typescript`, | ||
`--scripts-version`, | ||
`4.0.3` | ||
]); | ||
@@ -40,4 +42,3 @@ cra.stdout.on('data', (data) => { | ||
spinner.stop(); | ||
console.log('Successgully installed'); | ||
installLeafyGreen(appPath) | ||
@@ -44,0 +45,0 @@ .then(() => updateReactApp(appPath)) |
/* eslint-disable functional/immutable-data */ | ||
import { spawn } from 'child_process'; | ||
import { ChildProcessWithoutNullStreams, spawn } from 'child_process'; | ||
import fs from 'fs'; | ||
@@ -9,3 +10,3 @@ import chalk from 'chalk'; | ||
import ignorePackages from './package.ignore.json'; | ||
import peerDependencies from './peerDependencies.json'; | ||
// import peerDependencies from './peerDependencies.json'; | ||
import { logWarning } from './utils'; | ||
@@ -38,8 +39,28 @@ | ||
); | ||
const peerPackages = Object.entries(peerDependencies).map( | ||
([pkg, version]) => `${pkg}@${version}` | ||
); | ||
const packages = [...peerPackages, ...lgPackages]; | ||
const install = spawn(`yarn`, [`add`, ...packages], { cwd: appPath }); | ||
// const peerPackages = Object.entries(peerDependencies).map( | ||
// ([pkg, version]) => `${pkg}@${version}` | ||
// ); | ||
const packages = [...lgPackages]; | ||
const packageMgr = readLockFile(appPath) | ||
// eslint-disable-next-line functional/no-let | ||
let install: ChildProcessWithoutNullStreams; | ||
switch (packageMgr) { | ||
case 'yarn': | ||
spinner.text = `Installing using ${packageMgr}`; | ||
install = spawn(`yarn`, [`add`, ...packages, `--legacy-peer-deps`], { cwd: appPath }); | ||
break | ||
case 'npm': | ||
spinner.text = `Installing using ${packageMgr}`; | ||
install = spawn(`npm`, [`install`, ...packages, `--legacy-peer-deps`], { cwd: appPath }); | ||
break; | ||
default: | ||
spinner.text = 'Could not identify package manageer. Using npm.' | ||
install = spawn(`npm`, [`install`, ...packages, `--legacy-peer-deps`], { cwd: appPath }); | ||
break; | ||
} | ||
install.stdout.on('data', (data) => { | ||
@@ -66,3 +87,13 @@ spinner.text = data.toString(); | ||
}) | ||
} | ||
function readLockFile(appPath: string): `npm` | `yarn` | undefined { | ||
if (fs.existsSync(`${appPath}/package-lock.json`)) { | ||
return `npm` | ||
} else if (fs.existsSync(`${appPath}/yarn.lock`)) { | ||
return `yarn` | ||
} | ||
return undefined | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1268597
23108
21
4
5