Skip to content

Commit 412003a

Browse files
author
Kamil Kisiela
committed
docs: npm scripts dev:start, dev:stop
1 parent 3d2136e commit 412003a

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/CONTRIBUTING.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -131,22 +131,15 @@ cd myProject
131131
ln -s ~/path_to_your_repos/angular-meteor/packages/
132132
```
133133

134-
The `angular-meteor-data` package uses a node module.
134+
The `angular-meteor-data` package uses the main file of `angular-meteor` node module.
135135

136-
All you have to do is to change it in `package.js`:
136+
To start using a local file you should run:
137137

138-
```javascript
139-
api.add_files([
140-
// '.npm/package/node_modules/angular-meteor/dist/angular-meteor.js'
141-
'angular-meteor.js'
142-
], 'client', {
143-
transpile: false
144-
});
138+
```bash
139+
npm run dev:start
145140
```
146141

147-
As you can see, there is no `angular-meteor.js` file.
148-
149-
You can build this file by running:
142+
To compile new file for `angular-meteor-data` package you can run:
150143

151144
```bash
152145
npm run build:dev
@@ -158,8 +151,18 @@ If you don’t want to manually recompile after every change you can use watch m
158151
npm run watch:dev
159152
```
160153

154+
Both above commands run `npm run dev:start` automaticaly, so you don't have to trigger it by yourself.
155+
161156
Now you can start using your own copy of the `angular-meteor` project from `myProject`.
162157

158+
**You should remember one thing**.
159+
160+
Since `angular-meteor-data` package uses main file of `angular-meteor` npm package and you've already changed it using above commands, you should somehow restore that state. It's easy, just use this command:
161+
162+
```bash
163+
npm run dev:stop
164+
```
165+
163166
## Running tests
164167

165168
In the command line

0 commit comments

Comments
 (0)