Skip to content

Commit

Permalink
feat: strapi v5 rc (#443)
Browse files Browse the repository at this point in the history
Strapi 5 compatibility ON

Co-authored-by: Tomasz Puch <tpuch@virtuslab.com>
Co-authored-by: Mateusz Ziarko <mziarko@virtuslab.com>
  • Loading branch information
3 people authored Dec 16, 2024
1 parent 793eaa7 commit 6fbd31c
Show file tree
Hide file tree
Showing 326 changed files with 33,682 additions and 23,460 deletions.
64 changes: 55 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ version: 2.1
orbs:
codecov: codecov/codecov@1.1.1
jobs:
build-and-test:
test:
environment:
CODECOV_TOKEN: c803c20c-c45d-4a63-9ba9-58c7d5d05bbf
docker:
- image: cimg/node:18.18.2
- image: cimg/node:20.12.2
working_directory: ~/repo
resource_class: large
steps:
- checkout
- run:
Expand All @@ -20,29 +21,74 @@ jobs:
- restore_cache:
keys:
# when lock file changes, use increasingly general patterns to restore cache
- strapi-plugin-navigation-v1-{{ checksum "yarn.lock" }}
- strapi-plugin-navigation-
- strapi-plugin-navigation-v4-{{ checksum "yarn.lock" }}
- strapi-plugin-navigation-v4
- run:
name: Echo versions
command: |
node --version
yarn --version
- run:
name: Configure NPM
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- run:
name: Install
command: |
yarn install
- run:
name: Test
command: |
yarn test:unit
yarn test:unit:ci
environment:
JEST_JUNIT_OUTPUT_DIR: ./reports/
- store_test_results:
path: ./reports/
- codecov/upload:
flags: unittest
file:
- save_cache:
paths:
- ./node_modules
key: strapi-plugin-navigation-v1-{{ checksum "yarn.lock" }}
key: strapi-plugin-navigation-v3-{{ checksum "yarn.lock" }}
- persist_to_workspace:
root: ~/repo
paths: .
deploy:
environment:
CODECOV_TOKEN: c803c20c-c45d-4a63-9ba9-58c7d5d05bbf
docker:
- image: cimg/node:20.12.2
working_directory: ~/repo
resource_class: large
steps:
- attach_workspace:
at: ~/repo
- run:
name: Configure NPM
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- run:
name: Build
command: |
yarn build
- run:
name: Publish package
command: npm publish --tag beta

workflows:
build-and-test:
jobs:
- build-and-test
version: 2
test-deploy:
jobs:
- test:
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ $RECYCLE.BIN/
*#
ssl
.idea
.vscode
nbproject
public/uploads/*
!public/uploads/.gitkeep
Expand All @@ -94,8 +95,8 @@ logs
results
node_modules
.node_history
yarn.lock
package-lock.json
.yarnrc.yml


############################
Expand All @@ -104,6 +105,7 @@ package-lock.json

testApp
coverage
junit.xml

############################
# Strapi
Expand All @@ -112,4 +114,5 @@ coverage
.env
exports
.cache
build
dist
.vscode
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ codecov.yml
*.spec.*
setup-package.*
**/__tests__/**
**/__mocks__/**
**/__mocks__/**
migrations/**
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.14.0
v20.12.0
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5"
}
Loading

0 comments on commit 6fbd31c

Please sign in to comment.