Skip to content

Commit

Permalink
Node not bash for init (#404)
Browse files Browse the repository at this point in the history
Co-authored-by: Nícholas Oliveira <nicholas.andre@10up.com>
  • Loading branch information
tlovett1 and nicholasio authored May 30, 2024
1 parent 5bcfae9 commit d9f3642
Show file tree
Hide file tree
Showing 6 changed files with 254 additions and 144 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-oranges-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"10up-toolkit": patch
---

Refactor init command
138 changes: 129 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/toolkit/PROJECTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The project subcommand provides a variety of utlities for creating, building, an
List of commands:
```bash
10up-toolkit project init [<path>] [--template=<Git repository>] [--name=<Project Name>] [--confirm]
10up-toolkit project init [<path>] [--template=<Git repository>] [--name=<Project Name>] [--confirm] [--skip-composer]
```

`init` creates a project. You can optionally provide it a number of parameters or answer the prompts. If no path is provided, it will initialize the project in the current directory. You will be prompted to choose a template e.g. [WP Scaffold](https://github.com/10up/wp-scaffold). Init will automatically search and replace prefixes using the project name you provide.
Expand Down
1 change: 0 additions & 1 deletion packages/toolkit/project/local/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Add builds scripts here. This script will be run from the root of your project (same directory as .tenup.yml).

composer install --no-dev
nvm install
node -v
npm install
101 changes: 0 additions & 101 deletions packages/toolkit/scripts/project/bash/init.sh

This file was deleted.

Loading

0 comments on commit d9f3642

Please sign in to comment.