-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Sitecore/development
Version 1.0.0-alpha.1 release
- Loading branch information
Showing
316 changed files
with
24,666 additions
and
9,755 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,6 @@ | |
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn run pre-commit | ||
npm run pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Contributing to the React Admin project | ||
Hello! Thank you for your interest in contributing! Before making pull requests, please read this contributing guide so that your contribution doesn't go unnoticed! | ||
|
||
## Open Issues | ||
Every contribution / pull request needs to be associated to one or more [GitHub issues](https://github.com/ordercloud-api/ordercloud-javascript-sdk/issues). New issues are added to the [project backlog](https://github.com/orgs/Sitecore/projects/3) for review before they are considered "ready" to be worked on. | ||
|
||
Before logging a new issue, please check to see if your concern / idea has already been logged. | ||
|
||
Once an issue is moved (by a project maintainer) to the "Todo" column in the project backlog it is considered ready to be worked on. Please assign yourself and mark the issue as "In Progress" once development has started in order to avoid duplicate work. | ||
|
||
## Development | ||
1. Fork and clone the template repository locally | ||
2. Follow the working locally guide outlined in the main README.md | ||
3. After you have completed development, run `npm test` and `npm build` locally to ensure everything still works. | ||
4. Feel free to push changes to your forked development branch or create a new feature branch if it's a larger change. | ||
5. Open a pull request to the main repository `development` branch. Ensure that the pull request is linked to the issues you are addressing in the pull request and include a verbose description of the changes / fix / feature. | ||
6. A maintainer will review your pull request. They will either approve and merge or request further changes. | ||
7. Once your PR is merged, it will be slotted for the next release (merge into `main` branch). | ||
|
||
> **Important Note** - Ensure that you have recently pulled the latest from the main repository `development` branch before you begin new development. | ||
## Repository Structure | ||
Coming soon! A brief description of the directory structure their general purposes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const nextJest = require("next/jest") | ||
|
||
const createJestConfig = nextJest({ | ||
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment | ||
dir: "./" | ||
}) | ||
|
||
// Add any custom config to be passed to Jest | ||
/** @type {import('jest').Config} */ | ||
const customJestConfig = { | ||
// Add more setup options before each test is run | ||
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], | ||
|
||
testEnvironment: "jest-environment-jsdom", | ||
modulePaths: ["<rootDir>", "src"], | ||
moduleNameMapper: { | ||
"^@/pages/(.*)$": "<rootDir>/src/pages/$1", | ||
"^@/components/(.*)$": "<rootDir>/src/components/$1" | ||
} | ||
} | ||
|
||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async | ||
module.exports = createJestConfig(customJestConfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.