2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00

Remove unused packages

This commit is contained in:
Faris Ansari 2018-07-18 00:13:51 +05:30
parent 19e11d45fc
commit 5733caccd6
4 changed files with 662 additions and 1777 deletions

View File

@ -1,46 +0,0 @@
const commonjs = require('rollup-plugin-commonjs');
const json = require('rollup-plugin-json');
const html = require('rollup-plugin-html');
const nodeResolve = require('rollup-plugin-node-resolve');
const precss = require('precss');
const autoprefixer = require('autoprefixer');
const postcss = require('rollup-plugin-postcss');
const getJSConfig = ({input, output}) => ({
input: input,
output: {
file: output,
format: 'iife',
name: 'desk',
sourcemap: true,
globals: ['io', 'nunjucks'], // for socketio client, which is imported directly,
},
plugins: [
commonjs(),
json(),
html(),
nodeResolve(),
],
});
const getCSSConfig = ({input, output}) => ({
input: input,
output: {
file: output,
format: 'cjs'
},
plugins: [
postcss({
extract: true,
plugins: [
precss,
autoprefixer
]
})
]
});
module.exports = {
getJSConfig,
getCSSConfig
}

View File

@ -9,17 +9,14 @@
"start": "nodemon app.js" "start": "nodemon app.js"
}, },
"dependencies": { "dependencies": {
"autoprefixer": "^7.2.4",
"awesomplete": "^1.1.2", "awesomplete": "^1.1.2",
"bcrypt": "^2.0.1", "bcrypt": "^2.0.1",
"body-parser": "^1.18.2", "body-parser": "^1.18.2",
"bootstrap": "^4.0.0", "bootstrap": "^4.0.0",
"clusterize.js": "^0.18.0",
"codemirror": "^5.35.0", "codemirror": "^5.35.0",
"commander": "^2.13.0", "commander": "^2.13.0",
"cors": "^2.8.4", "cors": "^2.8.4",
"deepmerge": "^2.1.0", "deepmerge": "^2.1.0",
"eslint": "^4.19.1",
"express": "^4.16.2", "express": "^4.16.2",
"flatpickr": "^4.3.2", "flatpickr": "^4.3.2",
"frappe-datatable": "^1.1.2", "frappe-datatable": "^1.1.2",
@ -27,33 +24,18 @@
"jwt-simple": "^0.5.1", "jwt-simple": "^0.5.1",
"luxon": "^1.0.0", "luxon": "^1.0.0",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"mocha": "^4.1.0",
"moment": "^2.20.1",
"morgan": "^1.9.0", "morgan": "^1.9.0",
"mysql": "^2.15.0", "mysql": "^2.15.0",
"node-fetch": "^1.7.3", "node-fetch": "^1.7.3",
"node-sass": "^4.7.2", "node-sass": "^4.7.2",
"nodemon": "^1.14.7",
"nunjucks": "^3.1.0", "nunjucks": "^3.1.0",
"octicons": "^7.2.0", "octicons": "^7.2.0",
"passport": "^0.4.0", "passport": "^0.4.0",
"passport-jwt": "^4.0.0", "passport-jwt": "^4.0.0",
"popper.js": "^1.12.9",
"precss": "^2.0.0",
"puppeteer": "^1.2.0", "puppeteer": "^1.2.0",
"rollup": "^0.55.1",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-html": "^0.2.1",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-postcss": "^1.2.7",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-sass": "^0.5.3",
"showdown": "^1.8.6", "showdown": "^1.8.6",
"socket.io": "^2.0.4", "socket.io": "^2.0.4",
"sortablejs": "^1.7.0", "sqlite3": "^3.1.13"
"sqlite3": "^3.1.13",
"walk": "^2.3.9"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -68,8 +50,11 @@
"url": "https://github.com/frappe/frappejs/issues" "url": "https://github.com/frappe/frappejs/issues"
}, },
"homepage": "https://github.com/frappe/frappejs#readme", "homepage": "https://github.com/frappe/frappejs#readme",
"devDependencies": {}, "devDependencies": {
"mocha": "^5.2.0",
"nodemon": "^1.18.3"
},
"engines": { "engines": {
"node": "8.11.1" "node": ">=8.11.0"
} }
} }

View File

@ -1,6 +1,6 @@
const numberFormat = require('./numberFormat'); const numberFormat = require('./numberFormat');
const markdown = new (require('showdown').Converter)(); const markdown = new (require('showdown').Converter)();
const moment = require('moment'); const luxon = require('luxon');
const frappe = require('frappejs'); const frappe = require('frappejs');
module.exports = { module.exports = {
@ -23,7 +23,7 @@ module.exports = {
dateFormat = frappe.SystemSettings.dateFormat; dateFormat = frappe.SystemSettings.dateFormat;
} }
value = moment(value).format(dateFormat.toUpperCase()); value = luxon.DateTime.fromISO(value).toFormat(dateFormat);
} else { } else {
if (value === null || value === undefined) { if (value === null || value === undefined) {

2362
yarn.lock

File diff suppressed because it is too large Load Diff