UNPKG

ashleshajs

Version:

AshleshaJS is a framework to build high performance and maintainable single page web applications. It uses ExpressJS and YUI3 as foundation. It is tightly coupled with Twitter Bootstrap for the CSS framework but you can use any other framework as well.

48 lines (36 loc) 1 kB
/** * Node Module: AshleshaJS * @author: Akshar Prabhu Desai * * This is the entry point for ashleshajs node module. This module can be used to create app in other directories. */ /** REQUIRES **/ var fs = require("fs"), YUI = require('yui').YUI, redis = require('redis'), io = require("socket.io"), crypto = require('crypto'), jsdom = require('jsdom'), argv = process.argv, cwd = process.cwd(); /** CREATE APP **/ if(argv[2] && argv[2]==="create"){ console.log("Creating AshleshaJS App in "+cwd); fs.mkdir(cwd+"/components",766,function(err){ console.log(err); }); fs.mkdir(cwd+"/api",766,function(err){ console.log(err); }); fs.writeFile(cwd+"/server.js","",function(err){ console.log(err); }); fs.writeFile(cwd+"/build.js","",function(err){ console.log(err); }); } /** BUILD APP **/ /** ADD MODULE **/ /** DELETE MODULE **/ /** RUN SERVER **/ /** RUN TEST CASES **/