kennberg / node-uber-compiler Goto Github PK
View Code? Open in Web Editor NEWNode.js module that acts as a compiler for client-side JS and CSS using Google Closure and LESS
License: Other
Node.js module that acts as a compiler for client-side JS and CSS using Google Closure and LESS
License: Other
please mention require('path')
in the docs or something
my code:
var path = require('path');
var rootPath = process.cwd();
var uberOptions = {
jsPaths: [
path.join(rootPath, 'jQuery.js')
],
cssPaths: [ path.join(rootPath, 'style') ],
outputDir: path.join(rootPath, 'public/cached'),
debug: true
};
var uberCompiler = require('uber-compiler')(uberOptions);
uberCompiler.run();
error:
29 Mar 12:48:23 - Compiling JS files
29 Mar 12:48:23 - Compressing 1 CSS files
Error: ENOENT, no such file or directory '/Users/matjaz/Documents/NGBGA/templates/dbdd/node-dbdd/build/uber-compiler/public/cached/cached.css'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at null. (/Users/matjaz/Documents/NGBGA/templates/dbdd/node-dbdd/build/node_modules/uber-compiler/index.js:241:8)
at Object.Parser.parser.parse (/Users/matjaz/Documents/NGBGA/templates/dbdd/node-dbdd/build/node_modules/less/lib/less/parser.js:476:17)
at UberCompiler.compileCss_ (/Users/matjaz/Documents/NGBGA/templates/dbdd/node-dbdd/build/node_modules/uber-compiler/index.js:230:10)
at UberCompiler.run (/Users/matjaz/Documents/NGBGA/templates/dbdd/node-dbdd/build/node_modules/uber-compiler/index.js:83:10)
at Object. (/Users/matjaz/Documents/NGBGA/templates/dbdd/node-dbdd/build/uber-compiler/uber.js:12:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
Instead of re-compiling on startup, we should compare the timestamp of the last compiled file against the timestamps for all the source files. If all the source files are older than the compiled file then we don't need to re-compile.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.