Giter VIP home page Giter VIP logo

wim-mapper-styles's Introduction

WiM-Mapper-Styles

Styling for generator-wim generated mapping apps

Adding as managed bower package to map application made with generator-wim

Step 1.

Add wim-mapper-styles to the dependencies list in the project's bower.json:

"dependencies": {
	  "wim-mapper-styles": "USGS-WiM/WiM-Mapper-Styles"
  }

#####Step 2. Tell bower to get the package from github and place it in your bower_components folder

bower install

This will install all packages in your bower.json dependencies list. Alternatively you can specify

bower install wim-mapper-styles

to install only that package

#####Step 3. Add the stylesheet reference to the index.html:

 <link rel="stylesheet" href="bower_components/wim-mapper-styles/css/base.css">

Note: Be sure to place base.css after main.css, as it overwrite some classes from main.

#####Step 4(optional). Specify version in your dependencies list. Version is important for ensuring the app does not break. Below will specify v0.0.12:

"dependencies": {
	  "wim-mapper-styles": "USGS-WiM/WiM-Mapper-Styles#0.0.12"
  }

If no version is specified, bower will retrieve the latest release (which may not be the latest commit).

Other ways to specify version:

semver version: #1.2.3

version range: #1.2

#~1.2.3

#^1.2.3

#>=1.2.3 <2.0

Git tag: #[tag]

Git commit SHA: #[sha]

Git branch: #[branch]

Subversion revision: #[revision]


##Updating wim-mapper-styles

####This is the workflow for updating the wim-mapper-styles repo itself, which would apply changes to all applications importing it via bower, per the version specified.

After making style changes to the less files, less must be compiled, and version must be bumped up.

To compile base.css

Install required software

npm install -g less

1. Get project dependencies

npm install

2. Compile CSS

cd less
lessc base.less ../css/base.css

Building a release

Follow the steps below to create a new release version tag when significant styles changes have been made. Use feature or release when applying a breaking change.

Step 1.

Bump the version. Run only one of the below commands. This creates a local commit with the package.json, bower.json and tsd.json updated to the new version number

gulp patch     # makes v0.1.0 → v0.1.1
gulp feature   # makes v0.1.1 → v0.2.0
gulp release   # makes v0.2.1 → v1.0.0
Step 2.

Push the commit that contains the json files with bumped versions to your personal github repo

git push origin master
Step 3.

Create and merge pull request with version incremented via github.com

Step 4.

Get latest version from upstream (all this should be is a commit for the pull request in Step 3.)

git pull upstream master
Step 5.

Push the commit with the release tags up to the upstream (WiM) repository.

git push upstream master --tags

Written with StackEdit.

wim-mapper-styles's People

Contributors

marsmith avatar njestes avatar blakedraper avatar

Watchers

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.