Skip to content

Commit

Permalink
Merge pull request #38 from accurat/yarn-workspaces
Browse files Browse the repository at this point in the history
Yarn workspaces
  • Loading branch information
marcofugaro authored Feb 21, 2018
2 parents 2e44c54 + 901960f commit 08e2025
Show file tree
Hide file tree
Showing 5 changed files with 6,563 additions and 1,401 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
node_modules/
build
.DS_Store
*.tgz
my-app*
test-app*
*.log
template/src/__tests__/__snapshots__/
packages/**/yarn.lock
test-app/*
7 changes: 3 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"lerna": "2.0.0-rc.4",
"lerna": "2.1.2",
"version": "independent",
"packages": [
"packages/*"
]
"npmClient": "yarn",
"useWorkspaces": true
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"private": true,
"scripts": {
"preinstall": "yarn run clean-yarn-cache",
"postinstall": "lerna bootstrap",
"clean-install": "lerna clean; rm -rf node_modules; yarn run clean-yarn-cache",
"clean-install": "rm -rf node_modules; rm -rf packages/*/node_modules; yarn run clean-yarn-cache",
"clean-yarn-cache": "rm -rf $(yarn cache dir)/*accurapp*",
"lint": "node node_modules/eslint/bin/eslint.js packages",
"publish": "tasks/release.sh",
"outdated": "for P in $(ls packages); do echo '\\n' === $P ===; cd \"packages/$P/\"; yarn outdated; cd ../..; done",
"create-test-app": "yarn run clean-yarn-cache; rm -rf test-app; node packages/create-accurapp/index.js test-app --testing"
},
"workspaces": [
"packages/*"
],
"devDependencies": {
"eslint-config-accurapp": "file:./packages/eslint-config-accurapp",
"lerna": "^2.0.0-rc.4"
"lerna": "^2.9.0"
}
}
3 changes: 1 addition & 2 deletions packages/accurapp-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
"semver": "^5.4.1",
"webpack": "^3.5.6",
"webpack-dev-server": "^2.7.1"
},
"devDependencies": {}
}
}
Loading

0 comments on commit 08e2025

Please sign in to comment.