refactor: components cdn (#1110)
* refactor(wip): separate components files into zips and assets dir * refactor(wip): use new components package and cdn in mobile * chore: add components to metro config * chore: bump snjs with new web assets path * refactor: exclude package.json files recursively from being copied into components dist folder to avoid conflicts with react native duplicates
This commit is contained in:
@@ -61,7 +61,7 @@ export const Paths = {
|
||||
return path.join(__dirname, 'javascripts/renderer/preload.js')
|
||||
},
|
||||
get components(): string {
|
||||
return `${app.getAppPath()}/dist/web/components`
|
||||
return `${app.getAppPath()}/dist/web/components/assets`
|
||||
},
|
||||
get grantLinuxPasswordsAccessJs(): string {
|
||||
return path.join(__dirname, 'javascripts/renderer/grantLinuxPasswordsAccess.js')
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"author": "Standard Notes <help@standardnotes.com>",
|
||||
"version": "3.20.2",
|
||||
"main": "./dist/index.js",
|
||||
"installConfig": {
|
||||
"selfReferences": true
|
||||
},
|
||||
"dependencies": {
|
||||
"keytar": "^7.9.0"
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ module.exports = function ({ onlyTranspileTypescript = false, experimentalFeatur
|
||||
to: 'web',
|
||||
},
|
||||
{
|
||||
from: '../../node_modules/@standardnotes/components-meta/dist/',
|
||||
from: 'node_modules/@standardnotes/components-meta/dist/',
|
||||
to: 'web/components',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -27,13 +27,15 @@
|
||||
"tsc": "tsc --noEmit",
|
||||
"release:mac": "node scripts/build.mjs mac",
|
||||
"start": "electron ./app --enable-logging --icon _icon/icon.png",
|
||||
"ava": "rimraf test/data/tmp && ava --serial"
|
||||
"ava": "rimraf test/data/tmp && ava --serial",
|
||||
"rebuild:keytar": "yarn app/node_modules/keytar build "
|
||||
},
|
||||
"installConfig": {
|
||||
"hoistingLimits": "workspaces"
|
||||
},
|
||||
"dependencies": {
|
||||
"@electron/remote": "^2.0.8",
|
||||
"@standardnotes/components-meta": "workspace:*",
|
||||
"@standardnotes/electron-clear-data": "1.1.1",
|
||||
"@standardnotes/web": "workspace:*",
|
||||
"axios": "^0.27.2",
|
||||
|
||||
Reference in New Issue
Block a user