diff --git a/README.md b/README.md index 9b083c9..036c105 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,7 @@ Emulsify-cli is developed using TypeScript. You can find all of the source files - `npm run test`: runs Jest on the codebase. You can specify a path to a single test, and add any flags supported by Jest's CLI. - `npm run type`: uses typescript to check all type signatures. - `npm run twatch`: runs Jest without coverage, in verbose and watch mode. This is useful for running a single test during active development. + +## Deployment + +This project is automatically built and deployed to NPM via a GitHub Actions workflow. In order to deploy changes merged into the `develop` branch, simply merge `develop` into `main`, and call it a day. diff --git a/src/handlers/init.test.ts b/src/handlers/init.test.ts index f658a7c..d787141 100644 --- a/src/handlers/init.test.ts +++ b/src/handlers/init.test.ts @@ -47,7 +47,7 @@ describe('init', () => { ).toHaveBeenCalledWith( 'https://github.com/emulsify-ds/emulsify-drupal.git', '/home/uname/Projects/cornflake/themes/cornflake', - { '--branch': 'cli' } + { '--branch': 'master' } ); expect( rmdirMock diff --git a/src/handlers/init.ts b/src/handlers/init.ts index cc93f2d..8d01f4b 100644 --- a/src/handlers/init.ts +++ b/src/handlers/init.ts @@ -27,7 +27,7 @@ import { EXIT_ERROR } from '../lib/constants'; const git = simpleGit(); /** - * Handler for the initalization command. + * Handler for the initialization command. * * @param name name of the project being initialized. * @param targetDirectory relative path to the directory in which the project must be initialized. @@ -154,7 +154,7 @@ export default function init(progress: InstanceType) { // Remove the .git directory, as this is a starter kit. This step // should happen after dependencies are installed, and init scripts are - // executed, otherwise git-reliant dev deps in the starter may eror out. + // executed, otherwise git-reliant dev deps in the starter may error out. await fs.rmdir(join(target, '.git'), { recursive: true }); progress.tick(10, { diff --git a/src/util/getAvailableStarters.test.ts b/src/util/getAvailableStarters.test.ts index 36510cc..76bcf22 100644 --- a/src/util/getAvailableStarters.test.ts +++ b/src/util/getAvailableStarters.test.ts @@ -6,7 +6,7 @@ describe('getAvailableStarters', () => { expect(getAvailableStarters()).toMatchInlineSnapshot(` Array [ Object { - "checkout": "cli", + "checkout": "master", "platform": "drupal", "platformMajorVersion": 9, "repository": "https://github.com/emulsify-ds/emulsify-drupal.git", diff --git a/src/util/getAvailableStarters.ts b/src/util/getAvailableStarters.ts index 6fc891a..b0bd207 100644 --- a/src/util/getAvailableStarters.ts +++ b/src/util/getAvailableStarters.ts @@ -11,7 +11,7 @@ export default function getAvailableStarters(): EmulsifyStarter[] { platform: 'drupal', platformMajorVersion: 9, repository: 'https://github.com/emulsify-ds/emulsify-drupal.git', - checkout: 'cli', + checkout: 'master', }, ]; }