Update configs and NPM packages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
2
.env
2
.env
@@ -8,4 +8,4 @@ API_URL_DEV="http://api.housesof.localhost/how"
|
|||||||
API_URL_PROD="https://api.housesof.world/how"
|
API_URL_PROD="https://api.housesof.world/how"
|
||||||
|
|
||||||
# Tracking
|
# Tracking
|
||||||
GA_TRACKER_ID="UA-4060922-27"
|
GA_TRACKER_ID="UA-4060922-27"
|
||||||
32
package.json
32
package.json
@@ -24,34 +24,34 @@
|
|||||||
"polka": "^1.0.0-next.11",
|
"polka": "^1.0.0-next.11",
|
||||||
"rellax": "^1.12.1",
|
"rellax": "^1.12.1",
|
||||||
"scroll-out": "^2.2.11",
|
"scroll-out": "^2.2.11",
|
||||||
"sirv": "^1.0.0",
|
"sirv": "^1.0.6",
|
||||||
"svelte-lazy": "^0.1.13",
|
"svelte-lazy": "^1.0.5",
|
||||||
"swipe-listener": "^1.2.0"
|
"swipe-listener": "^1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.10.2",
|
"@babel/core": "^7.11.4",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
"@babel/plugin-transform-runtime": "^7.10.1",
|
"@babel/plugin-transform-runtime": "^7.11.0",
|
||||||
"@babel/preset-env": "^7.10.2",
|
"@babel/preset-env": "^7.11.0",
|
||||||
"@babel/runtime": "^7.10.2",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@rollup/plugin-alias": "^3.1.1",
|
"@rollup/plugin-alias": "^3.1.1",
|
||||||
"@rollup/plugin-babel": "^5.0.3",
|
"@rollup/plugin-babel": "^5.2.0",
|
||||||
"@rollup/plugin-commonjs": "13.0.0",
|
"@rollup/plugin-commonjs": "15.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^8.0.1",
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
||||||
"@rollup/plugin-replace": "^2.3.3",
|
"@rollup/plugin-replace": "^2.3.3",
|
||||||
"autoprefixer": "^9.8.0",
|
"autoprefixer": "^9.8.6",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
"postcss": "^7.0.32",
|
"postcss": "^7.0.32",
|
||||||
"postcss-load-config": "^2.1.0",
|
"postcss-load-config": "^2.1.0",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"rollup": "^2.16.1",
|
"rollup": "^2.26.5",
|
||||||
"rollup-plugin-glslify": "^1.2.0",
|
"rollup-plugin-glslify": "^1.2.0",
|
||||||
"rollup-plugin-svelte": "^5.2.2",
|
"rollup-plugin-svelte": "^5.2.3",
|
||||||
"rollup-plugin-terser": "^6.1.0",
|
"rollup-plugin-terser": "^7.0.0",
|
||||||
"sapper": "^0.27.16",
|
"sapper": "^0.28.0",
|
||||||
"svelte": "^3.23.2",
|
"svelte": "^3.24.1",
|
||||||
"svelte-preprocess": "^3.9.7"
|
"svelte-preprocess": "^4.1.1"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 0.5%",
|
"> 0.5%",
|
||||||
|
|||||||
1228
pnpm-lock.yaml
generated
1228
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -14,11 +14,12 @@ module.exports = () => ({
|
|||||||
|
|
||||||
// CSS Nano
|
// CSS Nano
|
||||||
!dev && require('cssnano')({
|
!dev && require('cssnano')({
|
||||||
preset: 'default',
|
preset: ['default', {
|
||||||
autoprefixer: true,
|
autoprefixer: true,
|
||||||
discardComments: { removeAll: true },
|
discardComments: { removeAll: true },
|
||||||
calc: { precision: 2 },
|
calc: { precision: 2 },
|
||||||
safe: true
|
safe: true
|
||||||
|
}]
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// Banner
|
// Banner
|
||||||
@@ -26,4 +27,4 @@ module.exports = () => ({
|
|||||||
banner: `${pkg.name} v${pkg.version} \nBy ${pkg.author.name} \n${pkg.author.url}`
|
banner: `${pkg.name} v${pkg.version} \nBy ${pkg.author.name} \n${pkg.author.url}`
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
@@ -22,7 +22,7 @@ const replaceOptions = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Svelte
|
// Svelte
|
||||||
const onwarn = (warning, onwarn) => (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning)
|
const onwarn = (warning, onwarn) => (warning.code === 'MISSING_EXPORT' && /'preload'/.test(warning.message)) || (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning)
|
||||||
|
|
||||||
// Preprocessors
|
// Preprocessors
|
||||||
const preprocess = autoPreprocess({
|
const preprocess = autoPreprocess({
|
||||||
@@ -55,7 +55,6 @@ export default {
|
|||||||
client: {
|
client: {
|
||||||
input: sapperConfig.client.input(),
|
input: sapperConfig.client.input(),
|
||||||
output: sapperConfig.client.output(),
|
output: sapperConfig.client.output(),
|
||||||
preserveEntrySignatures: false,
|
|
||||||
plugins: [
|
plugins: [
|
||||||
// Javascript
|
// Javascript
|
||||||
replace({
|
replace({
|
||||||
@@ -67,7 +66,7 @@ export default {
|
|||||||
preprocess,
|
preprocess,
|
||||||
hydratable: true,
|
hydratable: true,
|
||||||
emitCss: dev,
|
emitCss: dev,
|
||||||
// css: css => css.write('static/bundle.css')
|
css: css => css.write('static/bundle.css')
|
||||||
}),
|
}),
|
||||||
aliases,
|
aliases,
|
||||||
glslify(),
|
glslify(),
|
||||||
@@ -88,7 +87,7 @@ export default {
|
|||||||
module: true
|
module: true
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
preserveEntrySignatures: false,
|
||||||
onwarn,
|
onwarn,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -106,6 +105,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
svelte({
|
svelte({
|
||||||
generate: 'ssr',
|
generate: 'ssr',
|
||||||
|
hydratable: true,
|
||||||
dev,
|
dev,
|
||||||
preprocess
|
preprocess
|
||||||
}),
|
}),
|
||||||
@@ -117,9 +117,8 @@ export default {
|
|||||||
}),
|
}),
|
||||||
commonjs()
|
commonjs()
|
||||||
],
|
],
|
||||||
external: Object.keys(pkg.dependencies).concat(
|
external: Object.keys(pkg.dependencies).concat(require('module').builtinModules),
|
||||||
require('module').builtinModules || Object.keys(process.binding('natives'))
|
preserveEntrySignatures: 'strict',
|
||||||
),
|
|
||||||
onwarn,
|
onwarn,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -142,6 +141,7 @@ export default {
|
|||||||
// commonjs(),
|
// commonjs(),
|
||||||
// !dev && terser()
|
// !dev && terser()
|
||||||
// ],
|
// ],
|
||||||
|
// preserveEntrySignatures: false,
|
||||||
// onwarn,
|
// onwarn,
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
|
|||||||
Reference in New Issue
Block a user