0.1.26 • Published 7 years ago

emp.ria-jsbuild3 v0.1.26

Weekly downloads
48
License
MIT
Repository
github
Last release
7 years ago

jsbuild3

JsBuild system for emp.ria framework

Build Status NPM version

Getting Started

npm install -g emp.ria-jsbuild3 --save-dev

Once the package has been installed, you may use it fomr shell:

Build jsbuild.json in current folder

jsbuild3

Specify path to jsbuild.json, build will be relative to config base dir

jsbuild3 --config /my/path/to/jsbuild.json

Specify exact modules to build, comma separated list

jsbuild3 --modules ModuleA,ModuleB

jsbuild.json example

{
  "version": "3.0",
  "framework": "/my/path/to/emp.ria-framework/",
  "options": {
    "uglifyjs": {
      "output": {
        "beautify": false
      },
      "compress": {
        "dead_code": true
      },
      "mangle": {
      }
    }
  },
  
  "libs": {
    "ria/": "/my/path/to/emp.ria-framework/"
  },
  
  "assets": {
    // internal jade assets compiler
    "jade": { 
      "compiler": "emp.ria-jade", // compiler npm, must be installed seperatly
      "options": { // jade compiler options
        "client": true,
        "compileDebug": false,
        "self": true
      }
    },
      
    // internal txt and json assets compilers
    "txt": {}, 
    "json": {},
      
    // custom assets compiler
    "custom-plugin": {
      "path": "/path/to/custom/plugin.js" // relative to jsbuild.json, please use lib/assets/jade.js as an example
    }
  },
  
  "modules": [{
    "name": "Main",
    "app": "app.DemoApp",
    "out": "scripts/DemoApp.compiled.js",
    
    "prepend": [
      "lib/jade.runtime.js"
    ],
    
    "globals": [
      "jQuery",
      "jade"
    ] 
  }]
}
0.1.26

7 years ago

0.1.25

9 years ago

0.1.24

9 years ago

0.1.23

9 years ago

0.1.22

9 years ago

0.1.21

9 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.1-1.1

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0-beta

10 years ago

0.1.0

10 years ago