massa-sc-create
Advanced tools
Comparing version 1.0.0 to 1.1.0
#! /usr/bin/env node | ||
const { execSync } = require('child_process') | ||
const { readFileSync, writeFileSync } = require('fs') | ||
let project_name = process.argv[2] || "massa-sc-template" | ||
let cwd = require('path').join(process.cwd(), project_name); | ||
let log = x => console.log('\033[32m' + x + '\033[39m'); | ||
log(`Creating a new Massa Smart Contract template project ${cwd}...`); | ||
// Clone project | ||
let project_name = process.argv[2] || "massa-sc-template" | ||
execSync(`git clone https://github.com/massalabs/massa-sc-template ${project_name}`) | ||
// Fresh git repository | ||
let cwd = `./${project_name}` | ||
execSync('rm -rf .git', { cwd }) | ||
@@ -21,1 +23,4 @@ execSync('git init', { cwd }) | ||
writeFileSync(`${cwd}/package.json`, JSON.stringify(package_json, null, 2)) | ||
log('Installing packages. This might take a couple of minutes...'); | ||
execSync(`cd ${cwd} && npm install`) | ||
log(`Happy hacking! 🤖`); |
{ | ||
"name": "massa-sc-create", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -9,5 +9,4 @@ "bin": { | ||
"repository": "git@github.com:massalabs/massa-sc-create.git", | ||
"author": "Yvan Sraka <yvan@sraka.xyz>", | ||
"license": "MIT", | ||
"author": "Massa Labs <info@massa.net>", | ||
"private": false | ||
} |
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 License Found
License(Experimental) License information could not be found.
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 README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3001
5
25
1
12
1