Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flint

Package Overview
Dependencies
Maintainers
1
Versions
428
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flint - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

node/brewer.js

36

node/dependency.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc