mojito-shaker

Compiles and deploys asset rollups for Mojito applications.

170 个版本
安装
npm install mojito-shaker
yarn add mojito-shaker
pnpm add mojito-shaker
bun add mojito-shaker
README

Shaker

Shake it!

Shaker is a powerful static asset manager for Mojito applications. It gives users absolute control in transforming, validating, uploading, organizing, and combining resources in order to maximize performance and build dynamic applications.

For more information, please see the online documentation.

Build Status

Installation

Shaker can be installed either locally or globally (using -g option), but we encourage you to install it locally, since the reference to the inner mojits will be relative to the app.

  1. Get the mojito-shaker npm package and install it:

     $ cd myMojitoApp
     $ npm install mojito-shaker [-g]
    
  2. If you installed it locally you will have to link it:

     $ cd ./node_modules/mojito-shaker/ && sudo npm link
    
  3. Confirm that Shaker has been installed correctly by running:

     $ mojito-shake
    
  4. If you got some error, check if you have correctly configured the Node environment. You can try to set the right $NODE_PATH to the modules using:

     $ export NODE_PATH=:$NODE_PATH:`npm root -g`
    

Quick Start

Within a Mojito application root folder:

Edit application.json to configure the mojitDirs and the HTMLFrame so that it looks like:

[
    {
        "settings": [ "master" ],
        "mojitsDirs": ["mojits","node_modules/mojito-shaker/mojits"],
        "specs": {
            "htmlframe": {
                "type": "ShakerHTMLFrameMojit"
            }
        }
    }
]

Note: If you installed mojito-shaker globally you will have to point to the absolute path instead.

Execute Shaker and Start the server:

$ mojito-shake [--context "{key1}:{value1}[,{key2}:{value2}]"] [--run]
$ mojito start [--context "{key1}:{value1}[,{key2}:{value2}]"]

Go to URL:

http://localhost:8666/

Documentation

You can access the documentation here: http://developer.yahoo.com/cocktails/shaker

If you want to build and contribute to the documentation, you will have to install Sphinx and under /docs run:

$ make html

Licensing and Contributions

Shaker is licensed under a BSD license.

To contribute to the Shaker project, please review the Mojito Contributor License Agreement.

Dependencies (Third-party libraries)

gear, async, mkdirp, mime, and optionally knox to use the S3 task.

Credits

The following image is used in accordance with the Creative Commons 2.0 License:

http://www.flickr.com/photos/breatheindigital/4623226056/

