Skip to content

Commit

Permalink
updated docs and mantri ver
Browse files Browse the repository at this point in the history
  • Loading branch information
thanpolas committed Feb 19, 2013
1 parent cf448e1 commit 8eb57e6
Show file tree
Hide file tree
Showing 6 changed files with 362 additions and 10 deletions.
12 changes: 12 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = function( grunt ) {
'use strict';

grunt.loadNpmTasks('mantri');
grunt.loadNpmTasks('grunt-contrib-connect');

//
// Grunt configuration:
Expand Down Expand Up @@ -45,13 +46,24 @@ module.exports = function( grunt ) {
files: ['js/**/*.js', 'mantriConf.json'],
tasks: ['mantriDeps:todoApp']
}
},
connect: {
todoApp: {
options: {
port: 4242,
base: './',
keepalive: true
}
}
}


});

// Create shortcuts to main operations.
grunt.registerTask('deps', ['mantriDeps:todoApp']);
grunt.registerTask('build', ['mantriBuild:todoApp']);
grunt.registerTask('server', ['connect:todoApp']);

// the default task, when 'grunt' is executed with no options.
grunt.registerTask('default', ['test']);
Expand Down
46 changes: 42 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,46 @@
# Mantri + Ember.js • [TodoMVC](http://todomvc.com)
# [Mantri][][ember.js][][TodoMVC][]


## Alpha Alpha Alpha
A comprehensive showcase for the [Mantri][] Dependency System.

I am currently working on publishing everything. This repo contains a working solution, proof of concept, for the elegant Mantri dependency management system.
## Get Started

Follow the action in the [Mantri repo](https://github.com/thanpolas/mantri).
```shell
git clone [email protected]:thanpolas/todoAppMantri.git

cd todoAppMantri
```

### Launch Static Server

```shell
grunt server
```

Then point your browser to http://localhost:4242/

### Try Mantri's Tasks

#### Run Dependencies Generation

```shell
grunt deps
```

#### Build The Application
```shell
grunt build
```
The built file will be in the `dist` folder.


#### The Init Task

```shell
grunt mantriInit
```

The task will create a copy of `mantri.web.js` file and fail on `mantriConf.json` file as it already exists.


## Credit
Expand All @@ -16,3 +50,7 @@ Initial release by @tomdale.
Refactoring and maintenance by @stas.

Porting to mantri by @thanpolas

[ember.js]: http://emberjs.com/ "emberJS"
[Mantri]: https://github.com/thanpolas/mantri "Mantri - Traditionaλ Dependency System"
[TodoMVC]: http://todomvc.com "Todo MVC"
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
</p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<script data-require="Todos.app" src="js/lib/mantri/mantri.js"></script>
<script data-require="Todos.app" src="js/lib/mantri/mantri.web.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion js/lib/mantri/mantri.js

This file was deleted.

Loading

0 comments on commit 8eb57e6

Please sign in to comment.