Skip to content

Commit 0405fb5

Browse files
committed
Move packages from cursorless-nx to pnpm
1 parent 2104b58 commit 0405fb5

File tree

94 files changed

+1024
-641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1024
-641
lines changed

docs-site/package.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs-site/src/theme/SearchBar/index.js

Lines changed: 0 additions & 210 deletions
This file was deleted.

docs-site/src/theme/SearchBar/styles.css

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs-site/typedoc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build]
2-
command = "./scripts/docs-build.sh"
2+
command = "./scripts/build-and-assemble-website.sh"
33
publish = "dist/cursorless-org"

packages/cheatsheet-local/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Cheatsheet Local
2+
3+
This app just bundles up the cheatsheet into a single file to be used when the user says `"cursorless cheatsheet"`. The file inlines all css and js so that it can be opened as a single file by the end user. During actual production use, Talon will send the user's custom spoken forms to the Cursorless engine, which will [inject them](../cursorless-engine/src/core/Cheatsheet.ts) into the cheatsheet using a global variable.
4+
5+
Note that there is no development server for this app. It is just a build step. If you want a live development environment for the cheatsheet, you should use the cheatsheet page in [the `cursorless-org` package (our webpage defined in Next.js)](../cursorless-org).
6+
7+
## Tasks
8+
9+
### build
10+
11+
Builds the cheatsheet into a single file for deployment.
12+
13+
```
14+
pnpm run build
15+
```
16+
17+
The output will be in `dist/index.html`. Note that this file includes a bit of fake data so that it can be opened to check that it is functioning, but in production it will be replaced with the real data (see above).
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "@cursorless/cheatsheet-local",
3+
"version": "0.1.0",
4+
"private": true,
5+
"description": "Thin wrapper around the cheatsheet for showing local cheatsheet",
6+
"main": "./out/index.js",
7+
"scripts": {
8+
"compile": "tsc --build",
9+
"watch": "tsc --build --watch",
10+
"webpack": "pnpm compile && webpack --config ./src/webpack.config.ts",
11+
"build": "pnpm build:prod",
12+
"build:dev": "pnpm webpack --mode=development",
13+
"build:prod": "pnpm webpack --mode=production --node-env=production"
14+
},
15+
"keywords": [],
16+
"author": "",
17+
"license": "MIT",
18+
"types": "./out/index.d.ts",
19+
"exports": {
20+
".": {
21+
"bundler": "./src/index.ts",
22+
"default": "./out/index.js"
23+
}
24+
},
25+
"dependencies": {
26+
"@cursorless/cheatsheet": "workspace:*",
27+
"@types/react-dom": "18.0.11",
28+
"react": "^18.2.0",
29+
"react-dom": "^18.2.0"
30+
},
31+
"devDependencies": {
32+
"@effortlessmotion/html-webpack-inline-source-plugin": "1.0.3",
33+
"@testing-library/react": "14.0.0",
34+
"@types/jest": "29.4.0",
35+
"@types/node": "^16.11.3",
36+
"@types/react": "18.0.28",
37+
"@types/webpack": "5.28.0",
38+
"@webpack-cli/generators": "3.0.1",
39+
"autoprefixer": "10.4.13",
40+
"css-loader": "6.7.3",
41+
"html-webpack-plugin": "5.5.0",
42+
"jest": "29.5.0",
43+
"postcss": "8.4.21",
44+
"postcss-loader": "7.0.2",
45+
"style-loader": "3.3.1",
46+
"tailwindcss": "3.2.7",
47+
"ts-loader": "9.4.2",
48+
"ts-node": "10.9.1",
49+
"typescript": "^4.9.5",
50+
"webpack": "5.75.0",
51+
"webpack-cli": "5.0.1",
52+
"webpack-dev-server": "4.11.1"
53+
}
54+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
plugins: [require("tailwindcss"), require("autoprefixer")],
3+
};

0 commit comments

Comments
 (0)