Skip to content

Commit

Permalink
- updated to use with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickolay Platonov committed Sep 10, 2010
1 parent e60becf commit b9cfec5
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5,750 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.build
.project
.externalToolBuilders
/Task-Joose-NodeJS-*
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Task.Joose.NodeJS - Joose, packaged with NodeJS flavour.
SYNOPSIS
========

require('Task/Joose/NodeJS')
require('task-joose-nodejs')
Class('Animal', {
...
Expand Down Expand Up @@ -49,26 +49,35 @@ SYNOPSIS
does : 'Winged'
})
INSTALLATION
============

With `npm`:

npm install task-joose-nodejs


DESCRIPTION
===========

`Task.Joose.NodeJS` is a distribution, containing Joose core bundled along with several essential extensions. Below is the composition:
`Task.Joose.NodeJS` is a distribution, which just loads a Joose core along with with several essential extensions. Its purposed to be used on NodeJS platform.

It includes:

> Joose [3.010](http://openjsan.org/doc/s/sa/samuraijack/Joose/3.010/lib/Joose.html)
> [Joose](http://openjsan.org/go/?l=Joose.Manual)
>> Joose core, provides definitions for `Class/Role/Module` helpers
> JooseX.Attribute [0.04](http://openjsan.org/doc/s/sa/samuraijack/JooseX/Attribute/0.04/lib/JooseX/Attribute.html)
> [JooseX.Attribute](http://openjsan.org/go/?l=JooseX.Attribute)
>> Additional features for attributes
> JooseX.Namespace.Depended [0.05](http://openjsan.org/doc/s/sa/samuraijack/JooseX/Namespace/Depended/0.05/lib/JooseX/Namespace/Depended.html)
> [JooseX.Namespace.Depended](http://openjsan.org/go/?l=JooseX.Namespace.Depended)
>> Dependencies handling extension
> JooseX.CPS [0.07](http://openjsan.org/doc/s/sa/samuraijack/JooseX/CPS/0.07/lib/JooseX/CPS.html)
> [JooseX.CPS](http://openjsan.org/go/?l=JooseX.CPS)
>> Trait, allowing to add the asynchronous (aka non-blocking) methods to your classes
Expand Down Expand Up @@ -138,7 +147,7 @@ This functionality is provided by the [JooseX.Namespace.Depended](http://openjsa
USAGE
=====

require('Task/Joose/NodeJS')
require('task-joose-nodejs')


This will export `Class/Role/Module` as standard CommonJS module. Also, it will *create the same helpers in the global scope*.
Expand All @@ -149,7 +158,7 @@ Scenario 1. Using Joose in CommonJS modules

In this scenario you'll probably want to create anonymous classes (just omit the name):

var Class = require('Task/Joose/NodeJS').Class
var Class = require('task-joose-nodejs').Class
var someFunc = require('some/module').someFunc

Expand Down
8 changes: 8 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ static_dir = static ; default
; manifest (after all generated files)
[Manifest]

[JSAN::NPM]
dependency = "joose" : ">=3.010.0"
dependency = "joosex-attribute" : ">=0.05.0"
dependency = "joosex-namespace-depended" : ">=0.08.0"
dependency = "joosex-cps" : ">=0.011.0"


; before release

Expand All @@ -48,6 +54,8 @@ static_dir = static ; default

; releaser
[JSAN::Upload] ; just a no-op for now
[JSAN::NPM::Publish]
sudo = 1

; after release
[Git::Commit / Commit_Dirty_Files]
Expand Down
Loading

0 comments on commit b9cfec5

Please sign in to comment.