Socket
Socket
Sign inDemoInstall

@stormid/scaffold-cli

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stormid/scaffold-cli - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

16

lib/commands/index.js
const { info, warn, error, isDir, install, initGit } = require('../utils');
const { resolve } = require('path');
const ora = require('ora');
const figlet = require('figlet');

@@ -9,3 +8,3 @@ const gittar = require('gittar');

const isValidName = require('validate-npm-package-name');
const REPO = 'mjbp/scaffold';
const REPO = 'stormid/scaffold';

@@ -47,17 +46,9 @@ module.exports = async function(dest, argv) {

// let spinner = ora({
// text: 'Creating project',
// color: 'white',
// }).start();
info('-> Creating project');
await gittar.extract(archive, target, {
filter(path, obj) {
if (!path.includes('.git')) return true;
if (!path.includes('.git') || path.includes('.gitignore')) return true;
},
});
// spinner.text = 'Parsing `package.json` file';
// info('-> Parsing `package.json` file');

@@ -71,3 +62,2 @@ await fs.mkdir(`${target}/src/assets`);

pkgData = JSON.parse(await fs.readFile(pkgFile));
// info('-> Updating `name` in `package.json` file');
pkgData.name = argv.name.toLowerCase().replace(/\s+/g, '_');

@@ -83,4 +73,2 @@ pkgData.description = "";

info('-> Installing dependencies');
// spinner.text = 'Installing dependencies:\n';
// spinner.stopAndPersist();
await install(target);

@@ -87,0 +75,0 @@ }

6

package.json
{
"name": "@stormid/scaffold-cli",
"version": "0.1.1",
"version": "0.1.2",
"description": "Start a new project using the StormId scaffold",
"author": "stormid",
"license": "MIT",
"repository": "stormid/scaffold-cli",
"main": "lib/index.js",

@@ -12,3 +13,4 @@ "bin": {

"scripts": {
"test": "jest"
"test": "jest",
"postpublish": "npm publish --ignore-scripts --@stormid:registry='https://npm.pkg.github.com'"
},

@@ -15,0 +17,0 @@ "engines": {

# Scaffold CLI
Start a new project using the StormId scaffold
Start a new project using the [Storm Id scaffold](https://github.com/stormid/scaffold)

@@ -22,2 +22,2 @@ ## Installation

--install Installs dependencies. [boolean] [default: true]
```
```
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