npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

easy-bake

v0.1.9

Published

EasyBake provides an efficient environment for CoffeeScript library developers: CoffeeScript/Javascript-based configuration files (no coding needed), workflow (build, watch, clean, preview) tests (QUnit, Jasime, NodeUnit, server-side emulation with ModuleBundler), publishing (git, npm, NuGet). Replace your Cakefile with a Bakefile today!

Downloads

7

Readme

Build Status

                                    ,--.           ,--.
 ,---.  ,--,--. ,---.,--. ,--.,-----.|  |-.  ,--,--.|  |,-. ,---.
| .-. :' ,-.  |(  .-' \  '  / '-----'| .-. '' ,-.  ||     /| .-. :
\   --.\ '-'  |.-'  `) \   '         | `-' |\ '-'  ||  \  \\   --.
 `----' `--`--'`----'.-'  /           `---'  `--`--'`--'`--'`----'
                     `---'

EasyBake provides YAML-based Cakefile helpers for common CoffeeScript library packaging functionality

Just include it as a development dependency to your package.json:

"devDependencies": {
  "coffee-script": ">=1.3.3",
  "easy-bake": ">=0.1.0"
},

Install it:

npm install

Create a YAML file to specify what needs to be built (for example easy-bake-config.yaml):

some_group:
  join: your_library_name.js
  minimize: true
  files:
    - src/knockback_core.coffee
    - src/lib/**.*coffee

some_other_group:
  join: helpers.js
  output: build
  directories:
    - lib/your_helpers1
    - lib/your_helpers2

Include it in your Cakefile:

require('easy-bake')('easy-bake-config.yaml')

And that's it! You will have access to the following cake commands and options in your projects...

Commands Supplied by EasyBake

  1. 'cake clean' - cleans the project of all compiled files
  2. 'cake build' - performs a single build
  3. 'cake watch' - automatically scans for and builds the project when changes are detected
  4. 'cake test' - cleans, builds, and runs tests. Note: the tests require installing phantomjs: ('brew install phantomjs' or http://phantomjs.org/)

Options:

  1. '-c' or '--clean' - cleans the project before running a new command
  2. '-w' or '--watch' - watches for changes
  3. '-s' or '--silent' - does not output messages to the console (unless errors occur)
  4. '-p' or '--preview' - preview the action

Testing

EasyBake is designed to use phantomjs but you will need to install it yourself since there is no npm package for it. Look here for the instructions: http://phantomjs.org/

Also, if you are using TravisCI, you should add something like this to your project.json file:

"scripts": {
  "test": "node_modules/.bin/cake -c test"
},

and a .travis.yaml to your project root file like:

language: node_js node_js:

  • 0.7 # development version of 0.8, may be unstable

before_script:

  • "export DISPLAY=:99.0"
  • "sh -e /etc/init.d/xvfb start"

and add test options to the set you want to test:

some_testing_group: output: build directories: - test/some_tests - test/some_more_tests options: test: timeout: 60000 runner: phantomjs-qunit-runner.js


by default, easy-bake looks for .html files in each each directory like, but you can list files individually if you like:

some_testing_group: ... options: test: timeout: 60000 runner: phantomjs-qunit-runner.js files: - **/*.html



**Note:** currently the library only has a test-runner for phantomjs-qunit-runner.js and phantomjs-jasmine-runner.js. Feel free to add more and to submit a pull request.


Building the library
-----------------------

###Installing:

1. install node.js: http://nodejs.org
2. install node packages: (sudo) 'npm install'

###Commands:

1. 'cake clean' - cleans the project of all compiled files
2. 'cake build' - performs a single build
3. 'cake watch' - automatically scans for and builds the project when changes are detected