mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
Avoiding global npm installs
This commit is contained in:
parent
78b5478d8d
commit
0c330c194b
@ -15,7 +15,7 @@ before_script:
|
||||
- sudo service mysql stop
|
||||
- sudo service postgresql stop
|
||||
- docker-compose up -d
|
||||
- gulp createTravisOrmConfig
|
||||
- npm run setup:config
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
11
DEVELOPER.md
11
DEVELOPER.md
@ -61,17 +61,20 @@ During installation you may have some problems with some dependencies.
|
||||
For example to proper install oracle driver you need to follow all instructions from
|
||||
[node-oracle documentation](https://github.com/oracle/node-oracledb).
|
||||
|
||||
Also install these packages globally:
|
||||
## ORM config
|
||||
|
||||
* `npm install -g gulp` (you might need to prefix this command with `sudo`)
|
||||
* `npm install -g typescript` (you might need to prefix this command with `sudo`)
|
||||
To create an initial `ormconfig.json` file, run the following command:
|
||||
|
||||
```shell
|
||||
npm run setup:config
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To build a distribution package of TypeORM run:
|
||||
|
||||
```shell
|
||||
gulp package
|
||||
npm run package
|
||||
```
|
||||
|
||||
This command will generate you a distribution package in the `build/package` directory.
|
||||
|
||||
@ -42,7 +42,7 @@ export class Gulpfile {
|
||||
@Task()
|
||||
compile() {
|
||||
return gulp.src("package.json", { read: false })
|
||||
.pipe(shell(["tsc"]));
|
||||
.pipe(shell(["npm run compile"]));
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@ -83,7 +83,10 @@
|
||||
"yargs": "^8.0.2"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node_modules/.bin/gulp tests"
|
||||
"test": "gulp tests",
|
||||
"compile": "tsc",
|
||||
"setup:config": "gulp createTravisOrmConfig",
|
||||
"package": "gulp package"
|
||||
},
|
||||
"bin": {
|
||||
"typeorm": "./cli.js"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user