Skip to content

Commit

Permalink
manage all the node.js modules with yarn workplaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Neves authored and lneves12 committed Sep 18, 2018
1 parent 8e0cf7c commit ef5aaeb
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -53,11 +53,12 @@ web/rhn-web-*.tar.gz
sqlnet.log
backend/reports
backend/satellite_tools/spacewalk-repo-syncc
node_modules
yarn-error.log

# Intellij IDEA
.idea/
*.iml
java/out
out/
java/buildconf/checkstyle.cache.src

3 changes: 3 additions & 0 deletions .yarnrc
@@ -0,0 +1,3 @@
--install.cwd susemanager-frontend
--add.cwd susemanager-frontend/susemanager-nodejs-sdk-devel
--remove.cwd susemanager-frontend/susemanager-nodejs-sdk-devel
7 changes: 7 additions & 0 deletions susemanager-frontend/package.json
@@ -0,0 +1,7 @@
{
"private": true,
"workspaces": {
"packages": ["susemanager-nodejs-sdk-devel", "../web/html/src"],
"nohoist": ["**"]
}
}
@@ -0,0 +1 @@
susemanager-nodejs-modules.tar.gz
31 changes: 31 additions & 0 deletions susemanager-frontend/susemanager-nodejs-sdk-devel/package.json
@@ -0,0 +1,31 @@
{
"name": "susemanager-nodejs-sdk-devel",
"version": "1.0.0",
"description": "Node.js software needed by SUSE Manager at build time.",
"license": "UNLICENSED",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"clean-webpack-plugin": "^0.1.19",
"flow-bin": "^0.73.0",
"license-checker-webpack-plugin": "^0.0.4",
"shelljs": "^0.8.2",
"webpack": "^4.16.5",
"webpack-cli": "^3.1.0"
},
"dependencies": {
"prop-types": "^15.6.1",
"react": "^0.14.7",
"react-dom": "^0.14.7",
"react-select": "^2.0.0-beta.6"
},
"scripts": {
"postinstall": "rm -f susemanager-nodejs-modules.tar.gz && (tar czf susemanager-nodejs-modules.tar.gz node_modules/)"
}
}
29 changes: 2 additions & 27 deletions web/html/src/package.json
@@ -1,33 +1,8 @@
{
"name": "susemanager-nodejs-sdk-devel",
"name": "spacewalk-web",
"version": "1.0.0",
"description": "Node.js software needed by SUSE Manager at build time.",
"devDependencies": {
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babelify": "7.3.0",
"browserify": "13.0.0",
"event-stream": "3.3.2",
"flow-bin": "^0.73.0",
"glob": "7.0.0",
"gulp": "3.9.1",
"gulp-concat": "2.6.0",
"gulp-if": "^2.0.2",
"gulp-rename": "1.2.2",
"gulp-sourcemaps": "1.6.0",
"gulp-streamify": "^1.0.2",
"gulp-uglify": "1.5.2",
"gulp-util": "3.0.7",
"inherits": "2.0.1",
"lru-cache": "4.0.0",
"sigmund": "1.0.1",
"vinyl-buffer": "1.0.0",
"vinyl-source-stream": "1.1.0",
"watchify": "^3.11.0"
},
"license": "UNLICENSED",
"dependencies": {
"prop-types": "^15.6.1",
"react-select": "^2.0.0-beta.6"
Expand Down

0 comments on commit ef5aaeb

Please sign in to comment.