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
0 parents
commit fea3ff5
Showing
67 changed files
with
3,055 additions
and
0 deletions.
There are no files selected for viewing
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,18 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = tabs | ||
indent_size = 4 | ||
|
||
[package.json] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 |
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,24 @@ | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# These files are text and should be normalized (convert crlf => lf) | ||
*.js text | ||
*.css text | ||
*.scss text | ||
*.html text | ||
*.php text | ||
*.inc text | ||
*.xml text | ||
*.txt text | ||
*.md text | ||
*.properties text | ||
*.rb text | ||
*.yml text | ||
|
||
|
||
# Images should be treated as binary | ||
# (binary is a macro for -text -diff) | ||
*.png binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.jar binary |
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,28 @@ | ||
nbproject/* | ||
.sass-cache/ | ||
.c9revisions/* | ||
.DS_Store | ||
jruby*.jar | ||
dist/* | ||
build/lib/vendors* | ||
build/lib/jruby-compiled | ||
_notes/ | ||
*.sublime-project | ||
*.sublime-workspace | ||
sftp.json | ||
|
||
# OS generated files # | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ethumbs.db | ||
Thumbs.db | ||
/.project | ||
jshint.out.xml | ||
csslint.out.xml | ||
*.orig | ||
*.tmp | ||
*.log | ||
node_modules/ |
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,14 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
|
||
env: | ||
global: | ||
- secure: "gwTdJcQxqg2Bxai+N9+T8tPJFnOexZRI1j2tVOHobvnMOaRVg9IU6Or+Q7Qz\nxIPtw7NlPFXhadwgRpEL0Y/I38mJlpXIAKmKAsUnEwyD4gdplbxlVXQZN54r\nGX7dzXpw94LYtRjquCeV5HpX8iMNnF4jgMbj94P1q8teWkyB7wM=" | ||
- POST_BUILD=true | ||
|
||
before_install: | ||
- npm install -g grunt-cli | ||
|
||
script: | ||
- npm test && ./build/post_build.sh |
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,12 @@ | ||
# Contributor guidelines - Web Experience Toolkit (WET) | ||
|
||
* [Developing for WET](https://github.com/wet-boew/wet-boew/wiki/Developing-for-WET) | ||
* [Contributor guidelines](https://github.com/wet-boew/wet-boew/wiki/Contributor-guidelines) | ||
|
||
------------------------------------------------------------------- | ||
|
||
|
||
# Lignes directrices pour les contributeurs - Boîte à outils de l’expérience Web (BOEW) | ||
|
||
* [Développer pour la BOEW](https://github.com/wet-boew/wet-boew/wiki/Développer-pour-la-boew) | ||
* [Lignes directrices pour les contributeurs](https://github.com/wet-boew/wet-boew/wiki/Lignes-directrices-pour-les-contributeurs) |
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,255 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
// Metadata. | ||
pkg: grunt.file.readJSON('package.json'), | ||
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + | ||
' License: <%= pkg.license %> */\n', | ||
// Task configuration. | ||
concat: { | ||
options: { | ||
banner: '/* Web Experience Toolkit (WET) / Boîte à outils de l\'expérience Web (BOEW) wet-boew.github.io/wet-boew/License-eng.txt / wet-boew.github.io/wet-boew/Licence-fra.txt */\n', | ||
stripBanners: true | ||
}, | ||
vapour: { | ||
src: [ 'lib/modernizr/modernizr.js','src/core/vapour/vapour.js'], | ||
dest: 'dist/js/vapour.js' | ||
}, | ||
wetboew: { | ||
src: [ 'src/plugins/**/*.js'], | ||
dest: 'dist/js/wet-boew.js' | ||
} | ||
}, | ||
sass: { | ||
base: { | ||
'dist/css/base.css': 'src/sass/base.scss' | ||
}, | ||
bare: { | ||
'demos/vapour/bare/css/theme.css': 'themes/bare/css/theme.scss' | ||
}, | ||
demo: { | ||
'demos/vapour/demo/css/theme.css': 'themes/demo/css/theme.scss' | ||
} | ||
}, | ||
uglify: { | ||
selectivizr : { | ||
options: { | ||
banner : '/*!* selectivizr v1.0.2 - (c) Keith Clark, freely distributable under the terms of the MIT license. * selectivizr.com */\n' | ||
}, | ||
files : { | ||
'dist/js/vendor/selectivizr.min.js': ['lib/selectivizr/selectivizr.js'] | ||
} | ||
}, | ||
jqm: { | ||
options: { | ||
banner : '/*! jQuery Mobile Git HEAD hash: 74b4bec049fd93e4fe40205e6157de16eb64eb46 <> Date: Wed Apr 10 2013 21:57:23 UTC jquerymobile.com | jquery.org/license */\n' | ||
}, | ||
files: { | ||
'dist/js/vendor/jquery-mobile-1.3.1.min.js': ['lib/jquery.mobile/jquery.mobile-1.3.1.js'] | ||
} | ||
}, | ||
polyfills: { | ||
options: { | ||
preserveComments : 'some' | ||
}, | ||
files: { | ||
'dist/js/polyfills/datalist.min.js': ['src/core/vapour/polyfills/datalist.js'], | ||
'dist/js/polyfills/respond.min.js': ['src/core/vapour/polyfills/respond.js'], | ||
'dist/js/polyfills/excanvas.min.js': ['src/core/vapour/polyfills/excanvas.js'], | ||
'dist/js/polyfills/datepicker.min.js': ['src/core/vapour/polyfills/datepicker.js'], | ||
'dist/js/polyfills/detailssummary.min.js': ['src/core/vapour/polyfills/detailssummary.js'], | ||
'dist/js/polyfills/localstorage.min.js': ['src/core/vapour/polyfills/localstorage.js'], | ||
'dist/js/polyfills/meter.min.js': ['src/core/vapour/polyfills/meter.js'], | ||
'dist/js/polyfills/progress.min.js': ['src/core/vapour/polyfills/progress.js'], | ||
'dist/js/polyfills/sessionstorage.min.js': ['src/core/vapour/polyfills/sessionstorage.js'], | ||
'dist/js/polyfills/slider.min.js': ['src/core/vapour/polyfills/slider.js'] | ||
} | ||
}, | ||
vapour: { | ||
options: { | ||
banner: '/* Web Experience Toolkit (WET) / Boîte à outils de l\'expérience Web (BOEW) wet-boew.github.io/wet-boew/License-eng.txt / wet-boew.github.io/wet-boew/Licence-fra.txt */\n' | ||
}, | ||
files: { | ||
'dist/js/vapour.min.js': ['lib/modernizr/modernizr.js', 'src/core/vapour/vapour.js'] | ||
} | ||
}, | ||
wetboew: { | ||
options: { | ||
banner: '/* Web Experience Toolkit (WET) / Boîte à outils de l\'expérience Web (BOEW) wet-boew.github.io/wet-boew/License-eng.txt / wet-boew.github.io/wet-boew/Licence-fra.txt */' | ||
}, | ||
files: { | ||
'dist/js/wet-boew.min.js': ['dist/js/wet-boew.js'] | ||
} | ||
} | ||
}, | ||
coffee: { | ||
compileBare: { | ||
options: { | ||
bare: true | ||
}, | ||
files: [ | ||
{ | ||
'dist/core/vapour/vapour.js': 'src/core/vapour/vapour.coffee' | ||
}, // 1:1 compile | ||
{ | ||
'dist/core/vapour/template.js': 'src/core/vapour/template.coffee' | ||
}, | ||
{ | ||
'dist/plugins/zebra/wet-boew.zebra.js': 'src/plugins/zebra/wet-boew-plugin-zebra.coffee' | ||
}, | ||
{ | ||
'dist/plugins/equalize/wet-boew.equalize.js': 'src/plugins/equalize/wet-boew-plugin-equalize.coffee' | ||
}, | ||
{ | ||
'dist/plugins/dimensions/wet-boew.dimensions.js': 'src/plugins/dimensions/wet-boew-plugin-dimensions.coffee' | ||
} | ||
] | ||
} | ||
}, | ||
jade: { | ||
html: { | ||
options: { | ||
pretty: true | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: 'themes', | ||
dest: 'themes', | ||
src: '**/*.jade', | ||
ext: '.html' | ||
}] | ||
} | ||
}, | ||
copy: { | ||
main: { | ||
files: [ | ||
{expand: true, cwd: 'dist/', src: ['**'], dest: 'dist/bare/'}, | ||
{expand: true, cwd: 'themes/bare/', src: ['*.css'], dest: 'dist/bare/css/'}, | ||
{expand: true, cwd: 'themes/bare/', src: ['*.html'], dest: 'dist/bare/'}, | ||
{expand: true, cwd: 'src/sass/images/icons/', src: ['**'], dest: 'dist/bare/css/images/icons'}, | ||
{expand: true, cwd: 'dist/', src: ['**'], dest: 'dist/demo/'}, | ||
{expand: true, cwd: 'themes/demo/', src: ['*.html'], dest: 'dist/demo/'}, | ||
{expand: true, cwd: 'themes/demo/css/', src: ['*.css'], dest: 'dist/demo/css/'}, | ||
{expand: true, cwd: 'src/sass/images/icons/', src: ['**'], dest: 'dist/demo/css/images/icons'} | ||
] | ||
}, | ||
jquery: { | ||
files: [{ | ||
cwd: 'lib/jquery', | ||
src: '*.js', | ||
dest: 'dist/js/vendor', | ||
expand: true | ||
}] | ||
} | ||
}, | ||
|
||
clean: [ | ||
'dist' | ||
], | ||
watch: { | ||
gruntfile: { | ||
files: '<%= jshint.gruntfile.src %>', | ||
tasks: ['jshint:gruntfile'] | ||
}, | ||
lib_test: { | ||
files: '<%= jshint.lib_test.src %>', | ||
tasks: ['jshint:lib_test', 'qunit'] | ||
}, | ||
source: { | ||
files: '<%= jshint.lib_test.src %>', | ||
tasks: ['build'], | ||
options: { | ||
interval: 5007, | ||
livereload: true | ||
} | ||
} | ||
}, | ||
jshint: { | ||
options: { | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
latedef: true, | ||
newcap: true, | ||
noarg: true, | ||
sub: true, | ||
undef: true, | ||
unused: true, | ||
boss: true, | ||
eqnull: true, | ||
browser: true, | ||
globals: { | ||
jQuery: true | ||
} | ||
}, | ||
gruntfile: { | ||
src: 'Gruntfile.js' | ||
}, | ||
lib_test: { | ||
src: [ | ||
'src/**/*.js', | ||
'!src/**/*min.js', | ||
'!src/js/polyfills/datalist.js', | ||
'!src/js/polyfills/html5shiv.js', | ||
'!src/js/dependencies/bookmark.js', | ||
'!src/js/dependencies/browsertweaks.js', | ||
'!src/js/dependencies/colorbox.js', | ||
'!src/js/dependencies/easytabs.js', | ||
'!src/js/dependencies/hashchange.js', | ||
'!src/js/dependencies/hoverintent.js', | ||
'!src/js/dependencies/json.js', | ||
'!src/js/dependencies/matchMedia.js', | ||
'!src/js/dependencies/metadata.js', | ||
'!src/js/dependencies/outside.js', | ||
'!src/js/dependencies/pie.js', | ||
'!src/js/dependencies/prettify.js', | ||
'!src/js/dependencies/prettify/**/*.js', | ||
'!src/js/dependencies/raphael.js', | ||
'!src/js/dependencies/resize.js', | ||
'!src/js/dependencies/validate.js', | ||
'!src/js/dependencies/validateAdditional.js', | ||
'!src/js/dependencies/xregexp.js', | ||
'!src/js/dependencies/proj4js.js', | ||
'!src/js/dependencies/openlayers.js', | ||
'!src/core/vapour/polyfills/excanvas.js', | ||
'!src/core/vapour/polyfills/sessionstorage.js', | ||
'!src/core/vapour/polyfills/slider.js', | ||
'!src/core/vapour/polyfills/localstorage.js', | ||
'!src/core/vapour/polyfills/detailssummary.js', | ||
'test/**/*.js' | ||
] | ||
} | ||
}, | ||
connect: { | ||
server: { | ||
options: { | ||
port: 8000, | ||
base: '.' | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jade'); | ||
grunt.loadNpmTasks('grunt-contrib-nodeunit'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-coffee'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-sass'); | ||
|
||
// Default task. | ||
grunt.registerTask('build', ['coffee','jade','sass','concat','uglify', 'copy']); | ||
grunt.registerTask('test', ['jshint']); | ||
grunt.registerTask('default', ['clean', 'build', 'test']); | ||
grunt.registerTask('server', ['connect','watch:source']); | ||
}; |
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,39 @@ | ||
Boîte à outils de l'expérience Web (BOEW) - Conditions régissant l'utilisation | ||
|
||
Sauf indication contraire, le code source de la boîte à outils de l'expérience Web (BOEW) | ||
est protégé par le droit d'auteur de la Couronne du gouvernement du Canada et distribué | ||
sous la licence MIT. | ||
|
||
Le mot-symbole « Canada » et les éléments graphiques connexes liés à cette distribution sont | ||
protégés en vertu des lois portant sur les marques de commerce et le droit d'auteur. | ||
|
||
Aucune autorisation n'est accordée pour leur utilisation à l'extérieur des paramètres du | ||
programme de coordination de l'image de marque du gouvernement du Canada. Pour obtenir | ||
davantage de renseignements à ce sujet, veuillez consulter | ||
http://www.tbs-sct.gc.ca/fip-pcim/index-fra.asp | ||
|
||
La propriété du droit d'auteur de tout logiciel tiers distribué avec la boîte à outils de | ||
l'expérience Web (BOEW) est conservée par les détenteurs du droit d'auteur mentionnés | ||
dans ces fichiers. Nous demandons aux utilisateurs de lire les licences des tiers indiqués | ||
à titre de référence dans ces logiciels. | ||
|
||
|
||
Licence MIT | ||
|
||
(c) Droit d'auteur – Gouvernement du Canada, 2013 | ||
|
||
La présente autorise toute personne d'obtenir gratuitement une copie du présent logiciel et des | ||
documents connexes (le « logiciel »), de traiter le logiciel sans restriction, y compris, mais sans | ||
s'y limiter, les droits d'utiliser, de copier, de modifier, de fusionner, de publier, de distribuer, | ||
d'accorder une sous licence et de vendre des copies dudit logiciel, et de permettre aux personnes | ||
auxquelles le logiciel est fourni de le faire, selon les conditions suivantes : | ||
|
||
L'avis de droit d'auteur ci dessus et le présent avis de permission seront inclus dans toutes les copies | ||
et les sections importantes du logiciel. | ||
|
||
LE LOGICIEL EST FOURNI « TEL QUEL », SANS AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, Y COMPRIS, MAIS SANS | ||
S'Y LIMITER, LA GARANTIE DE QUALITÉ MARCHANDE, L'ADAPTATION À UN USAGE PARTICULIER ET L'ABSENCE DE | ||
CONTREFAÇON. EN AUCUN CAS LES AUTEURS OU LES DÉTENTEURS DU DROIT D'AUTEUR NE SERONT TENUS RESPONSABLES | ||
DE TOUTE DEMANDE, DOMMAGE OU BRIS DE CONTRAT, DÉLIT CIVIL OU TOUT AUTRE MANQUEMENT LIÉ AU LOGICIEL, | ||
À SON UTILISATION OU À D'AUTRES ÉCHANGES LIÉS AU LOGICIEL. | ||
|
Oops, something went wrong.