Permalink
Browse files

- updated dist.ini

  • Loading branch information...
1 parent 2e2cb12 commit 15ad3576bf77942935b0f40319c81cf424d3ed6b Nickolay Platonov committed Nov 1, 2010
Showing with 53 additions and 48 deletions.
  1. +45 −29 dist.ini
  2. +8 −19 t/index.js
View
74 dist.ini
@@ -2,54 +2,73 @@ name = Data-Visitor
abstract = Visitor style traversal of JavaScript data structures
author = Nickolay Platonov <nplatonov@cpan.org>
-
license = LGPL_3_0
-copyright_holder = Nickolay Platonov <nplatonov@cpan.org>
-
+copyright_holder = Nickolay Platonov
+;=========================================================================
; version provider
-[BumpVersionFromGit]
-first_version = 0.01
+[Git::NextVersion]
+first_version = 0.0.1
+
+
+;=========================================================================
+; include the link to git repo and web page
+
+[GithubMeta]
+
+
+;=========================================================================
; choose/generate files to include
[GatherDir]
[PruneCruft]
-[ManifestSkip]
[License]
-; build system
-
-[ExecDir]
-[ShareDir]
-
+;=========================================================================
; JSAN-specific configuration
-[JSAN] ; includes META.JSON generation
+
+[JSAN] ; generate docs
docs_markup = mmd ; default
+
+[JSAN::StaticDir]
static_dir = static ; default
-[JSAN::ReadmeFromMD] ; should be after docs generation
-[JSAN::InstallInstructions]
+[JSAN::PkgVersion]
+
+[JSAN::ReadmeFromMD] ; should be after docs generation
+[JSAN::InstallInstructions] ; add INSTALL file, describing the installation process
+[JSAN::Bundle] ; after docs generation to avoid docs for bundles
+
-[JSAN::Bundle] ; after docs generation to avoid docs for bundles
+;=========================================================================
+; `npm` configuration - package.json generation
-; manifest (after all generated files)
-[Manifest]
+[JSAN::NPM]
+main = lib/Task/Data/Visitor/Core
+dependency = joose >= 3.14.0
+
+;=========================================================================
; before release
[Git::Check]
[CheckChangesHasContent]
-
-; [TestRelease] todo
[ConfirmRelease]
-; releaser
-[JSAN::Upload] ; just a no-op for now
+
+;=========================================================================
+; release
+
+[JSAN::NPM::Publish] ; publish in `npm`
+sudo = 1
+
+;=========================================================================
; after release
+
[Git::Commit / Commit_Dirty_Files]
[Git::Tag]
@@ -62,12 +81,9 @@ format = %-9v %{yyyy-MM-dd HH:mm}d
[Git::Push]
push_to = origin
+[JSAN::GitHubDocs] ; after all commits to have clean workspace
+
[Twitter]
-tweet_url = http://openjsan.org/go/?l={{ my $dist = $DIST; $dist =~ s/-/./g; $dist; }}
-tweet = Released {{$DIST}}-{{$VERSION}} {{$URL}}
-hash_tags = #jsan
-
-; prerequisites
-
-[JSAN::Prereq]
-Joose = 3.001
+tweet_url = http://samuraijack.github.com/{{$DIST}}
+tweet = Released {{$DIST}}-{{$VERSION}} {{$URL}}
+hash_tags = #nodejs #npm
View
27 t/index.js
@@ -1,5 +1,5 @@
var Harness
-var isNode = typeof process != 'undefined' && process.pid
+var isNode = typeof process != 'undefined' && process.pid
if (isNode) {
require('Task/Test/Run/NodeJSBundle')
@@ -13,30 +13,19 @@ var INC = (isNode ? require.paths : []).concat('../lib', '/jsan')
Harness.configure({
- title : 'Data.Visitor Test Suite',
-
- passThroughEx : true,
+ title : 'Data.Visitor Test Suite',
- preload : Joose.is_NodeJS ? [
+ preload : [
"jsan:Task.Joose.Core",
- "jsan:Task.JooseX.Namespace.Depended.NodeJS",
+ "jsan:Task.JooseX.Namespace.Depended.Auto",
{
- text : "JooseX.Namespace.Depended.Manager.my.INC = " + JSON.stringify(INC)
- },
- 'Data.Visitor'
-
- ] : [
- "jsan:Task.Joose.Core",
- "jsan:JooseX.SimpleRequest",
- "jsan:Task.JooseX.Namespace.Depended.Web",
- {
- text : "JooseX.Namespace.Depended.Manager.my.INC = " + Ext.encode(Harness.absolutizeINC(INC))
- },
- 'Data.Visitor'
+ text : "JooseX.Namespace.Depended.Manager.my.INC = " + Harness.prepareINC(INC)
+ }
]
})
Harness.start(
- '010_basics.t.js'
+ '010_basics.t.js'
)
+

0 comments on commit 15ad357

Please sign in to comment.