Skip to content

Commit 2fe8cd4

Browse files
Merge pull request #1071 from pattern-lab/feature/monorepo-updates
Monorepo Updates: Yarn, Lerna Fixed, Node v12, etc
2 parents 74dd314 + 31677c3 commit 2fe8cd4

17 files changed

+15583
-72
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ packages/*/public
1212
!packages/core/test/patterns/testDependencyGraph.json
1313
lerna-debug.log
1414
packages/edition-node-gulp/dependencyGraph.json
15+
packages/uikit-workshop/dist

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.0.0
1+
12.9.0

.travis.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ addons:
44
chrome: stable
55

66
before_install:
7-
- phantomjs --version
7+
# version lifted from `.nvmrc`
8+
- nvm install
9+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.19.0
10+
- export PATH="$HOME/.yarn/bin:$PATH"
811

912
before_script:
10-
- npm install -g [email protected]
11-
- npm run setup
12-
- lerna add @pattern-lab/engine-mustache --scope=@pattern-lab/core
13-
- lerna add @pattern-lab/engine-handlebars --scope=@pattern-lab/core
14-
- lerna add @pattern-lab/engine-underscore --scope=@pattern-lab/core
15-
- lerna add @pattern-lab/engine-liquid --scope=@pattern-lab/core
16-
- lerna add @pattern-lab/engine-twig --scope=@pattern-lab/core
17-
- lerna add @pattern-lab/engine-react --scope=@pattern-lab/core
13+
- yarn run setup
14+
- npx lerna add @pattern-lab/engine-mustache --scope=@pattern-lab/core
15+
- npx lerna add @pattern-lab/engine-handlebars --scope=@pattern-lab/core
16+
- npx lerna add @pattern-lab/engine-underscore --scope=@pattern-lab/core
17+
- npx lerna add @pattern-lab/engine-liquid --scope=@pattern-lab/core
18+
- npx lerna add @pattern-lab/engine-twig --scope=@pattern-lab/core
19+
- npx lerna add @pattern-lab/engine-react --scope=@pattern-lab/core
1820

19-
script: travis_wait npm run test
21+
script: travis_wait yarn run test
2022

2123
branches:
2224
only:

lerna.json

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,38 @@
11
{
22
"lerna": "3.11.0",
3+
"version": "0.0.0",
34
"packages": [
45
"packages/*"
56
],
6-
"version": "independent",
77
"command": {
88
"init": {
99
"exact": true
1010
},
11-
"bootstrap": {
12-
"hoist": [
13-
"tap",
14-
"eslin*",
15-
"husky",
16-
"prettier",
17-
"pretty-quick",
18-
"babel-eslint"
19-
]
20-
},
2111
"publish": {
2212
"allowBranch": [
23-
"dev",
24-
"master"
25-
]
13+
"master",
14+
"dev"
15+
],
16+
"conventionalCommits": true,
17+
"gitReset": true,
18+
"includeMergedTags": true,
19+
"noCommitHooks": true,
20+
"verifyAccess": true
21+
},
22+
"changed": {
23+
"includeMergedTags": true
2624
}
2725
},
26+
"ignoreChanges": [
27+
"**/__fixtures__/**",
28+
"**/__tests__/**",
29+
"**/*.md",
30+
"**/__snapshots__/**"
31+
],
32+
"npmClient": "yarn",
2833
"npmClientArgs": [
34+
"--ignore-optional",
2935
"--registry=https://registry.npmjs.org/"
30-
]
36+
],
37+
"useWorkspaces": true
3138
}

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
2+
"workspaces": {
3+
"packages": [
4+
"packages/*"
5+
],
6+
"nohoist": [
7+
"@pattern-lab/engine-*",
8+
"**/@pattern-lab/engine-*",
9+
"**/@pattern-lab/uikit-workshop"
10+
]
11+
},
212
"dependencies": {
313
"@babel/plugin-proposal-decorators": "^7.4.4",
414
"@babel/plugin-syntax-jsx": "^7.2.0",
@@ -8,8 +18,8 @@
818
"eslint-config-prettier": "^6.0.0",
919
"eslint-plugin-import": "^2.18.2",
1020
"eslint-plugin-prettier": "^3.1.0",
11-
"lerna": "3.11.0",
1221
"prettier": "^1.14.3",
22+
"lerna": "3.17.0",
1323
"pretty-quick": "^1.11.1",
1424
"auto": "^7.8.0"
1525
},
@@ -19,9 +29,8 @@
1929
},
2030
"private": true,
2131
"scripts": {
22-
"postinstall": "npm run bootstrap",
23-
"bootstrap": "lerna bootstrap",
24-
"setup": "npm install && npm run build:uikit",
32+
"postinstall": "lerna run postbootstrap",
33+
"setup": "yarn",
2534
"build:uikit": "cd packages/uikit-workshop && npm run build",
2635
"precommit": "pretty-quick --staged",
2736
"lint:fix": "npm run lint -- --fix",

packages/core/src/lib/plugin_manager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ const plugin_manager = function() {
4141
foundPlugins.forEach(plugin => {
4242
logger.info(`Found plugin: ${plugin}`);
4343
logger.info(`Attempting to load and initialize plugin.`);
44-
const pluginModule = loadPlugin(
45-
path.join(process.cwd(), 'node_modules', plugin)
46-
);
44+
const pluginModule = loadPlugin(plugin);
4745
pluginModule(patternlab);
4846
});
4947
}

packages/engine-nunjucks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "The nunjucks PatternEngine for Pattern Lab / Node",
99
"dependencies": {
1010
"fs-extra": "7.0.0",
11-
"nunjucks": "3.1.3"
11+
"nunjucks": "^3.2.0"
1212
},
1313
"engines": {
1414
"node": ">=10.0"

packages/uikit-workshop/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ src/bower_components/*
33
.sass-cache/*
44
.DS_Store
55
/.eslintignore
6+
dist

packages/uikit-workshop/dist/index.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/uikit-workshop/dist/styleguide/css/pattern-lab.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)