Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node not bash for init #404

Merged
merged 12 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading