Skip to content

Latest commit

 

History

History
54 lines (49 loc) · 983 Bytes

Build.md

File metadata and controls

54 lines (49 loc) · 983 Bytes

To add to your existing repo:

npm install helixbass/copheescript --save-dev

Config that we have to compile copheescript files

grunt.initConfig
    cophee:
      classes:
        files: [
          expand: yes
          cwd: '<%= paths.controller %>'
          src: [ '{,**/}*.php.cophee' ]
          dest: '<%= paths.controller %>'
          ext: '.php'
        ]
grunt.initConfig( {
    cophee: {
      classes: {
        files: [ {
          expand: true,
          cwd: '<%= paths.controller %>',
          src: [ '{,**/}*.php.cophee' ],
          dest: '<%= paths.controller %>',
          ext: '.php',
        }]
      }
    }
});

Path that cophee should look in to

grunt.initConfig
    paths:
      controller: 'application/classes/'
grunt.initConfig({
    paths: {
      controller: 'application/classes/'
    }
});

Compile all cophee script assets:

grunt cophee