Node.js based forum software built for the modern web
remove package.default.json
Barış Soner Uşaklıeb47a81c46b9
diff --git a/.travis.yml b/.travis.ymlindex 9a8a0fd66a..10f03d19ef 100644--- a/.travis.yml+++ b/.travis.yml@@ -8,7 +8,7 @@ before_install:- "sudo service mongod start"before_script:- sleep 15 # wait for mongodb to be ready- - cp package.default.json package.json+ - cp install/package.json package.json- npm install- sh -c "if [ '$DB' = 'mongodb' ]; then node app --setup=\"{\\\"url\\\":\\\"http://127.0.0.1:4567\\\",\\\"secret\\\":\\\"abcdef\\\",\\\"database\\\":\\\"mongo\\\",\\\"mongo:host\\\":\\\"127.0.0.1\\\",\\\"mongo:port\\\":27017,\\\"mongo:username\\\":\\\"\\\",\\\"mongo:password\\\":\\\"\\\",\\\"mongo:database\\\":0,\\\"redis:host\\\":\\\"127.0.0.1\\\",\\\"redis:port\\\":6379,\\\"redis:password\\\":\\\"\\\",\\\"redis:database\\\":0,\\\"admin:username\\\":\\\"admin\\\",\\\"admin:email\\\":\\\"[email protected]\\\",\\\"admin:password\\\":\\\"abcdef\\\",\\\"admin:password:confirm\\\":\\\"abcdef\\\"}\" --ci=\"{\\\"host\\\":\\\"127.0.0.1\\\",\\\"port\\\":27017,\\\"database\\\":0}\"; fi"- sh -c "if [ '$DB' = 'redis' ]; then node app --setup=\"{\\\"url\\\":\\\"http://127.0.0.1:4567\\\",\\\"secret\\\":\\\"abcdef\\\",\\\"database\\\":\\\"redis\\\",\\\"mongo:host\\\":\\\"127.0.0.1\\\",\\\"mongo:port\\\":27017,\\\"mongo:username\\\":\\\"\\\",\\\"mongo:password\\\":\\\"\\\",\\\"mongo:database\\\":0,\\\"redis:host\\\":\\\"127.0.0.1\\\",\\\"redis:port\\\":6379,\\\"redis:password\\\":\\\"\\\",\\\"redis:database\\\":0,\\\"admin:username\\\":\\\"admin\\\",\\\"admin:email\\\":\\\"[email protected]\\\",\\\"admin:password\\\":\\\"abcdef\\\",\\\"admin:password:confirm\\\":\\\"abcdef\\\"}\" --ci=\"{\\\"host\\\":\\\"127.0.0.1\\\",\\\"port\\\":6379,\\\"database\\\":0}\"; fi"diff --git a/Dockerfile b/Dockerfileindex adce1f33ad..872d15667e 100644--- a/Dockerfile+++ b/Dockerfile@@ -6,7 +6,7 @@ WORKDIR /usr/src/appARG NODE_ENVENV NODE_ENV $NODE_ENV-COPY package.default.json /usr/src/app/package.json+COPY install/package.json /usr/src/app/package.jsonRUN npm install && npm cache clean --forceCOPY . /usr/src/appdiff --git a/package.default.json b/package.default.jsondeleted file mode 100644index 7212ac8dfe..0000000000--- a/package.default.json+++ /dev/null@@ -1,139 +0,0 @@-{- "name": "nodebb",- "license": "GPL-3.0",- "description": "NodeBB Forum",- "version": "1.7.0",- "homepage": "http://www.nodebb.org",- "repository": {- "type": "git",- "url": "https://github.com/NodeBB/NodeBB/"- },- "main": "app.js",- "scripts": {- "start": "node loader.js",- "lint": "eslint --cache ./nodebb .",- "pretest": "npm run lint",- "test": "nyc --reporter=html --reporter=text-summary mocha",- "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage"- },- "dependencies": {- "ace-builds": "^1.2.9",- "async": "2.5.0",- "autoprefixer": "7.1.6",- "bcryptjs": "2.4.3",- "benchpressjs": "^1.1.2",- "body-parser": "^1.18.2",- "bootstrap": "^3.3.7",- "chart.js": "^2.7.0",- "colors": "^1.1.2",- "compression": "^1.7.1",- "connect-ensure-login": "^0.1.1",- "connect-flash": "^0.1.1",- "connect-mongo": "2.0.0",- "connect-multiparty": "^2.1.0",- "connect-redis": "3.3.2",- "cookie-parser": "^1.4.3",- "cron": "^1.3.0",- "cropperjs": "^1.1.3",- "csurf": "^1.9.0",- "daemon": "^1.1.0",- "express": "^4.16.2",- "express-session": "^1.15.6",- "express-useragent": "1.0.8",- "graceful-fs": "^4.1.11",- "html-to-text": "3.3.0",- "ipaddr.js": "^1.5.4",- "jimp": "0.2.28",- "jquery": "^3.2.1",- "jsesc": "2.5.1",- "json-2-csv": "^2.1.2",- "less": "^2.7.2",- "lodash": "^4.17.4",- "logrotate-stream": "^0.2.5",- "lru-cache": "4.1.1",- "mime": "^2.0.3",- "minimist": "^1.2.0",- "mkdirp": "^0.5.1",- "mongodb": "2.2.33",- "morgan": "^1.9.0",- "mousetrap": "^1.6.1",- "nconf": "^0.8.5",- "nodebb-plugin-composer-default": "6.0.6",- "nodebb-plugin-dbsearch": "2.0.9",- "nodebb-plugin-emoji-extended": "1.1.1",- "nodebb-plugin-emoji-one": "1.2.1",- "nodebb-plugin-markdown": "8.2.0",- "nodebb-plugin-mentions": "2.2.1",- "nodebb-plugin-soundpack-default": "1.0.0",- "nodebb-plugin-spam-be-gone": "0.5.1",- "nodebb-rewards-essentials": "0.0.9",- "nodebb-theme-lavender": "5.0.0",- "nodebb-theme-persona": "7.1.1",- "nodebb-theme-slick": "1.1.2",- "nodebb-theme-vanilla": "8.1.0",- "nodebb-widget-essentials": "4.0.1",- "nodemailer": "4.3.0",- "passport": "^0.4.0",- "passport-local": "1.0.0",- "postcss": "6.0.13",- "postcss-clean": "1.1.0",- "promise-polyfill": "^6.0.2",- "prompt": "^1.0.0",- "redis": "2.8.0",- "request": "2.83.0",- "rimraf": "2.6.2",- "rss": "^1.2.2",- "sanitize-html": "^1.14.1",- "semver": "^5.4.1",- "serve-favicon": "^2.4.5",- "sitemap": "^1.13.0",- "socket.io": "2.0.4",- "socket.io-client": "2.0.4",- "socket.io-redis": "5.2.0",- "socketio-wildcard": "2.0.0",- "spdx-license-list": "^3.0.1",- "toobusy-js": "^0.5.1",- "uglify-js": "^3.1.5",- "validator": "9.0.0",- "winston": "^2.4.0",- "xml": "^1.0.1",- "xregexp": "3.2.0",- "zxcvbn": "^4.4.2"- },- "devDependencies": {- "coveralls": "^3.0.0",- "eslint": "^4.9.0",- "eslint-config-airbnb-base": "^12.1.0",- "eslint-plugin-import": "^2.8.0",- "grunt": "^1.0.1",- "grunt-contrib-watch": "^1.0.0",- "jsdom": "^11.3.0",- "mocha": "^4.0.1",- "mocha-lcov-reporter": "^1.3.0",- "nyc": "^11.2.1",- "smtp-server": "^3.3.0"- },- "bugs": {- "url": "https://github.com/NodeBB/NodeBB/issues"- },- "engines": {- "node": ">=6"- },- "maintainers": [- {- "name": "Andrew Rodrigues",- "email": "[email protected]",- "url": "https://github.com/psychobunny"- },- {- "name": "Julian Lam",- "email": "[email protected]",- "url": "https://github.com/julianlam"- },- {- "name": "Barış Soner Uşaklı",- "email": "[email protected]",- "url": "https://github.com/barisusakli"- }- ]-}diff --git a/src/meta/package-install.js b/src/meta/package-install.jsindex ca465493bd..9f96b70a2e 100644--- a/src/meta/package-install.js+++ b/src/meta/package-install.js@@ -5,7 +5,7 @@ var fs = require('fs');var cproc = require('child_process');var packageFilePath = path.join(__dirname, '../../package.json');-var packageDefaultFilePath = path.join(__dirname, '../../package.default.json');+var packageDefaultFilePath = path.join(__dirname, '../../install/package.json');var modulesPath = path.join(__dirname, '../../node_modules');function updatePackageFile() {