Comparing version 0.3.0 to 0.3.1
10
cmd.js
// Generated by CoffeeScript 1.3.3 | ||
var compile, fs, options, optparse, output, parser, printUsage, switches; | ||
var compile, ext, fs, options, optparse, output, parser, path, printUsage, switches, without_ext; | ||
@@ -8,2 +8,4 @@ compile = require('./jspackage').compile; | ||
path = require('path'); | ||
optparse = require('optparse'); | ||
@@ -57,2 +59,8 @@ | ||
if ((ext = path.extname(options.mainfile)).length > 0) { | ||
without_ext = options.mainfile.substring(0, options.mainfile.length - ext.length); | ||
console.error("Warning: don't include the file extension for input_file."); | ||
console.error("Did you mean this? " + without_ext); | ||
} | ||
compile(options, function(err, code) { | ||
@@ -59,0 +67,0 @@ var timestamp; |
{ | ||
"name": "jspackage", | ||
"description": "build tool which adds client-side import syntax", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Andrew Kelley", |
@@ -1,3 +0,3 @@ | ||
Client side build tool with dependency management | ||
================================================= | ||
Build tool to bundle client side code with an import syntax | ||
=========================================================== | ||
@@ -22,4 +22,4 @@ Ever wanted to have an `#import` statement in your favorite language which | ||
* File extensions are automatically resolved. Do not include file extensions | ||
in your import statements. | ||
* File extensions are automatically resolved, and in fact are not allowed in | ||
import statements. This goes for the input_file too. | ||
* Files will only be included once in the resulting code, regardless of how | ||
@@ -32,5 +32,5 @@ many times a file is imported. | ||
request. | ||
* Includes a --watch mode which automatically recompiles source files when | ||
* Includes a `--watch` mode which automatically recompiles source files when | ||
they change. | ||
* Ability to supply more source code search paths with --lib. | ||
* Ability to supply more source code search paths with `--lib`. | ||
@@ -37,0 +37,0 @@ ## Command line usage |
Sorry, the diff of this file is not supported yet
30771
502