Giter Club home page Giter Club logo

sopa's Introduction

#Sopa

Sopa is a local package manager. You can imagine it was a local version of bower.

##Getting Start

###Install

$ npm install sopa -g

###Pull package To use sopa, the first thing you need to do is setting the components dir use set-dir:

$ sopa set-dir ~/sopa_components

The dir is a place where store all your packages pull from web.

Now I pull the jQuery from cdnjs (https://cdnjs.com/), for example.

Firstly I search jQuery on cdnjs and copy the static file url. Here I found is a version of 2.1.3 js file - //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js

So I need to pull this file:

$ sopa pull [email protected]@js //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js

jquery is the package name you defined and 2.1.3 is the version of the package. Note that you are required a file type ( js or *css ).

###Install package Now I need to install jQuery which I'd pulled from cdnjs at current folder.

$ sopa install [email protected]@js javascripts

The last command is the folder you wanna install the static file into.

###List Sometimes you may wanna list what packages you had pull or what version you'd pull. Sopa has a command help you list it:

$ sopa ls
vue
jquery

If you wanna show what jQuery version you'd pulled, you can:

$ sopa ls jquery
1.11.2
2.1.3

##Why The reason why I create Sopa is my college always limit my data whithin 9 GB per month. Everytime I bower install or npm install cost much data. So I made Sopa.

##Sopa It named Sopa, in memory of my idol Aaron Swartz, who againsted SOPA.

sopa's People

Contributors

djyde avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.