mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Remove unused packages
This commit is contained in:
parent
19e11d45fc
commit
5733caccd6
@ -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
|
||||
}
|
27
package.json
27
package.json
@ -9,17 +9,14 @@
|
||||
"start": "nodemon app.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"autoprefixer": "^7.2.4",
|
||||
"awesomplete": "^1.1.2",
|
||||
"bcrypt": "^2.0.1",
|
||||
"body-parser": "^1.18.2",
|
||||
"bootstrap": "^4.0.0",
|
||||
"clusterize.js": "^0.18.0",
|
||||
"codemirror": "^5.35.0",
|
||||
"commander": "^2.13.0",
|
||||
"cors": "^2.8.4",
|
||||
"deepmerge": "^2.1.0",
|
||||
"eslint": "^4.19.1",
|
||||
"express": "^4.16.2",
|
||||
"flatpickr": "^4.3.2",
|
||||
"frappe-datatable": "^1.1.2",
|
||||
@ -27,33 +24,18 @@
|
||||
"jwt-simple": "^0.5.1",
|
||||
"luxon": "^1.0.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mocha": "^4.1.0",
|
||||
"moment": "^2.20.1",
|
||||
"morgan": "^1.9.0",
|
||||
"mysql": "^2.15.0",
|
||||
"node-fetch": "^1.7.3",
|
||||
"node-sass": "^4.7.2",
|
||||
"nodemon": "^1.14.7",
|
||||
"nunjucks": "^3.1.0",
|
||||
"octicons": "^7.2.0",
|
||||
"passport": "^0.4.0",
|
||||
"passport-jwt": "^4.0.0",
|
||||
"popper.js": "^1.12.9",
|
||||
"precss": "^2.0.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",
|
||||
"socket.io": "^2.0.4",
|
||||
"sortablejs": "^1.7.0",
|
||||
"sqlite3": "^3.1.13",
|
||||
"walk": "^2.3.9"
|
||||
"sqlite3": "^3.1.13"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -68,8 +50,11 @@
|
||||
"url": "https://github.com/frappe/frappejs/issues"
|
||||
},
|
||||
"homepage": "https://github.com/frappe/frappejs#readme",
|
||||
"devDependencies": {},
|
||||
"devDependencies": {
|
||||
"mocha": "^5.2.0",
|
||||
"nodemon": "^1.18.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "8.11.1"
|
||||
"node": ">=8.11.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
const numberFormat = require('./numberFormat');
|
||||
const markdown = new (require('showdown').Converter)();
|
||||
const moment = require('moment');
|
||||
const luxon = require('luxon');
|
||||
const frappe = require('frappejs');
|
||||
|
||||
module.exports = {
|
||||
@ -23,7 +23,7 @@ module.exports = {
|
||||
dateFormat = frappe.SystemSettings.dateFormat;
|
||||
}
|
||||
|
||||
value = moment(value).format(dateFormat.toUpperCase());
|
||||
value = luxon.DateTime.fromISO(value).toFormat(dateFormat);
|
||||
|
||||
} else {
|
||||
if (value === null || value === undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user