New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-knit-app

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-knit-app - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

tasks/init.js

35

bin/cli-init.js
/* @flow weak */
const Listr = require('listr');
const fs = require('fs-extra');
const chalk = require('chalk');
const execa = require('execa');
const pify = require('pify');
const path = require('path');
const pify = require('pify');
const tasks = require('@knit/mittens-common-tasks');
const errors = require('@knit/mittens-nice-errors');
const log = require('@knit/mittens-logger');
module.exports = (argv) => {
module.exports = argv => {
const cwd = argv._[0];

@@ -22,21 +23,8 @@ // check if dir exists

console.log();
log.info('copying template files...');
pify(fs.copy)(path.resolve(path.join(__dirname, '..', 'template')), cwd).then(() => (
execa('yarn', ['init', '--yes'], { cwd })
)).then(() => {
log.info('initializing git repo...');
return execa('git', ['init'], { cwd });
}).then(() => (
execa('git', ['commit', '--allow-empty', '-m', ':tada: first commit'], { cwd })
)).then(() => (
execa('git', ['tag', 'v0.0.0', '-m', 'v0.0.0'], { cwd })
)).then(() => {
log.info('installing packages...');
return execa('yarn', ['add', 'react', 'glamor'], { cwd, stdio: 'inherit' });
}).then(() => (
execa('yarn', ['add', '--dev', 'react-dom'], { cwd, stdio: 'inherit' })
)).then(() => {
log.info('installing knit...');
return execa('yarn', ['add', '--dev', '@knit/knit', '@knit/eslint-config-socks', '@knit/mittens-develop', '@knit/mittens-publish'], { cwd, stdio: 'inherit' });
}).then(() => {
new Listr([
...tasks.preflight.yarn,
...require('../tasks/init'),
], {
renderer: log.getRenderer(),
}).run({ cwd }).then(() => {
console.log();

@@ -52,5 +40,4 @@ log.success('finished creating your project!');

log.info(chalk.white('https://github.com/knitjs/knit'));
})
.catch(errors.catchErrors);
}).catch(errors.catchErrors);
});
};

@@ -9,3 +9,4 @@ {

"name": "create-knit-app",
"version": "0.0.24",
"description": "create knit apps",
"version": "0.0.25",
"bin": {

@@ -27,13 +28,15 @@ "create-knit-app": "./index.js"

"dependencies": {
"fs-extra": "^1.0.0",
"listr": "0.8.0",
"fs-extra": "1.0.0",
"chalk": "1.1.3",
"execa": "0.5.0",
"pify": "2.3.0",
"@knit/mittens-nice-errors": "0.0.23",
"@knit/mittens-logger": "0.0.23",
"@knit/mittens-common-tasks": "0.0.25",
"@knit/mittens-nice-errors": "0.0.25",
"@knit/mittens-logger": "0.0.25",
"update-notifier": "1.0.2",
"yargs": "^6.3.0",
"read-pkg-up": "1.0.1"
"yargs": "^6.4.0",
"read-pkg-up": "^2.0.0",
"execa": "0.5.0"
},
"peerDependencies": {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc