Skip to content

Commit

Permalink
v1.0.0: config.version is read from package.json + updated project me…
Browse files Browse the repository at this point in the history
…tadata 🚀
  • Loading branch information
adrienjoly committed Jul 23, 2017
1 parent 725aa8e commit c3a36f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion whydJS/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var params = process.appParams = {
feedbackEmail: process.env.WHYD_CONTACT_EMAIL.substr(), // mandatory

// rendering preferences
version: 25, // playemjs fix for deezer
version: require('./package.json').version,
startTime: new Date(),
// landingPage: "public/html/landingPhoto.html", //"public/html/landingPageLaunch.html", //cf logging.js
nbPostsPerNewsfeedPage: 20,
Expand Down
2 changes: 2 additions & 0 deletions whydJS/app/models/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
// cf: https://trello.com/c/wwQO0Xi3/458-api-envoyer-le-numero-de-version-actuel-dernier-en-date-afin-de-notifier-d-une-mise-a-jour

var fs = require('fs');
var config = require("../models/config.js");

var VERSIONS_CACHE = {
openwhydServerVersion: config.version,
decodeVer: undefined,
iphoneAppVer: undefined, // LATEST IPHONE APP UPDATE NUMBER
};
Expand Down
11 changes: 5 additions & 6 deletions whydJS/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "openwhyd",
"version": "0.1.0",
"description": "(formerly whyd) A web app for collecting, playing and sharing music from various streaming platforms.",
"homepage": "http://openwhyd.org",
"version": "1.0.0",
"description": "A web app for collecting, playing and sharing music from various streaming platforms: Youtube, Soundcloud, Bandcamp, Vimeo, Deezer...",
"homepage": "https://openwhyd.org",
"license": "MIT",
"main": "app.js",
"repository": {
"type": "git",
"url": "https://github.com/whyd/whyd.git"
"url": "https://github.com/openwhyd/openwhyd.git"
},
"scripts": {
"postinstall": "npm run -s donate",
Expand Down Expand Up @@ -36,9 +36,8 @@
"directories": {
"app": "./app",
"config": "./config",
"dataTools": "./dataTools",
"public": "./public",
"tests": "./tests",
"tests": "./test",
"get": "./node_modules/get",
"hypem": "./node_modules/hypem",
"my": "./node_modules/my"
Expand Down

0 comments on commit c3a36f5

Please sign in to comment.