Browse Source
Merge pull request #53 from shogunpurple/lerna-npm-scripts
wrapping lerna commands in NPM scripts
gh-pages
Martin McKeaveney
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
6 deletions
-
package.json
-
readme.md
|
|
|
@ -4,5 +4,10 @@ |
|
|
|
"devDependencies": { |
|
|
|
"lerna": "^3.14.1" |
|
|
|
}, |
|
|
|
"dependencies": {} |
|
|
|
"dependencies": {}, |
|
|
|
"scripts": { |
|
|
|
"bootstrap": "lerna bootstrap", |
|
|
|
"build": "lerna run build", |
|
|
|
"init": "lerna run initialise" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -56,8 +56,6 @@ Install requires [node-gyp](https://github.com/nodejs/node-gyp), due to a depend |
|
|
|
|
|
|
|
*yarn -* `npm install -g yarn` |
|
|
|
|
|
|
|
*lerna -* `npm install -g lerna` |
|
|
|
|
|
|
|
*jest* - `npm install -g jest` |
|
|
|
|
|
|
|
### 2. Clone this repository |
|
|
|
@ -68,11 +66,11 @@ then `cd ` into your local copy... |
|
|
|
|
|
|
|
### 3. Install and Build |
|
|
|
|
|
|
|
`lerna bootstrap` will install all modules |
|
|
|
`yarn bootstrap` will install all modules |
|
|
|
|
|
|
|
`lerna run build` will build all packages |
|
|
|
`yarn build` will build all packages |
|
|
|
|
|
|
|
`lerna run initialise` will initialise your budibase (i.e. create local database) |
|
|
|
`yarn initialise` will initialise your budibase (i.e. create local database) |
|
|
|
|
|
|
|
### 4. Running |
|
|
|
|
|
|
|
|