meteor: meteorite how to convert an in-use package that has been removed from atmosphere into a locally commitable package

StackOverflow https://stackoverflow.com/questions/22749232

  •  24-06-2023
  •  | 
  •  

質問

I am using a typeahead-js atmosphere package in my app but it was deleted from atmosphere and github by the owner (since it was deprecated). Now running meteor complains. I don't want to convert to the new typeahead stuff at the moment and would rather use the package as is.

I have the files still in my packages folder so I need to know how to convert the package to be a local package that is stored in git. This: How to install atmosphere packages without meteorite? explains how to make local changes by cloning the repo out of github but I believe the original package still needs to be on atmosphere.

役に立ちましたか?

解決 2

One thing I forgot was that packages installed from atmosphere are actually downloaded to your local /home/user/.meteorite/packages (at least in ubuntu.) Your project/packages folder just has symlinks to the locations for each installed package. With that in mind the steps are:

  1. Copy the files from the symlinked package folder
  2. Remove the symlink and add a folder with the symlinks name
  3. Paste the files into that folder
  4. temporarily remove the /packages folder from the project's root .gitignore file
  5. add the packages .build directory to the .gitignore e.g. packages/typeahead-js/.build
  6. use git to add the package you copied over restore /packages to the project's root .gitignore file
  7. modify the projects smart.json to include the local path to the package e.g:

'

{
  "packages": {
    "typeahead-js": {
      "path": "/packages/typeahead-js"
    }
  }
}

他のヒント

Meteorite lets you point to a local package. Just change the typeahead entry in your smart.json to look like this:

{
  "packages": {
    "typeahead-js": {
      "path": "../../path/to/local/typeahead-js"
    }
  }
}

More info here

Alternatively, github and atmosphere are free services. Depending on the license you could release your own fork.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top