Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit 5f07fc9

Browse files
author
Robin Löffel
authored
Merge pull request #101 from unic/feature/upgrade-node
Feature/upgrade node
2 parents 976fdfd + 33df2c6 commit 5f07fc9

File tree

8 files changed

+17842
-19
lines changed

8 files changed

+17842
-19
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
22
dist
33
lerna-debug.log
4-
package-lock.json
4+
yarn-error.log

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10
1+
lts/fermium

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
language: node_js
22
node_js:
3-
- "8"
4-
- "10"
3+
- "14"
54
cache:
65
directories:
76
- node_modules
87
script:
98
- lerna bootstrap --loglevel=verbose
10-
- npm test
9+
- yarn test
1110
# https://github.com/travis-ci/travis-ci/issues/8836#issuecomment-356362524
1211
sudo: required
1312
before_install:
1413
- sudo apt-get update
1514
- sudo apt-get install graphicsmagick
15+
- npm i -g yarn

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
2+
13
# Estático Nou
24

35
Refactored https://github.com/unic/estatico with separate packages for every task. Mono-repo based on [Lerna](https://github.com/lerna/lerna).
@@ -61,8 +63,9 @@ The [estatico-boilerplate](packages/estatico-boilerplate) package is meant as a
6163
## How can I contribute?
6264

6365
- Clone this repository
64-
- Install lerna globally: `npm i -g lerna`
65-
- Bootstrap (installing dependencies and linking them): `lerna bootstrap`
66+
- Install yarn if you don't already have it: `npm i -g yarn`
67+
- Bootstrap (installing dependencies and linking them): `yarn bootstrap`,
68+
- To remove `node_modules` from each package: `yarn clean`
6669

6770
If bootstrapping fails, reducing the concurrency might help: `lerna bootstrap --concurrency=1`
6871

lerna.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
{
22
"lerna": "3.4.3",
3+
"npmClient": "yarn",
4+
"useWorkspaces": true,
35
"packages": [
46
"packages/*"
57
],
68
"version": "independent",
79
"useGitVersion": true,
810
"gitVersionPrefix": "v",
911
"command": {
10-
"bootstrap": {
11-
"hoist": true,
12-
"npmClientArgs": ["--no-package-lock"],
13-
"ci": false
14-
},
1512
"publish": {
1613
"allowBranch": "develop",
1714
"conventionalCommits": true,

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
{
2+
"private": true,
23
"devDependencies": {
34
"@commitlint/cli": "^7.2.1",
45
"@commitlint/config-conventional": "^7.1.2",
56
"eslint": "^4.19.1",
67
"eslint-config-airbnb-base": "^12.1.0",
78
"eslint-plugin-import": "^2.11.0",
89
"husky": "^1.1.2",
9-
"lerna": "^3.4.3",
10-
"npm-check": "^5.7.0"
10+
"lerna": "^3.4.3"
1111
},
1212
"scripts": {
13+
"bootstrap": "lerna bootstrap",
14+
"clean": "lerna clean",
1315
"lint": "eslint --fix \"{,**,**/**}*.js\"",
14-
"update": "npm-check -u && lerna exec -- npm-check -u",
15-
"test": "lerna exec -- npm test",
1616
"netlify": "lerna bootstrap && lerna exec --scope @unic/estatico-boilerplate -- npm run netlify",
17-
"release": "lerna publish"
17+
"release": "lerna publish",
18+
"test": "lerna exec -- yarn test",
19+
"update": "yarn outdated && lerna exec -- yarn outdated"
1820
},
1921
"husky": {
2022
"hooks": {
2123
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
2224
}
23-
}
25+
},
26+
"workspaces": [
27+
"packages/*"
28+
]
2429
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10
1+
lts/fermium

0 commit comments

Comments
 (0)