This is a utility to test the create-gasket-app CLI.
git clone <repo>
cd <repo>
npm install
npm run start // or node src/index.js
Apps are created in the __apps__
directory.
Create a .env
file in the root of the project with the following:
# open source
OS_PRESET_NEXTJS=<path>
OS_PRESET_API=path
# internal
INTERNAL_PRESET_WEBAPP=<path>
INTERNAL_PRESET_API=<path>
INTERNAL_PRESET_HCS=<path>
INTERNAL_REGISTRY=<private-registry>
# Skip local package prompt
USE_LOCAL=1
# Build the apps post create
RUN_BUILD=1
# Run test script post create
RUN_TEST=1
The internal preset options will be available when the proper environment variables are set. Currently there is only local package(preset-path) support for internal presets.
All reports on untracked and they are in progress. Reports are populated after running the utility. Errors are captured and the stack trace is printed to the error
property of the app type.
-
report.create.json
- create-gasket-app report -
report.build.json
- Build command -
report.files.json
- Generated file validation report -
report.render.json
- General render success or failure -
report.test.json
- Test npm command -
report.start.json
- Start npm command -
report.local.json
- Local npm command -
report.preivew.json
- Preview npm command -
report.lint.json
- Lint npm command
npm run start
- Start the utilitynpm run build
- Build the appsnpm run report
- Print the report resultsnpm run clean:apps
- delete the__apps__
directorynpm run clean:files
- delete all files but leavenode_modules
(performance reasons)npm run clean:next
- delete the.next
directory in all the apps
- Internal Presets
- NPM Registry support
- Clean up and document
- Automate render testing
- Automate NPM script testing
- Implement file validation