🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More

create-simple-projects

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-simple-projects - npm Package Compare versions

Comparing version

to
0.1.1

{
"name": "create-simple-projects",
"version": "0.1.0",
"version": "0.1.1",
"description": "Create simple project with ts, jest, eslint, prettier and other stuff.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -11,4 +11,2 @@ import { QuestionCollection, prompt } from 'inquirer';

name: string;
author?: string;
keywords?: string;
}

@@ -36,14 +34,2 @@

}
},
{
name: 'author',
type: 'input',
message: 'Author name:',
when: () => !yargs.argv['author']
},
{
name: 'keywords',
type: 'input',
message: 'Keywords for project:',
when: () => !yargs.argv['keywords']
}

@@ -50,0 +36,0 @@ ];

@@ -7,4 +7,2 @@ import * as path from 'path';

PROJECT_NAME: string;
AUTHOR?: string;
KEYWORDS?: string[];
}

@@ -19,3 +17,3 @@

export function createOptionsFromAnswers(answers: Answers): Options {
const { template, name, author, keywords } = answers;
const { template, name } = answers;
const templatePath = path.join(__dirname, '../templates', template);

@@ -29,7 +27,5 @@ const targetPath = path.join(process.cwd(), name);

placeholders: {
PROJECT_NAME: name,
AUTHOR: author,
KEYWORDS: keywords?.split(/\s+/)
PROJECT_NAME: name
}
};
}

@@ -7,8 +7,6 @@ {

"module": "dist/esm/numbers.js",
"author": {
"name": "<%= AUTHOR %>"
},
"scripts": {
"test": "jest --coverage",
"build": "run-s test clean && run-p build:cjs build:esm",
"lint": "eslint ./src",
"build": "run-p test clean lint && run-p build:cjs build:esm",
"build:cjs": "tsc --module commonjs --declaration --outDir ./dist/lib",

@@ -19,5 +17,2 @@ "build:esm": "tsc --module esnext --declaration --outDir ./dist/esm",

},
"keywords": [
"<%- KEYWORDS.join('\", \"') %>"
],
"license": "ISC",

@@ -24,0 +19,0 @@ "devDependencies": {

{
"name": "test",
"name": "<%= PROJECT_NAME %>",
"version": "0.0.0",

@@ -7,8 +7,7 @@ "description": "A quick starter template for typescript project",

"module": "dist/esm/numbers.js",
"author": {
"name": "<%= AUTHOR %>"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"test": "jest --coverage",
"lint": "eslint ./src",
"build": "run-p test clean lint && tsc && vite build",
"preview": "vite preview",

@@ -18,5 +17,2 @@ "prepublishOnly": "npm run build",

},
"keywords": [
"<%- KEYWORDS.join('\", \"') %>"
],
"license": "ISC",

@@ -23,0 +19,0 @@ "devDependencies": {