Comparing version 0.0.1 to 0.0.3
@@ -42,4 +42,3 @@ | ||
files = [] | ||
try { | ||
// loop over directory and compile files | ||
@@ -49,18 +48,24 @@ | ||
for(var l = 0; l < list.length; l++){ | ||
try { | ||
if (err) throw err; | ||
for(var l = 0; l < list.length; l++){ | ||
if(list[l] != '.DS_Store'){ | ||
js = fs.readFileSync(deps.in + '/' + list[l], 'utf8'); | ||
files.push(js); | ||
} | ||
} | ||
write(files); | ||
} catch (e) { | ||
js = fs.readFileSync(deps.in + '/' + list[l], 'utf8'); | ||
files.push(js); | ||
console.log(color.red + '[dependency] ERROR: could not read dependencies from : ' + deps.in + color.reset) | ||
} | ||
write(files); | ||
}); | ||
} catch (e) { | ||
console.log(color.red + '[dependency] ERROR: could not read dependencies from : ' + deps.in + color.reset) | ||
} | ||
@@ -71,3 +76,2 @@ } | ||
try{ | ||
@@ -80,3 +84,3 @@ | ||
console.log(color.red + '[dependency] ERROR: could not write file to : ' + deps.out + color.reset + e); | ||
console.log(color.red + '[dependency] ERROR: could not write file to : ' + deps.out + color.reset); | ||
@@ -90,2 +94,2 @@ } | ||
exports.watch = function(){ concat(true); }; | ||
exports.conact = concat; | ||
exports.concat = concat; |
// flint command line tool | ||
// require the things we need | ||
optimist = require('optimist'); | ||
fs = require('fs'); | ||
path = require('path'); | ||
brew = require('./coffee'); | ||
style = require('./styler'); | ||
brewer = require('./brewer'); | ||
styler = require('./styler'); | ||
depend = require('./dependency'); | ||
ride = require('handlebar-rider'); | ||
plater = require('./plater'); | ||
/* | ||
// get optimist options | ||
argv = optimist | ||
.usage('\nFlint: Full stack coffeescript development.\nCommand Line Use: ') | ||
.demand(' ') | ||
.argv | ||
*/ | ||
.usage('\nflint.\nFull stack coffeescript development \n\nInstructions: ') | ||
.alias('w','watch') | ||
.describe('w','Watches and compiles coffee, stylus, templates and dependencies') | ||
.alias('c','compile') | ||
.describe('c','Compiles coffee, stylus, handlebars, templates and dependencies') | ||
.alias('f','file') | ||
.describe('f','Path to the flint configuration file') | ||
.default('f','flint.js') | ||
.alias('b','build') | ||
.describe('b','Rebuilds the core flint javacript library') | ||
.argv | ||
// wrap dependencies | ||
//depencency = { | ||
// in: '/Users/benipsen/Sites/flybook/app/vendor', | ||
// out: '/Users/benipsen/Sites/flybook/public/javascript/dependencies.js' | ||
//} | ||
//depend.on(depencency); | ||
depend.watch(); | ||
// load the configuration file and configure our tools | ||
try { | ||
cwd = process.cwd(); | ||
flint = require(cwd + '/' + argv.file) | ||
base = path.dirname(argv.file) + '/' | ||
// brew the coffee | ||
//coffee_maker = { | ||
// in: '/Users/benipsen/Sites/flybook/app/coffee', | ||
// out: '/Users/benipsen/Sites/flybook/public/javascript/application.js' | ||
//} | ||
//brew.configure(coffee_maker); | ||
brew.watch(); | ||
// dependencies - todo, people are going to want to specify a load order for these | ||
depencency = {} | ||
depencency.in = base + flint.config.dependencies | ||
depencency.out = base + flint.config.compile_dependencies_to | ||
depend.on(depencency) | ||
// run the styler | ||
//style_guide = { | ||
// in:'/Users/benipsen/Sites/flybook/app/stylus/', | ||
// out:'/Users/benipsen/Sites/flybook/public/application.css' | ||
//} | ||
//style.configure(style_guide) | ||
style.watch() | ||
// coffee destinations and template engine | ||
coffee_maker = {} | ||
coffee_maker.in = base + flint.config.coffeescript | ||
coffee_maker.out = base + flint.config.compile_coffee_to | ||
coffee_maker.template_engine = flint.config.template_engine | ||
brewer.configure(coffee_maker) | ||
// stylus | ||
artist = {} | ||
artist.in = base + flint.config.stylus | ||
artist.out = base + flint.config.compile_stylus_to | ||
styler.configure(artist) | ||
// ride on the handlebars | ||
//bike = { | ||
// in:'/Users/benipsen/Sites/flybook/app/handlebars/', | ||
// out:'/Users/benipsen/Sites/flybook/public/javascript/templates.js', | ||
// minify: true | ||
//} | ||
//ride.configure(bike) | ||
ride.watch() | ||
// templates | ||
plates = {} | ||
plates.in = base + flint.config.templates | ||
plates.out = base + flint.config.compile_templates_to | ||
plates.engine = flint.config.template_engine | ||
plater.configure(plates) | ||
if ( argv.compile ) { | ||
// compile it up | ||
depend.concat() | ||
brewer.compile() | ||
styler.compile() | ||
plater.compile() | ||
} | ||
if ( argv.watch ) { | ||
// compile it up | ||
depend.watch() | ||
brewer.watch() | ||
styler.watch() | ||
plater.watch() | ||
} | ||
} catch (e) { | ||
console.log('[flint] configuration file missing or currupted: ' + argv.file + '\n') | ||
console.log(optimist.help()) | ||
console.log(e) | ||
} |
@@ -123,3 +123,2 @@ | ||
console.log(color.red + '[styler] Cound not read stylus directory: ' + dir + color.reset); | ||
console.log(e); | ||
@@ -143,3 +142,3 @@ } | ||
console.log(color.red + '[styler] ERROR! Destination file or directory does not exist.' + color.reset + '\n:' + e); | ||
console.log(color.red + '[styler] ERROR! Destination file or directory does not exist.' + color.reset); | ||
@@ -146,0 +145,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description" : "Full Stack Coffeescript Development", | ||
"version" : "0.0.1", | ||
"version" : "0.0.3", | ||
@@ -27,3 +27,3 @@ "repository" : { | ||
"dependencies" : { | ||
"handlebar-rider" : ">= 0.1.10", | ||
"handlebars" : ">= 1.x", | ||
"stylus" : ">= 0.22.1", | ||
@@ -30,0 +30,0 @@ "coffee-script" : "1.1.3", |
# flint | ||
================ | ||
Full stack coffee script development. This is in it's very early stages, the client side compile and watch tools are the only thing working right now. | ||
Full stack coffee script development. | ||
This project is in its very early stages, the client side compile and watch tools are the only thing working right now. | ||
STAY TUNED. | ||
@@ -11,2 +13,12 @@ | ||
npm install -g flint | ||
### Usage: | ||
flint [options] | ||
Options: | ||
-w, --watch Watches and compiles coffee, stylus, templates and dependencies | ||
-c, --compile Compiles coffee, stylus, handlebars, templates and dependencies | ||
-f, --file Path to the flint configuration file [default: "./flint.js"] | ||
-b, --build Rebuilds vendor_path/flint.js | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23712
8
560
24
5
1
+ Addedhandlebars@>= 1.x
- Removedhandlebar-rider@>= 0.1.10
- Removedasync@3.2.6(transitive)
- Removedexec-sh@0.2.2(transitive)
- Removedhandlebar-rider@0.1.20(transitive)
- Removedinherits@2.0.3(transitive)
- Removedmerge@1.2.1(transitive)
- Removedminimist@0.0.10(transitive)
- Removedoptimist@0.6.1(transitive)
- Removedpath@0.12.7(transitive)
- Removedprocess@0.11.10(transitive)
- Removedsupercli@0.4.1(transitive)
- Removeduglify-js@1.1.1(transitive)
- Removedunderscore@1.13.7(transitive)
- Removedutil@0.10.4(transitive)
- Removedwatch@1.0.2(transitive)
- Removedwordwrap@0.0.3(transitive)