Skip to content

Commit

Permalink
Fix node v0.10 not support child_process.execSync
Browse files Browse the repository at this point in the history
  • Loading branch information
qiu8310 committed May 15, 2015
1 parent 018a3d2 commit 883cf9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
22 changes: 9 additions & 13 deletions README.md
Expand Up @@ -67,19 +67,9 @@ You can using below 5 methods to compile your code:

* CLI

1. Global install `elegant.def`

```bash
npm install -g elegant.def
```

2. Compile your file

```bash
def-compile path/to/source/file
```


1. Global install `elegant.def`: `npm install -g elegant.def`
2. Compile your file: `def-compile path/to/source/file`

* Node script

```js
Expand Down Expand Up @@ -113,6 +103,12 @@ when your code is compiled, you can use a smaller elegant.def script.
* Small version in browser: `elegant.def/browser/simple.js`


## Doc generate

1. Global install this package: `npm install -g elegant.def`
2. Using `def-doc` cli command: `def-doc path/to/*.js`


## Config items in heredoc

ITEM | DESCRIPTION
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Expand Up @@ -66,11 +66,11 @@ gulp.task('example', function() {
fs.writeFileSync('./examples/' + key + '.out.js',
compile(fs.readFileSync('./examples/' + key + '.js').toString()));

cp.execSync('node ./bin/def-doc.js ./examples/' + key + '.js -o "./examples/' + key + '.md"');
cp.exec('node ./bin/def-doc.js ./examples/' + key + '.js -o "./examples/' + key + '.md"');
});
});

gulp.task('test', ['example', 'lint', 'istanbul']);
gulp.task('test', ['lint', 'istanbul']);

gulp.task('release', function() {
var make = function(file) {
Expand Down

0 comments on commit 883cf9a

Please sign in to comment.