forked from bahrie127/laravel10-stisla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2e5cb6
commit 784c6e0
Showing
94 changed files
with
17,620 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Since gmaps.js has been created to accomplish some goals about simplicity and cleanliness, the contributions must be guided by some rules, in order to keep gmaps.js simple to use and brief in code. | ||
|
||
## About requirements | ||
|
||
gmaps.js only requires JavaScript, so new features must be written in plain JavaScript and shouldn’t depend of external libraries like jQuery, Prototype, etc. | ||
|
||
## About examples and documentation | ||
|
||
Big changes, like support for new libraries or services, or custom features, need an example file (or files, depending of the magnitude of the contribution) and an entry in the documentation page. | ||
|
||
The example file must be included in the branch `gh-pages`, and be linked in the examples page. Example file in the `master` branch is optional. | ||
|
||
The documentation must explain in an simple way any argument passed in the method, and tell if it’s argument is optional or not. No examples are required here. | ||
|
||
## About new features | ||
|
||
The main goal of gmaps.js is to have full support to all features of native Google Maps API, so the primary goal of the contributions to cover the missing features. But other contributions are welcome. | ||
|
||
If the new feature has a functionality different from strictly work with maps (like animations, custom infoWindows or support for external services), it would be ideal to create an extension with this feature. | ||
|
||
## About coding standards | ||
|
||
* Default values must be defined. | ||
* Functions must end with semi-colon. | ||
* Function names in camel case. | ||
* Two space for indentation. | ||
* Use strict mode syntax. | ||
* Don’t use prototype object to extend gmaps.js (except with extensions). | ||
* Use apply for calling functions. | ||
|
||
_**Thanks for contributing with gmaps.js**_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
|
||
'use strict'; | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
meta : { | ||
banner : '/*!\n' + | ||
' * GMaps.js v<%= pkg.version %>\n' + | ||
' * <%= pkg.homepage %>\n' + | ||
' *\n' + | ||
' * Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author %>\n' + | ||
' * Released under the <%= pkg.license %> License.\n' + | ||
' */\n\n' | ||
}, | ||
|
||
concat: { | ||
options: { | ||
banner: '<%= meta.banner %>' | ||
}, | ||
dist: { | ||
src: [ | ||
'lib/gmaps.core.js', | ||
'lib/gmaps.controls.js', | ||
'lib/gmaps.markers.js', | ||
'lib/gmaps.overlays.js', | ||
'lib/gmaps.geometry.js', | ||
'lib/gmaps.layers.js', | ||
'lib/gmaps.routes.js', | ||
'lib/gmaps.geofences.js', | ||
'lib/gmaps.static.js', | ||
'lib/gmaps.map_types.js', | ||
'lib/gmaps.styles.js', | ||
'lib/gmaps.streetview.js', | ||
'lib/gmaps.events.js', | ||
'lib/gmaps.utils.js', | ||
'lib/gmaps.native_extensions.js' | ||
], | ||
dest: 'gmaps.js' | ||
} | ||
}, | ||
|
||
jasmine: { | ||
options: { | ||
template: 'test/template/jasmine-gmaps.html', | ||
specs: 'test/spec/*Spec.js', | ||
vendor: ['https://maps.google.com/maps/api/js?sensor=true'], | ||
styles: 'test/style.css' | ||
}, | ||
src: 'gmaps.js' | ||
}, | ||
|
||
watch : { | ||
files : '<%= concat.dist.src %>', | ||
tasks : 'default' | ||
}, | ||
|
||
jshint : { | ||
all : ['Gruntfile.js'] | ||
}, | ||
|
||
uglify : { | ||
options : { | ||
sourceMap : true | ||
}, | ||
all : { | ||
files: { | ||
'gmaps.min.js': [ 'gmaps.js' ] | ||
} | ||
} | ||
}, | ||
|
||
umd : { | ||
all : { | ||
src : 'gmaps.js', | ||
objectToExport : 'GMaps', | ||
globalAlias : 'GMaps', | ||
template : 'umd.hbs', | ||
deps: { | ||
amd: ['jquery', 'googlemaps!'] | ||
} | ||
} | ||
} | ||
|
||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-umd'); | ||
|
||
grunt.registerTask('test', ['jshint', 'jasmine']); | ||
grunt.registerTask('default', ['test', 'concat', 'umd', 'uglify']); | ||
}; |
Oops, something went wrong.