Skip to content

Commit

Permalink
implementacao inicial do sistema de criacao do projeto #3
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeas committed Apr 7, 2022
1 parent 2e098d3 commit 6d3ea49
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Pacote Artisan - npm package
on:
pull-request:
pull_request:
branches:
- master
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Pacote Artisan - github package

on:
pull-request:
pull_request:
branches:
- master
release:
Expand Down
5 changes: 3 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

const yargs = require("yargs");
const create = require("./create.js");
const init = require("./init.js");

console.log("Bem-vindo ao artisan! \nUtilize o comando npx artisan --help para mais informações");
console.log("Bem-vindo ao artisan! Utilize o comando [ npx artisan --help ] para mais informações.");

const usage = "\Como usar: $0 <command> [options]";

Expand All @@ -18,7 +19,7 @@ const options = yargs
.argv;

if (yargs.argv.init) {
console.log("eontrou do init");
init.initStructure();
}

if (yargs.argv.create && yargs.argv.create[0] === "entity") {
Expand Down
5 changes: 5 additions & 0 deletions bin/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = { initStructure: initStructure };

function initStructure(){
console.log("Iniciando criação da estrutura");
}

0 comments on commit 6d3ea49

Please sign in to comment.