ember-apply
    Preparing search index...

    Function gitIgnore

    Public API for the project namespace

    • Adds an entry to the project's .gitignore file. Will create a .gitignore file if it doesn't exist. Will insert the pattern under the heading and create the heading if it doesn't exist.

      Parameters

      • pattern: string

        the pattern to add to the .gitignore file

      • Optionalheading: string

        optional heading to place the pattern under

      Returns Promise<void>

      place an ignore entry at the bottom of the file

      import { project } from 'ember-apply';

      await project.gitIgnore('node_modules');

      place an ignore under a heading in the .gitignore file

      import { project } from 'ember-apply';

      await project.gitIgnore('dist', '# build output');