版本列表
4.3.2 2014-12-02
4.3.1 2014-10-31
4.3.0 2014-10-03
4.2.7 2014-08-18
4.2.6 2014-07-29
4.2.5 2014-07-02
4.2.4 2014-06-25
4.2.3 2014-06-23
4.2.2 2014-06-23
4.2.1 2014-05-21
4.2.0 2014-05-06
4.1.17 2014-05-05
4.1.16 2014-04-24
4.1.15 2014-04-23
4.1.14 2014-04-11
4.1.13 2014-03-13
4.1.12 2014-03-06
4.1.11 2014-03-01
4.1.10 2014-02-28
4.1.9 2014-02-28
4.1.8 2014-02-21
4.1.6 2014-02-01
4.1.5 2013-12-12
4.1.4 2013-12-12
4.1.3 2013-12-10
4.1.2 2013-12-06
4.1.1 2013-12-06
4.1.0 2013-11-26
4.0.29 2013-10-09
4.0.28 2013-10-07
4.0.27 2013-09-12
4.0.26 2013-09-10
4.0.25 2013-07-16
4.0.24 2013-06-20
4.0.23 2013-06-19
4.0.22 2013-06-19
4.0.21 2013-06-15
4.0.19 2013-05-22
4.0.18 2013-05-21
4.0.17 2013-05-15
4.0.16 2013-05-06
4.0.15 2013-05-01
4.0.14 2013-05-01
4.0.13 2013-05-01
4.0.12 2013-04-29
4.0.11 2013-04-29
4.0.10 2013-04-23
4.0.9 2013-04-22
4.0.8 2013-04-22
4.0.7 2013-04-19
4.0.6 2013-04-17
4.0.5 2013-04-17
4.0.4 2013-04-11
4.0.3 2013-04-11
4.0.2 2013-04-09
4.0.1 2013-04-06
4.0.0 2013-03-29
4.0.0pr5 2013-03-28
4.0.0pr4 2013-03-27
4.0.0pr3 2013-03-19
4.0.0pr2 2013-03-18
4.0.0pr1 2013-03-15
3.1.3 2013-03-01
3.1.2 2013-02-27
3.1.1 2013-02-27
3.1.0 2013-02-27
3.0.8 2013-02-05
3.0.7 2013-02-05
3.0.6 2013-02-04
3.0.5 2013-02-04
3.0.4 2013-01-31
3.0.3 2013-01-31
3.0.2 2013-01-24
3.0.1 2013-01-23
3.0.0 2013-01-18
3.0.9pr1 2013-03-07
3.0.0pr5 2013-01-15
3.0.0pr4 2013-01-15
3.0.0pr3 2013-01-09
3.0.0pr2 2013-01-09
3.0.0pr1 2013-01-04
2.0.32 2012-10-16
2.0.31 2012-10-10
2.0.30 2012-10-10
2.0.29 2012-10-08
2.0.28 2012-10-05
2.0.27 2012-10-05
2.0.26 2012-10-04
2.0.25 2012-10-02
2.0.24 2012-10-01
2.0.22 2012-10-01
2.0.21 2012-09-27
2.0.20 2012-09-26
2.0.19 2012-09-26
2.0.18 2012-09-26
2.0.17 2012-09-26
2.0.16 2012-09-25
2.0.15 2012-09-25
2.0.14 2012-09-19
2.0.13 2012-09-19
2.0.12 2012-09-17
2.0.11 2012-09-17
2.0.10 2012-09-10
2.0.9 2012-09-04
2.0.8 2012-08-30
2.0.7 2012-08-29
2.0.6 2012-08-29
2.0.5 2012-08-29
2.0.4 2012-08-29
2.0.3 2012-08-28
2.0.2 2012-08-28
2.0.1 2012-08-28
2.0.0 2012-08-27
2.0.37pr5 2012-11-29
2.0.37pr4 2012-11-09
2.0.36pr4 2012-11-09
2.0.35pr3 2012-11-02
2.0.34pr3 2012-11-02
2.0.33pr3 2012-11-02
2.0.33pr2 2012-10-16
0.8.25 2012-08-29
0.8.24 2012-08-29
0.8.23 2012-08-02
0.8.22 2012-08-02
0.8.21 2012-08-02
0.8.20 2012-07-23
0.8.19 2012-07-20
0.8.18 2012-07-19
0.8.17 2012-07-17
0.8.16 2012-07-13
0.8.15 2012-07-13
0.8.14 2012-07-13
0.8.13 2012-07-11
0.8.12 2012-07-11
0.8.11 2012-07-10
0.7.41 2012-06-21
0.7.9 2012-07-07
0.7.8 2012-07-05
0.7.7 2012-06-27
0.7.6 2012-06-22
0.7.5 2012-06-21
0.7.4 2012-06-21
0.7.3 2012-06-20
0.7.2 2012-06-20
0.7.0 2012-06-20
0.6.2 2012-06-18
0.6.1 2012-06-12
0.6.0 2012-06-08
0.5.0 2012-06-07
0.4.0 2012-06-05
0.3.1 2012-06-05
0.3.0 2012-05-31
0.2.7 2012-05-31
0.2.6 2012-05-24
0.2.5 2012-05-24
0.2.4 2012-05-24
0.2.3 2012-05-24
0.2.2 2012-05-24
0.2.1 2012-05-24
0.2.0 2012-05-23
0.1.31 2012-05-15
0.1.3 2012-05-14
0.1.2 2012-05-14
0.1.0 2012-05-11
0.0.7 2012-05-11
0.0.6 2012-05-10
0.0.5 2012-05-08
0.0.4 2012-05-07
0.0.3 2012-05-05
0.0.2 2012-04-26