Skip to content

feat: start new project#196

Merged
cristiam86 merged 53 commits into
mainfrom
192-start-new-project
Apr 16, 2025
Merged

feat: start new project#196
cristiam86 merged 53 commits into
mainfrom
192-start-new-project

Conversation

@epsjunior
Copy link
Copy Markdown
Contributor

@epsjunior epsjunior commented Feb 27, 2025

Fixes

#192

Brief Overview

  • Added genlayer new <projectName> command to create a new GenLayer project using a local template.
  • Embedded the base template within the CLI to ensure version consistency and offline support.
  • Supports --path and --overwrite flags for flexible project creation.

Key Changes

  • Local template storage: Eliminates dependency on external repositories (inspired by hardhat and angular).
  • Used fs-extra.copySync() for recursive directory creation.

Dependencies

  • "fs-extra": "^11.3.0

Checklist

cristiam86 and others added 30 commits July 3, 2024 09:30
* test: setup jest configuration with typescript

* refactor: removed path alias and changed simulator service toa class injected in the command declaration

* test: added init action adn command tests

* docs: added testing section on readme file

* fix: handle Fetch Error (Mac M3)

* refactor: improved function response

* fix: await for runSimulator async function

* fix: added init action test

* fix: solving conflicts

* test: added reset docker images and containers calls from init
…erwritten (#38)

* feat: added initial warning about reseting the setup

* test: added a test for new step introduced
* feat: added initial warning about reseting the setup

* test: added a test for new step introduced

* feat: added optional branch when fetching the simulator from github

* feat: added branch name on init and up commands

* test: added tests for branch option on init command
* chore: added npm command for beta release

* ci: added github action for beta release
* fix: removed non existing simulator endpoint

* refactor: adapted ping simulator response for current and next version

* tests: removed non existing simulator endpoint test
* fix: removed non existing simulator endpoint

* refactor: adapted ping simulator response for current and next version

* tests: removed non existing simulator endpoint test
* add node and docker version checks

* remove redundant check

* set correct version numbers, add todo

* use config constant for versions

* refactor methods and improve error handling

* implement PR comments: split install and version checks in two separate checks, move checkVersion method to simulator service

* add tests for version checks on init command

* flip version issue evalution

* separate checks in two steps

* remove console log

---------

Co-authored-by: Den <den@Deniss-MacBook-Pro.local>
@epsjunior epsjunior linked an issue Feb 27, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (45956f6) to head (ae648ee).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #196    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           27        29     +2     
  Lines         1386      1505   +119     
  Branches       346       373    +27     
==========================================
+ Hits          1386      1505   +119     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@epsjunior epsjunior changed the title 192 start new project feat: start new project Feb 27, 2025
@cristiam86 cristiam86 merged commit e11830d into main Apr 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Start new project

3 participants