0.2.22 • Published 7 years ago

appmaker v0.2.22

Weekly downloads
109
License
-
Repository
github
Last release
7 years ago

appmaker

helper script for creating production build of web application (compile less to css, optimize js using requirejs optimizer, etc)

Installation

npm install appmaker

Usage

create your own makeApp.js build script (e.g. at root directory of your project), define your tasks and use helper methods within them, e.g.

#!/usr/bin/env node

var	appMaker = require('./lib/2do2go/node_utils/appMaker'),
	path = require('path');

var tasks = {};
tasks.build = function() {
	tasks.clean();
	tasks.compileLess();
	tasks.requirejsOptimize();
};

tasks.compileLess = function() {
	appMaker.compileLess({files: 'static/css/*.less'});
};

tasks.requirejsOptimize = function() {
	appMaker.requirejsOptimize({
		modulesDir: 'static/js/views/',
		baseUrl: 'static/js/',
		dir: 'static/scripts',
		mainConfigFile: 'views/template/requirejs/development.js'
	});
};

tasks.clean = function() {
	appMaker.clean(
		['static/scripts', 'static/js/sharedmodules/*.js', 'static/css/*.css'],
		'-Rf'
	);
};

appMaker.process(tasks);

after that you can call ./makeApp.js (don't forget to make him executable via chmod +rx) to see available commands

0.2.22

7 years ago

0.2.21

7 years ago

0.2.20

8 years ago

0.2.19

8 years ago

0.2.18

8 years ago

0.2.17

9 years ago

0.2.16

9 years ago

0.2.15

9 years ago

0.2.14

9 years ago

0.2.13

9 years ago

0.2.12

10 years ago

0.2.11

10 years ago

0.2.10

10 years ago

0.2.9

10 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago