Skip to content

Separate dev build #239

Description

@Praseetha-KR

Hi @una,

Currently, compiled files needs to be removed manually whenever:

  • pushing to github (to keep the PRs clean)
  • switching between branches

One approach to solve this problem would be to keep a separate folder for compiled files in local development, and there will be 2 gulp tasks:

  1. gulp - can be run on any branch
    • This generates a .dev folder, which serves as local dev server root
    • `scss/twig` compiled files will be generated inside this folder.
      
    • `test/`, `img/`, `filters.json` will also be copied to this
      
    • This folder will be added in `.gitignore` 
      
      so none of the compiled files appear in git status. PRs will contain only changed files.
  2. gulp build - run only in master
    This does compilations and places the generated files in the same place as current directory structure.

What do you think?

devbuild

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions