node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



a simple filename's specification for compilation tasks build with jison


  $ npm install jahpd/specfolder
  $ npm install -l


This module is part of jah-compiler, but you can use and modify if you want in your projects;

in jah-compiler, the src/ folder is used as main folder for (coffee-script) files; I want put all files in one folder, but specify the destination of compiled code(generally a javascript code)


  • src/ file will be translated to lib/app.js
  • src/ file will be translated to test/app.js
  • src/ file will be translated to examples/app.js

to test this do:

  $ echo "" > testspec
  $ node lib/specfolder.js testspec

At now, the generated code from testspec file is:

{ spec: [ { filename: 'app' }, { src: 'coffee', dest: 'js' } ],
  path: [ 'src/', 'examples/app.js' ] }