Giter Site home page Giter Site logo

the-cc-dev / functionsack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ddrcode/functionsack

0.0 1.0 0.0 408 KB

Cross-environment, customizable JavaScript toolikt

Home Page: http://functionsack.com

License: MIT License

JavaScript 90.78% CSS 5.53% HTML 3.69%

functionsack's Introduction

FunctionSack

FunctionSack is a cross-environment JavaScript toolbox with customized-download feature. This project contains the source of FunctionSack features, including simple build tool and unit tests. The documentation and download feature are available at official FunctionSack website.

Build system

JavaScript files can't be used directly - they must be built with Jake first. JavaScript files are divided into modules (ie. core, txt, type). You can build multiple or just a single JS file into a single output file. Build options:

  • before you do your first build - create build directory in the project dir. All build output will be saved there.
  • jake help - displays build options
  • jake modules - lists the names of existing modules
  • jake buildall - builds all modules to a single file (build/fnsack-full.js). It can be parametrized with file name. (However the 'build' directory can't be changed in current version).
  • jake buildmod <modname> - builds a single module; build system recognizes here dependencies between modules and it builds the output file including them. So ie the 'obj' module will be built together with obj and type modules. When more than one module name passed, build system will produce multiple files.
  • jake build <file> <modules> - builds coustom file with selected modules. This option does not consider module dependencies and creates an output file based on provided module names. The output file does not require extension.

JSDocs generation

All source files contains documentation in JSDocs format. To generate the documentation follow the instruction below:

  • create a doc directory in project folder

  • install jsdoc-toolkit

  • build FunctionSack with jake buildall instruction (see description above)

  • Generate JSDocs with instruction:

java -jar jsrun.jar app/run.js -a -D="noGlobal:true" -D="title:FunctionSack" -t=./build-files/jsdoc-template -d=./doc -n build/fnsack-full.js

*  Please note
* ```jsrun.jar``` and ```app/run.js``` files come from jsdoc-toolkit, so provide the right path
* -t paramater requires a full path to the JSDoc template instead of the local path
* Information: JSDocs generator uses page template located in 'build-files/jsdoc-template'
directory. The template base on [Codeview Template](http://www.thebrightlines.com/2010/05/06/new-template-for-jsdoctoolkit-codeview/)

functionsack's People

Contributors

ddrcode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.