Skip to content

Commit

Permalink
Remove cjs, other reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 8, 2024
1 parent ff204e8 commit a9d44c9
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 169 deletions.
31 changes: 9 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
# Blocknotes

Uses [Capacitor](https://capacitorjs.com) to create the native apps from a PWA.
A modified version of `@capacitor/filesystem` is used to save files to your
iCloud folder and the file system for web (PWA). By default
`@capacitor/filesystem` saves to indexDB on the web, and a _local_ folder on
iOS, so this package is heavily adjusted and should probably be rewritten as a
custom Capacitor plugin.
After cloning the repository and `npm install`, you can run `npm start` to run a
local server with the dev files.

Builds into the `dist` directory:
Running the iOS and macOS apps is a bit slower, since it needs the `dist` files.
You can build the `dist` directory with `npm run build`, then `npx cap sync` to
sync the files to the `ios` directory. Open Xcode with `npx cap open ios`.

```
npm run build
```

Syncs the the build to `ios`:

```
npx cap sync
```

Open Xcode:

```
npx cap open ios
```
It uses [Capacitor](https://capacitorjs.com) to create the native apps from the
PWA. A modified version of `@capacitor/filesystem` is used to allow picking any
directory in the local filesystem. By default `@capacitor/filesystem` saves to
indexDB on the web, and a hidden app folder on iOS/macOS.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Blocknotes",
"main": "index.js",
"type": "module",
"scripts": {
"start": "vite",
"build": "vite build",
Expand All @@ -26,6 +27,7 @@
"@wordpress/components": "^28.0.0",
"@wordpress/compose": "^7.0.0",
"@wordpress/data": "^10.0.0",
"@wordpress/dataviews": "^2.0.0",
"@wordpress/format-library": "^5.0.0",
"@wordpress/i18n": "^5.0.0",
"@wordpress/icons": "^10.0.0",
Expand Down
11 changes: 2 additions & 9 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
// @ts-check
const { defineConfig, devices } = require('@playwright/test');

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
import { defineConfig, devices } from '@playwright/test';

/**
* @see https://playwright.dev/docs/test-configuration
*/
module.exports = defineConfig({
export default defineConfig({
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
Expand Down
Loading

0 comments on commit a9d44c9

Please sign in to comment.