Skip to content
Project File Management, inspired by the Angular.js build system
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

project-files Build Status

Project File Management, inspired by the Angular.js build system

Install It:

npm install --save-dev project-files

Configure Your Files:

projectFiles.js

require('project-files')(module,exports,{
    sourceFiles:[
        'src/main.js'
        '@moduleA'
        '@moduleB'
    ],
    moduleA:[
        'src/module-A-1.js'
        'src/module-A-2.js'
    ],
    moduleB:[
        'src/module-B/*.js'
    ],
    testFiles:[
        'test/*.js',
        'other-tests/*.js'
    ]
});

Merge Files In Build Scripts:

GruntFile.js

var projectFiles = require('./projectFiles.js');
grunt.initConfig({

    /* ... */

    concat:{
        src:projectFiles.mergeFilesFor('sourceFiles'),
        dest:'my-project-sources.js'
    }

    /* ... */

    jshint:{
        src:cameraFiles.mergeFilesFor('sourceFiles')
    }

});

karma.conf.js

var files = require('./projectFiles.js');

module.exports = function(config){
    config.set({
        files:files.mergeFilesFor('sourceFiles','testFiles')
    });
};
Something went wrong with that request. Please try again.