2013-11-10 21:31:42 +00:00
|
|
|
{
|
2021-12-20 15:01:25 +00:00
|
|
|
"name": "padloc",
|
|
|
|
"private": true,
|
|
|
|
"version": "4.0.0",
|
|
|
|
"description": "A minimalist password manager",
|
|
|
|
"author": "Martin Kleinschrodt <martin@maklesoft.com>",
|
|
|
|
"license": "GPL-3.0",
|
|
|
|
"homepage": "https://padloc.app/",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/padloc/padloc.git"
|
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"node": "16.13.1",
|
|
|
|
"npm": "8.2.0"
|
|
|
|
},
|
|
|
|
"main": "main.js",
|
|
|
|
"devDependencies": {
|
2022-01-21 18:51:27 +00:00
|
|
|
"concurrently": "7.0.0",
|
|
|
|
"cypress": "9.3.1",
|
2022-02-09 17:15:08 +00:00
|
|
|
"http-server": "14.1.0",
|
2022-07-20 07:43:05 +00:00
|
|
|
"lerna": "5.1.8",
|
2022-02-19 16:40:50 +00:00
|
|
|
"maildev": "github:padloc/maildev",
|
2021-12-20 15:01:25 +00:00
|
|
|
"prettier": "2.5.1",
|
|
|
|
"ts-node": "10.0.0",
|
2022-01-21 18:51:27 +00:00
|
|
|
"typescript": "4.4.3",
|
|
|
|
"wait-on": "6.0.0"
|
2021-12-20 15:01:25 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"postinstall": "lerna bootstrap",
|
|
|
|
"bootstrap": "lerna bootstrap",
|
|
|
|
"pwa:build": "lerna run build --scope @padloc/pwa",
|
|
|
|
"pwa:start": "lerna run start --scope @padloc/pwa",
|
|
|
|
"server:start": "lerna run start --scope @padloc/server --stream",
|
|
|
|
"server:start-dry": "lerna run start-dry --stream --scope @padloc/server",
|
2022-02-25 15:21:58 +00:00
|
|
|
"electron:start": "lerna run start --scope @padloc/electron",
|
2021-12-24 19:59:07 +00:00
|
|
|
"electron:build": "lerna run build --scope @padloc/electron",
|
2022-07-04 11:22:12 +00:00
|
|
|
"electron:build:flatpak": "lerna run build:flatpak",
|
2021-12-21 14:01:06 +00:00
|
|
|
"web-extension:build": "lerna run build --scope @padloc/extension",
|
CI: Cordova - Build iOS
This implements building the iOS package + uploading the artifact.
It builds successfully though I was unable to get past the loading screen, even locally (not sure what's wrong, might need help).
The QRScanner problem was a journey. It started with trying to install the package via url, from https://github.com/padloc/cordova-plugin-qrscanner and I ran into https://github.com/lerna/lerna/issues/2674 then I tried to simply publish a new package name (`padloc-cordova-plugin-qrscanner`), but as I was replacing the plugin name in the code, it started blowing up in a few different places, and it just felt wrong. Finally, I just created a patch command in `npm`, which can later evolve into a bash script or whatever we need. It's not pretty, but that worked!
The signed command doesn't run yet for iOS because building for the app store will be a separate PR, for publishing, like the other targets.
This will close the development/CI/CD part of #330
2021-12-29 20:58:35 +00:00
|
|
|
"cordova:start:android": "lerna run start:android",
|
|
|
|
"cordova:start:ios": "lerna run start:ios",
|
2021-12-23 12:24:16 +00:00
|
|
|
"cordova:build": "lerna run build:android && lerna run build:ios",
|
|
|
|
"cordova:build:android": "lerna run build:android",
|
2021-12-23 20:44:01 +00:00
|
|
|
"cordova:build:android:signed": "lerna run build:android:signed",
|
2021-12-23 12:24:16 +00:00
|
|
|
"cordova:build:ios": "lerna run build:ios",
|
CI: Cordova - Build iOS
This implements building the iOS package + uploading the artifact.
It builds successfully though I was unable to get past the loading screen, even locally (not sure what's wrong, might need help).
The QRScanner problem was a journey. It started with trying to install the package via url, from https://github.com/padloc/cordova-plugin-qrscanner and I ran into https://github.com/lerna/lerna/issues/2674 then I tried to simply publish a new package name (`padloc-cordova-plugin-qrscanner`), but as I was replacing the plugin name in the code, it started blowing up in a few different places, and it just felt wrong. Finally, I just created a patch command in `npm`, which can later evolve into a bash script or whatever we need. It's not pretty, but that worked!
The signed command doesn't run yet for iOS because building for the app store will be a separate PR, for publishing, like the other targets.
This will close the development/CI/CD part of #330
2021-12-29 20:58:35 +00:00
|
|
|
"cordova:build:ios:signed": "lerna run build:ios:signed",
|
2021-12-20 15:01:25 +00:00
|
|
|
"start": "npm run pwa:build && lerna run --scope '@padloc/{server,pwa}' --parallel start",
|
2022-02-09 17:15:08 +00:00
|
|
|
"start:v3": "http-server cypress/fixtures/v3-client -s -p 8081 --proxy http://0.0.0.0:8081?",
|
2021-12-20 15:01:25 +00:00
|
|
|
"dev": "lerna run --parallel --scope '@padloc/{server,pwa}' --parallel dev",
|
|
|
|
"tauri:dev": "lerna run --parallel --scope '@padloc/{server,tauri}' --parallel dev",
|
Fix Tauri build
This isn't working, but has some attempts. It's currently blocked, because the built app just has many `ReferenceError: Can't find variable: process`. Something with Webpack isn't building properly, as even trying to just run `webpack serve` from inside yields the same result (I updated webpack, but the problem is in the setup/config, really). I also tried setting `resolve.fallback.process: require.resolve('process/browser')` ([among other things](https://pretagteam.com/question/webpack-5-uncaught-referenceerror-process-is-not-defined)), but the executed code comes from `@padloc/app`, so I'd have to add that package there, and it feels wrong. I'm positive I'm just doing something wrong with the setup, but already spent quite some time on it.
To test, pull this down, run `npm install`, and `npm run tauri:dev` (runs with `webpack` instead of `tauri`, just because the console errors are more useful).
In the process of trying to get this to work, I migrated the icons to the assets directory and updated them. I also tweaked the initial HTML to match the new v4 theme.
Related to #281
2021-12-27 10:43:39 +00:00
|
|
|
"tauri:update": "lerna run update",
|
2022-06-20 10:01:57 +00:00
|
|
|
"tauri:build": "lerna run build --scope @padloc/tauri",
|
|
|
|
"tauri:build:debug": "lerna run build:debug",
|
2021-12-20 15:01:25 +00:00
|
|
|
"repl": "cd packages/server && npm run repl && cd ../..",
|
|
|
|
"test": "lerna run test",
|
2022-02-26 11:47:20 +00:00
|
|
|
"test:e2e": "concurrently --prefix=name --prefix-length=30 --kill-others --success=first -n app,v3-app,maildev,cypress \"PL_DATA_BACKEND=memory PL_DISABLE_SW=true PL_EMAIL_BACKEND=smtp PL_EMAIL_SMTP_HOST=localhost PL_EMAIL_SMTP_PORT=1025 PL_EMAIL_SMTP_IGNORE_TLS=true npm start\" \"npm run start:v3\" \"npx maildev\" \"./node_modules/.bin/wait-on tcp:localhost:8080 && CYPRESS_CRASH_REPORTS=0 cypress run\"",
|
2022-02-19 08:24:02 +00:00
|
|
|
"test:e2e:dev": "concurrently --prefix=name --prefix-length=30 --kill-others --success=first -n app,v3-app,cypress \"PL_DATA_BACKEND=memory PL_DISABLE_SW=true PL_EMAIL_BACKEND=smtp PL_EMAIL_SMTP_HOST=localhost PL_EMAIL_SMTP_PORT=1025 PL_EMAIL_SMTP_IGNORE_TLS=true npm run dev\" \"npm run start:v3\" \"npx maildev\" \"./node_modules/.bin/wait-on tcp:localhost:8080 && CYPRESS_CRASH_REPORTS=0 cypress open\"",
|
2021-12-20 15:01:25 +00:00
|
|
|
"locale:extract": "lerna run extract --scope '@padloc/locale'",
|
2022-07-04 11:22:12 +00:00
|
|
|
"add": "lerna add $1 --exact --scope=@padloc/$scope",
|
2021-12-20 15:01:25 +00:00
|
|
|
"remove": "rm packages/$scope/package-lock.json && lerna exec \"npm uninstall $1\" --scope=@padloc/$scope",
|
|
|
|
"prettier": "prettier --write .",
|
2022-01-17 17:32:21 +00:00
|
|
|
"prettier:check": "prettier --check .",
|
2022-02-23 13:58:14 +00:00
|
|
|
"format": "prettier --write .",
|
|
|
|
"format:check": "prettier --check .",
|
2022-01-17 17:32:21 +00:00
|
|
|
"update-version": "lerna version $1 --yes",
|
2022-02-23 13:58:14 +00:00
|
|
|
"version": "lerna version $1 --yes",
|
2022-01-17 17:32:21 +00:00
|
|
|
"publish": "lerna publish"
|
2021-12-20 15:01:25 +00:00
|
|
|
}
|
2021-12-15 15:07:38 +00:00
|
|
|
}
|