@stormid/scaffold-cli
Advanced tools
Comparing version 0.1.1 to 0.1.2
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 @@ } |
{ | ||
"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] | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
23
7058
168