Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nin-jin/mam_jin
jin micro modules for pms arhitecture
https://github.com/nin-jin/mam_jin
Last synced: about 2 months ago
JSON representation
jin micro modules for pms arhitecture
- Host: GitHub
- URL: https://github.com/nin-jin/mam_jin
- Owner: nin-jin
- License: unlicense
- Created: 2014-02-08T16:41:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T13:32:21.000Z (about 7 years ago)
- Last Synced: 2024-05-21T03:14:12.941Z (8 months ago)
- Language: JavaScript
- Size: 398 KB
- Stars: 46
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Stable modules
========[$jin.time](time/readme.md) - proper date/time/duration/range arithmetic
[$jin.method](method/jin-method.doc.md) - method definer (obsolete, use TS instead)
Building your package
=======Instal builder
npm install pms
Create build-script "build.js" and put into:
```js
with( require( 'pms' ) ) // loads prebuilded builder (may be old version)
$pms.application( function( ){
with( $jin.build( 'jin/build?env=node' ).jsIndexNode()[0].load() ){ // build and load $jin.build package
$jin.build( 'jin/atom?env=web' ).jsCompiled() // builds $jin.atom standalone js-library
// builds js for $foo.bar
$jin.build( 'jin/slide?env=web' ).jsIndexWeb() // use jsCompiled instead
$jin.build( 'jin/slide?env=web' ).jsCompiled() // supports TS and source maps// builds css for $foo.bar
$jin.build( 'jin/slide?env=web' ).cssIndex() // use cssCompiled instaed
$jin.build( 'jin/slide?env=web' ).cssCompiled() // supports Stylus and source maps
//wait for file changes
$jin.alert( 'Press any key to stop automatic rebuild' )
}
})
```Create your namespace(foo) and application(bar) directories:
/
build.js
jin/
...
foo/
bar/Put into foo/bar file "foo-bar.meta.tree":
include =jin/atom
include =jin/viewOr(!) simple use its in JAM-file "foo-bar.jam.js":
```js
$jin.alert( 'Hello world' ) // Isomorphic alert
```Then run building:
node --harmony build.js
That builds all needed js and css files. You can find them in "-mix" subdirectories.