dry-dry icon indicating copy to clipboard operation
dry-dry copied to clipboard

Tutorial

Open cambiph opened this issue 5 years ago • 0 comments

Hey,

Are there any plans to make a tutorial on how to embed this in a basic project because I am having trouble understanding how to implement it?

I have project A which has a package.json and dependencies that are currently used in project B. Both project A and B have 99% the same NPM run scripts. I created a package-dry.json with all the necessary npm run script in project A. In project B, I added the a package-dry.json without the npm run scripts but all the other necessary info. Running npm install does not result in a package.json with all the npm run scripts from project A.

Project A (package-dry.json):

{
  "main": "index.js",
  "license": "MIT",
  "config": {
    "script-shell": "bash"
  },
  "scripts": {
    "util": "npm run install:sass && npm run install:bamboo",
    "install:bamboo": "node ./bamboo/bamboo-spec.js",
    "install:sass": "npm run install:sass:webcomponent && npm run install:sass:demo"
  }
}

Project B (package-dry.json):

{
    "name": "vl-ui-tooltip",
    "version": "3.0.3",
    "author": "DIDM",
    "license": "MIT",
    "main": "./src/index.js",
    "exports": {
      "require": "./index.js",
      "import": "./src/index.js",
      "node": "./index.js",
      "default": "./index.js"
    },
    "homepage": "https://github.com/milieuinfo/webcomponent-vl-ui-tooltip#readme",
    "bugs": {
      "url": "https://github.com/milieuinfo/webcomponent-vl-ui-tooltip/issues"
    },
    "dry": {
      "extends": "node_modules/vl-ui-util/package-dry.json"
    },
    "dependencies": {
      "dry-dry": "^0.4.0",
      "tooltip.js": "^1.3.3",
      "vl-ui-core": "^5.2.0"
    },
    "peerDependencies": {
      "tooltip.js": "^1.3.3",
      "vl-ui-core": "^5.2.0"
    },
    "devDependencies": {
      "@govflanders/vl-ui-tooltip": "^3.9.1",
      "vl-ui-button": "^4.0.0",
      "vl-ui-util": "github:milieuinfo/webcomponent-vl-ui-util#UIG-668" aka project A
    }
  }

Thanks in advance. Regards

cambiph avatar Apr 09 '20 12:04 cambiph