create-salt-project
Advanced tools
Comparing version 0.0.12 to 1.0.0
{ | ||
"name": "create-salt-project", | ||
"version": "0.0.12", | ||
"version": "1.0.0", | ||
"description": "", | ||
@@ -13,3 +13,3 @@ "bin": { | ||
"dev": "rm -rf dist && tsc -w", | ||
"link-cli": " && pnpm link --global && cp package.json dist/package.json", | ||
"link-cli": "pnpm link --global && cp package.json dist/package.json", | ||
"publish-cli": "pnpm version patch && cp package.json dist/package.json && pnpm publish --access public --no-git-checks" | ||
@@ -16,0 +16,0 @@ }, |
@@ -11,4 +11,7 @@ import { execCommand, execCommandOnProject, log, spinner } from "../utils.js"; | ||
async createProject() { | ||
const angularSpinner = spinner("Please wait, initializing your project...\n").start(); | ||
await execCommand(`npx -p @angular/cli@latest ng new ${this.answers.projectName} --style scss --routing true --ssr false --package-manager ${this.answers.packageManager}`); | ||
const angularSpinner = spinner("Please wait, initializing your project...\n") | ||
.start() | ||
.stop(); | ||
const commandInstall = `npx -p @angular/cli@latest ng new ${this.answers.projectName} --style scss --routing true --ssr false --package-manager ${this.answers.packageManager}`; | ||
await execCommand(commandInstall); | ||
await execCommandOnProject(this.answers)(`echo "<div className='flex w-screen h-screen items-center justify-center'> | ||
@@ -15,0 +18,0 @@ <h1 className='text-3xl font-bold text-center'>Hello Salters!</h1> |
@@ -6,2 +6,3 @@ import { log } from "console"; | ||
fileStylesPath = "./src/styles.scss"; | ||
corePath = "./src"; | ||
eslintConfiguration = { | ||
@@ -300,2 +301,8 @@ env: { | ||
} | ||
async createCleanArchitecture() { | ||
const loadingSpinner = spinner("Creating clean architecture...\n"); | ||
await execCommandOnProject(this.answers)(`cd ${this.corePath} && mkdir core && cd core && mkdir entities utils services usecases libs && cd entities && mkdir domains dtos presenters`); | ||
loadingSpinner.stop(); | ||
log("ā Clean architecture created successfully!"); | ||
} | ||
async createTesting() { | ||
@@ -311,2 +318,3 @@ throw new Error("Method not implemented."); | ||
await this.createFormatter(); | ||
await this.createCleanArchitecture(); | ||
await this.finishing(); | ||
@@ -313,0 +321,0 @@ } |
{ | ||
"name": "create-salt-project", | ||
"version": "0.0.12", | ||
"version": "1.0.0", | ||
"description": "", | ||
@@ -31,5 +31,5 @@ "bin": { | ||
"dev": "rm -rf dist && tsc -w", | ||
"link-cli": " && pnpm link --global && cp package.json dist/package.json", | ||
"link-cli": "pnpm link --global && cp package.json dist/package.json", | ||
"publish-cli": "pnpm version patch && cp package.json dist/package.json && pnpm publish --access public --no-git-checks" | ||
} | ||
} |
@@ -14,8 +14,10 @@ import { TAnswers } from "../types.js"; | ||
"Please wait, initializing your project...\n" | ||
).start(); | ||
) | ||
.start() | ||
.stop(); | ||
await execCommand( | ||
`npx -p @angular/cli@latest ng new ${this.answers.projectName} --style scss --routing true --ssr false --package-manager ${this.answers.packageManager}` | ||
); | ||
const commandInstall = `npx -p @angular/cli@latest ng new ${this.answers.projectName} --style scss --routing true --ssr false --package-manager ${this.answers.packageManager}`; | ||
await execCommand(commandInstall); | ||
await execCommandOnProject(this.answers)( | ||
@@ -22,0 +24,0 @@ `echo "<div className='flex w-screen h-screen items-center justify-center'> |
@@ -18,2 +18,3 @@ import { log } from "console"; | ||
createTesting(): Promise<void>; | ||
createCleanArchitecture(): Promise<void>; | ||
finishing(): Promise<void>; | ||
@@ -24,2 +25,3 @@ } | ||
protected fileStylesPath: string = "./src/styles.scss"; | ||
protected corePath: string = "./src"; | ||
@@ -342,2 +344,12 @@ protected eslintConfiguration = { | ||
constructor(protected answers: TAnswers) {} | ||
async createCleanArchitecture(): Promise<void> { | ||
const loadingSpinner = spinner("Creating clean architecture...\n"); | ||
await execCommandOnProject(this.answers)( | ||
`cd ${this.corePath} && mkdir core && cd core && mkdir entities utils services usecases libs && cd entities && mkdir domains dtos presenters` | ||
); | ||
loadingSpinner.stop(); | ||
log("ā Clean architecture created successfully!"); | ||
} | ||
async createTesting(): Promise<void> { | ||
@@ -359,2 +371,4 @@ throw new Error("Method not implemented."); | ||
await this.createCleanArchitecture(); | ||
await this.finishing(); | ||
@@ -361,0 +375,0 @@ } |
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 v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
53831
1386
1