From 30092c25f32db042ad14794cf4a146db2eecc8a7 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 21 Aug 2015 14:47:06 +0200 Subject: [PATCH] =?UTF-8?q?Base=20documentation,=20s=C3=A9paration=20code?= =?UTF-8?q?=20DOM=20dans=20fichier=20distinct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gruntfile.js | 15 +++++--- README.md | 36 ++++++++++++++---- index.html | 14 +++++-- js/app.js | 104 +++++++++++++++------------------------------------ js/dom.js | 53 ++++++++++++++++++++++++++ package.json | 6 +-- 6 files changed, 134 insertions(+), 94 deletions(-) create mode 100644 js/dom.js diff --git a/Gruntfile.js b/Gruntfile.js index ff225f2..bad61f1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -7,15 +7,16 @@ module.exports = function(grunt) { var NW_VERSION = '0.12.2'; var BUILD_DIR = 'build'; var BUILD_TARGETS = { - linux_ia32: true, + linux_ia32: false, linux_x64: true, - win: true, + win: false, osx: false }; var PKG = grunt.file.readJSON('package.json'); var PKG_OVERWRITE = { window: { - toolbar: false + toolbar: false, + kiosk: true } }; @@ -51,6 +52,8 @@ module.exports = function(grunt) { src: [ 'index.html', 'package.json', + 'default-profile.json', + 'LICENCE', 'css/**', 'js/**', 'img/**' @@ -101,12 +104,12 @@ module.exports = function(grunt) { }); - grunt.registerTask('kaki:run', ['download', 'run']); + grunt.registerTask('papaye:run', ['download', 'run']); grunt.registerTask( - 'kaki:build', + 'papaye:build', ['download', 'build', 'copy:build'] ); - grunt.registerTask('default', ['kaki:run']); + grunt.registerTask('default', ['papaye:run']); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-copy'); diff --git a/README.md b/README.md index 8102956..dac0a53 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,31 @@ -# Kaki +# Papaye -Application loader +Lanceur d'application pour Linux -## Getting started +## Démarrer avec les sources + +### Dépendences de développement + +- [NodeJS](https://nodejs.org/) - Dernière version stable, testé sur la 0.12.* +- [NPM](https://www.npmjs.com/) - Normalement automatiquement installé avec NodeJS. + +### Initialisation du projet ``` git clone -cd kaki +cd papaye git checkout develop npm install npm start ``` -### Passing options in development +## Options + +``` +--profile= Chemin vers le fichier de profil à charger dans l'application. +``` + +### Passer des options en développement ``` npm start -- [options...] @@ -23,6 +36,15 @@ Exemple: npm start -- --profile=my-profile.json ``` -## How to contribute +## Comment construire l'application depuis les sources -This project uses [Git Flow](http://nvie.com/posts/a-successful-git-branching-model/). +``` +npm run build +``` + +Un dossier `papaye---` sera créé dans le répertoire `./build`. Celui ci contient tous les fichiers nécessaires à l'application. + + +## Comment contribuer + +Ce projet utilise la méthodologie [Git Flow](http://nvie.com/posts/a-successful-git-branching-model/). diff --git a/index.html b/index.html index a867ea8..71ff220 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,14 @@ - Kaki Launcher + Lanceur - Papaye -
+ +
+ + + + + +