Commit Graph

36 Commits

Author SHA1 Message Date
Daniel Lockyer
73ba799d17
Fixed generating sodo-search CSS in dev mode
refs https://ghost.slack.com/archives/CFH10N79S/p1686042479311309?thread_ts=1679079897.164069&cid=CFH10N79S

- the current build workflow wasn't generating the Tailwind compiled CSS
  so we needed to amend the commands to do so
2023-06-06 12:19:40 +02:00
Fabien 'egg' O'Carroll
32f4861176
Bumped eslint-plugin-ghost (#16906)
- This includes changes to support PascalCase filenames for interfaces
- Also bumps newer packages to use the latest version to avoid conflicts
with the underlying eslint-plugin-filenames package
2023-05-31 16:36:32 -04:00
renovate[bot]
610ba33513 Update dependency postcss to v8.4.24 2023-05-29 07:52:39 +02:00
Fabien "egg" O'Carroll
104f84f252 Added eslint rule for file naming convention
As discussed with the product team we want to enforce kebab-case file names for
all files, with the exception of files which export a single class, in which
case they should be PascalCase and reflect the class which they export.

This will help find classes faster, and should push better naming for them too.

Some files and packages have been excluded from this linting, specifically when
a library or framework depends on the naming of a file for the functionality
e.g. Ember, knex-migrator, adapter-manager
2023-05-09 12:34:34 -04:00
renovate[bot]
67abd6555b Update CSS preprocessors 2023-05-01 16:43:16 +02:00
renovate[bot]
31ae31a13d Update dependency tailwindcss to v3.3.2 2023-04-26 06:36:40 +02:00
renovate[bot]
11aacc0e6b Update dependency copy-webpack-plugin to v11 2023-04-07 13:47:46 +02:00
renovate[bot]
24df14a3dc Update dependency tailwindcss to v3.3.1 2023-04-05 11:21:22 +02:00
renovate[bot]
827d2abf55 Update dependency @testing-library/react to v12.1.5 2023-03-17 23:38:13 +00:00
renovate[bot]
b7a7a54b43 Update dependency react-error-overlay to v6.0.11 2023-03-17 15:21:26 +01:00
Daniel Lockyer
3302f4125e
Added support to yarn dev for --search to launch Sodo-Search
refs https://github.com/TryGhost/Toolbox/issues/400

- this makes development more fluid by allowing developers to use the
  local Sodo-Search code
2023-03-17 11:51:42 +01:00
Daniel Lockyer
945bae34cc
Updated Sodo-Search dependencies
- these were the easy ones to bump, the rest require bigger changes or
  more investigation
2023-03-17 11:30:02 +01:00
Daniel Lockyer
73c1438561
Updated Sodo-Search package.json
refs https://github.com/TryGhost/Toolbox/issues/400

- this brings it inline with Portal's, which is a similar project
2023-03-17 11:30:02 +01:00
Daniel Lockyer
ddc6d60927
Added missing yarn test:unit command to Sodo-Search
refs https://github.com/TryGhost/Toolbox/issues/400

- this is needed for CI tests
2023-03-17 10:48:25 +01:00
Daniel Lockyer
3f3cf76c37 Updated react-scripts to v5
refs https://github.com/TryGhost/Toolbox/issues/400

- this fixes various build issues when it's moved into the Ghost
  monorepo
2023-03-17 09:52:12 +01:00
Rishabh
53af8d8243 v1.1.0 2022-07-25 22:29:57 +05:30
Rishabh
b8be0bbb2e v1.0.2 2022-07-19 11:37:59 +05:30
Rishabh
a1fab8c7f7 v1.0.1 2022-07-13 07:37:44 +05:30
Rishabh
e768477dfd v1.0.0 2022-07-12 16:55:28 +05:30
Rishabh
22a639f263 v0.1.7 2022-07-09 14:09:13 +02:00
Rishabh
ca4b5c6ed1 v0.1.6 2022-07-08 12:27:35 +02:00
Rishabh
4fdeb02b55 v0.1.5 2022-07-08 10:59:47 +02:00
Rishabh
233a1c2e4c v0.1.4 2022-07-07 17:08:17 +02:00
Rishabh
9678922357 v0.1.3 2022-07-07 16:09:49 +02:00
Rishabh
70cbf57f35 v0.1.2 2022-07-07 15:18:43 +02:00
Naz
df3d6cee74 Swapped elasticlunr with flexsearch
refs https://github.com/TryGhost/Team/issues/1665

- elasticlunr in an abandoned package with quite a lot of security vulnerabilities. it also has worse performance memory/processing wise comparing to flexsearch (benchmark: https://nextapps-de.github.io/flexsearch/bench/)
- fusejs was another option that was consideres. it was not chosed due to it's poor performance.
2022-07-07 12:52:09 +02:00
Naz
44c8969192 Switched URL calls to use Content API SDK
refs https://github.com/TryGhost/Team/issues/1665

-  The Content API SDK is the recommended way to interact with the API
2022-07-07 09:41:39 +02:00
Rishabh
d3e74b8c01 Added css minification
refs https://github.com/TryGhost/Team/issues/1665

- adds css minification to main.css via tailwind/postcss
2022-07-06 15:23:40 +02:00
Rishabh
9fe12641cf v0.1.1 2022-07-06 11:10:03 +02:00
Rishabh
e6c7d66553 Updated package json for publishing upstream
- cleans up package json for publish to npm
2022-07-06 10:17:05 +02:00
Rishabh
3be7c57bd6 Added tailwind CSS setup
refs https://github.com/TryGhost/Team/issues/1665

- adds tailwind css to dev and build modes
- updates dev mode to watch changes for tailwind
- updates build mode to write tailwind css file in public folder
2022-07-05 11:48:03 +02:00
Naz
f6838e2113 Added search index functionality
refs https://github.com/TryGhost/Team/issues/1665
refs 402e54987e/packages/ease/assets/js/main.js (L16-L127)

- This is a React adaptation of the referenced sodo-search functionality
- The module exposes two methods: init and search. Init requires an API URL parameter and an API key; search requires a text value and returns matching search results
2022-07-05 11:38:51 +02:00
Rishabh
506cf49beb Updated yarn test default script 2022-07-04 15:55:24 +02:00
Rishabh
e2294ace22 Added custom build for minified script
refs TryGhost/Team#1665

- overrides webpack config to generate single script for publishing
- adds custom scripts for dev and production mode
2022-07-04 15:41:14 +02:00
Rishabh
67f27f1027 Initial commit 2022-07-04 15:36:49 +02:00
Rishabh
737ae2f101 Initialize project using Create React App 2022-07-04 15:27:40 +02:00