Skip to content

Commit 9dd97bc

Browse files
start script to init node_modules, start express. Added info to readme.
1 parent 39d3c1b commit 9dd97bc

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ As a side project I started to write a tmLanguage parser in javascript to be abl
4242
written in [coffeescript](http://coffeescript.org/) using [angular.js](angularjs.org)
4343

4444

45+
## Install
46+
47+
```bash
48+
git clone git@github.com:aziz/tmTheme-Editor.git
49+
cd tmTheme-editor
50+
./start.sh
51+
```
52+
53+
The `start` script will:
54+
55+
- Run `npm install` if *node_modules* is missing;
56+
- Bring up the express server at [http://localhost:9999](http://localhost:9999)
57+
4558
## Copyright
4659
**TMThemeEditor**
4760
© Copyright 2012-2013 Allen Bargi

start.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
if [ ! -d "node_modules" ]; then
4+
npm install
5+
fi
6+
7+
if hash coffee 2>/dev/null; then
8+
coffee app.coffee
9+
else
10+
./node_modules/coffee-script/bin/coffee app.coffee
11+
fi

0 commit comments

Comments
 (0)