Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Clean public/ folder before build #15

Closed
alienlebarge opened this issue Oct 15, 2013 · 2 comments
Closed

Clean public/ folder before build #15

alienlebarge opened this issue Oct 15, 2013 · 2 comments
Assignees

Comments

@alienlebarge
Copy link
Contributor

When you you change patterns name and rebuild the public/ folder, the old files and folders still present.

Is it possible to clean public/ folder before build ?

Now I do that with Grunt.

...

    // Clean folder
    clean: {
      // Clean patternlab public/ folder
      pl: [
      'patternlab-php/public/assets',
      'patternlab-php/public/css',
      'patternlab-php/public/fonts',
      'patternlab-php/public/images',
      'patternlab-php/public/js'
      ],
      // Clean main build
      dist: {
        options: {
          force: true
        },
        src:['<%= dest %>/**/*']
      }
    },




    recess: {
      pl: {
        options: {
          compile: true,
          compress: true,
        },
        files: {
          'patternlab-php/source/css/style.css': ['patternlab-php/source/less/style.less']
        }
      }
    },





    // Compile pattern-lab files
    shell: {                                // Task
      // Run patternlab build
      pl: {                      // Target
          options: {                      // Options
            stdout: true
          },
          command: 'php patternlab-php/builder/builder.php -g'
        }
      },

...
@ghost ghost assigned dmolsen Oct 15, 2013
@dmolsen
Copy link
Member

dmolsen commented Oct 15, 2013

Good idea. I might only add it as a flag but the feature idea will definitely make its way into PL. It'll be added with the next release. Unfortunately, I'm not sure on a timeline for that yet. Shouldn't be too far away.

@dmolsen
Copy link
Member

dmolsen commented Oct 26, 2013

Generating the site will now clean public/ first. Should reduce cruft. This feature is currently in dev branch. Thanks for the idea.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants