Git Product home page Git Product logo

bower-template's Introduction

My Library Template

Build Status

Usage

Basic preparation

Clone this repo, rename it, remove git files. Install gulp and bower, and coffeegulp to easily run gulp tasks with gulp.coffee.

cd ~/my_projects
git clone [email protected]:s0ber/bower-template.git my_awesome_lib
cd my_awesome_lib
rm -rf .git

npm install -g gulp
npm install -g bower
npm install -g coffeegulp
npm install
bower install

Edit package.json and bower.json with required data.

Testing

Run specs in development mode (all file changes will be watched).

coffeegulp karma:dev

You can also sync your TravisCI account and turn on builds for your repo.

Releasing

If you want to release a new version of your plugin, at first, edit associated package.json and bower.json files, then perform the following task.

coffeegulp release

It will at first run your specs. If they'll pass, concatenated compiled version of your source files will be created, and also minified one in build/ folder.

Modula

Modula is a very simple 15-lines packages manager. It helps you to get your code organised. It doesn't worth to make a library of it, because it's so straightforward. So, it's just included by default.

modula.exports('package_name', ReferenceToPackage)
modula.exports('package_name/file', ReferenceToPackageFile)

MyPackage = modula.require 'package_name'
MyPackageSourceFile = modula.require 'package_name/file'

Source files

You should list your source files in gulpfile.coffee, gulp will use them for building compiled version, and karma will use them for running specs.

License

Don't forget to edit LICENSE file before the release.

bower-template's People

Contributors

s0ber avatar

Stargazers

Sasha Koss avatar

Watchers

 avatar James Cloos avatar  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.