Skip to content

Commit

Permalink
Rename src directory to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
juhenius committed Nov 22, 2023
1 parent 9a6b4bd commit 37cb4d8
Show file tree
Hide file tree
Showing 45 changed files with 641 additions and 500 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run service tests
run: npm -w src/service test
run: npm -w packages/service test
- name: Run plugin tests
run: npm -w src/plugin test --watch=false --coverage
run: npm -w packages/plugin test --watch=false --coverage

publish-service:
runs-on: ubuntu-latest
Expand All @@ -41,17 +41,17 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build sources
run: npm -w src/service run build
run: npm -w packages/service run build
- name: Check for changes in service directory
id: check-changes
run: |
if git diff --quiet HEAD^ HEAD -- ./src/service/; then
if git diff --quiet HEAD^ HEAD -- ./packages/service/; then
echo "::set-output name=changed::false"
else
echo "::set-output name=changed::true"
fi
- name: Publish package
if: steps.check-changes.outputs.changed == 'true'
run: npm -w src/service publish
run: npm -w packages/service publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1,123 changes: 632 additions & 491 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@storyblok-external-content/root",
"workspaces": [
"src/service",
"src/plugin"
"packages/service",
"packages/plugin"
],
"version": "1.0.0",
"dependencies": {},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ This particular field plugin is designed to interact with an external content pl

### Service

To implement authentication and format content appropriately, you're required to create a service. Use the provided [Service](./src/service/) as a foundational template for this purpose.
To implement authentication and format content appropriately, you're required to create a service. Use the provided [Service](./packages/service/) as a foundational template for this purpose.

To publish service package use `npm run publish:patch`

### Plugin deployment

For a brief overview of the necessary steps, refer to the list below. For comprehensive guidelines, please consult the [Plugin Deployment documentation.](./doc/plugin-deployment.md)

1. Go to plugin directory `cd src/plugin`
1. Go to plugin directory `cd packages/plugin`
2. Build plugin with `npm run build`
3. Deploy plugin to Storyblok with `npm run deploy`
4. Publish latest version from Storyblok UI
Expand Down

0 comments on commit 37cb4d8

Please sign in to comment.