Skip to content

Commit

Permalink
Merge pull request #231 from harunurhan/npm-link-docs
Browse files Browse the repository at this point in the history
add npm link documentation
  • Loading branch information
harunurhan committed Apr 6, 2017
2 parents e9cfbd8 + 22782b2 commit 264a15a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Expand Up @@ -86,6 +86,35 @@ npm start
gulp watch
```

### Working with npm link

```bash
# in ng2-json-editor

# do initial build into dist
npm run build

# copy package.json to dist
npm run copy

# go to dist folder and link it
cd dist
npm link

# remove node_modules inside dist which might cause weird errors
rm -rf node_modules/

# in another terminal session
# watch changes on src, so that all will be available on the linked module
gulp watch
```

```bash
# in another module

npm link ng2-json-editor
```

### Useful commands

```bash
Expand Down

0 comments on commit 264a15a

Please sign in to comment.