specfolder
a simple specification parser for filenames and folders for multiple compilations tasks
Last updated 7 years ago by jahpd .
CC-BY-SA · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install specfolder 
SYNC missed versions from official npm registry.

Specfolder

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

Installation

  $ npm install jahpd/specfolder
  $ npm install -l

Usage

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)

So

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

to test this do:

  $ echo "app.examples.coffee" > testspec
  $ node lib/specfolder.js testspec

At now, the generated code from testspec file is:

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

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

1 Versions

  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |