├── .eslintignore ├── .yarnrc ├── lerna.json ├── .vscode ├── settings.json └── launch.json ├── .gitignore ├── .github └── ISSUE_TEMPLATE │ ├── proposal.md │ └── bug_report.md ├── package.json ├── CONTRIBUTING.md ├── CODE_OF_CONDUCT.md ├── README.md └── LICENSE /.eslintignore: -------------------------------------------------------------------------------- 1 | runtime-packages/test 2 | runtime-packages/test-* 3 | runtime-packages/test/**/* 4 | 5 | build-packages/xmldom -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | yarn-path ".yarn/releases/yarn-1.18.0.cjs" 6 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "npmClient": "yarn", 3 | "useWorkspaces": true, 4 | "version": "independent", 5 | "packages": [ 6 | "runtime-packages/*", 7 | "build-packages/*" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cSpell.enableFiletypes": [ 3 | "!json" 4 | ], 5 | "cSpell.words": [ 6 | "CRACO", 7 | "Magento", 8 | "REBEM", 9 | "Scandiweb", 10 | "scandipwa" 11 | ], 12 | "editor.codeActionsOnSave": { 13 | "source.fixAll.eslint": true 14 | } 15 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | **/node_modules 5 | **/.pnp 6 | .pnp.js 7 | 8 | # testing 9 | **/coverage 10 | 11 | # production 12 | **/build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | # runtime-packages 26 | # runtime-packages/**/* 27 | runtime-packages/csa 28 | 29 | # build specifc files 30 | lerna-debug.log 31 | .eslintcache -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/proposal.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Proposal 3 | about: Suggest an idea for improving Create ScandiPWA App 4 | labels: 'issue: proposal' 5 | --- 6 | 7 | ### Is your proposal related to a problem? 8 | 9 | 13 | 14 | (Write your answer here.) 15 | 16 | ### Describe the solution you'd like 17 | 18 | 21 | 22 | (Describe your proposed solution here.) 23 | 24 | ### Describe alternatives you've considered 25 | 26 | 29 | 30 | (Write your answer here.) 31 | 32 | ### Additional context 33 | 34 | 38 | 39 | (Write your answer here.) 40 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "create-scandipwa-app-monorepo", 4 | "scripts": { 5 | "eslint": "eslint ./build-packages ./runtime-packages --cache --no-error-on-unmatched-pattern --ext .js,.ts,.tsx", 6 | "csa": "create-scandipwa-app runtime-packages/csa", 7 | "csa-blank": "create-scandipwa-app runtime-packages/csa-blank --template blank", 8 | "csa-cra": "create-scandipwa-app runtime-packages/csa-cra --template cra", 9 | "postinstall": "lerna bootstrap && lerna run compile", 10 | "clean": "lerna clean --yes", 11 | "compile:lockfile": "node build-tasks/compile-lockfile.js" 12 | }, 13 | "devDependencies": { 14 | "eslint": "^7.11.0", 15 | "fs-extra": "^9.0.1", 16 | "husky": "^4.3.0", 17 | "lerna": "^3.22.1" 18 | }, 19 | "husky": { 20 | "hooks": { 21 | "pre-commit": "npm run eslint" 22 | } 23 | }, 24 | "eslintConfig": { 25 | "extends": "@scandipwa", 26 | "ignorePatterns": [ 27 | "build-packages/craco/**", 28 | "runtime-packages/scandipwa/**", 29 | "runtime-packages/cma/**", 30 | "build-packages/csa-generator-*/template/**", 31 | "build-packages/eslint-plugin-scandipwa-guidelines/**", 32 | "build-packages/scandipwa-development-toolkit-vscode/**", 33 | "build-packages/scandipwa-development-toolkit-core/**", 34 | "**/node_modules/**" 35 | ] 36 | }, 37 | "workspaces": [ 38 | "build-packages/*", 39 | "runtime-packages/*" 40 | ] 41 | } 42 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Create ScandiPWA App 2 | 3 | Loving Create ScandiPWA App and want to get involved? Thanks! There are plenty of ways you can help. 4 | 5 | Please take a moment to review this document in order to make the contribution process straightforward and effective for everyone involved. 6 | 7 | Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features. 8 | 9 | ## Core Ideas 10 | 11 | The Create ScandiPWA App ideas build on-top-of what Create React App has defined. Read [their core ideas](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md#core-ideas) first. 12 | 13 | ### Extensibilty and hierarchy 14 | 15 | Everything we build must be extensible. Opening up the build configuration for plugins was not obligatory, thus we specifically looked for the technology with plugin support - [Craco](https://github.com/gsoft-inc/craco). The hierarchy means we must always keep in mind our source-code priority: from extension, to parent-themes, to the user theme. 16 | 17 | ## Submitting a Pull Request 18 | 19 | Good pull requests, such as patches, improvements, and new features, are a fantastic help. They should remain focused in scope and avoid containing unrelated commits. 20 | 21 | Please ask first if somebody else is already working on this or the core developers think your feature is in-scope for Create ScandiPWA App. Generally always have a related issue with discussions for whatever you are including. 22 | 23 | Please also provide a test plan, i.e. specify how you verified that your addition works. 24 | 25 | ## Folder Structure 26 | 27 | ``` 28 | └── 📁 build-packages 29 | ├── 📁 babel-plugin-middleware-decorator 30 | ├── 📁 craco 31 | ├── 📁 create-scandipwa-app 32 | ├── 📁 csa-generator-blank 33 | ├── 📁 csa-generator-extension 34 | ├── 📁 csa-generator-theme 35 | ├── 📁 eslint-config 36 | ├── 📁 eslint-plugin-scandipwa-guidelines 37 | ├── 📁 scandipwa-cli 38 | ├── 📁 scandipwa-dev-utils 39 | ├── 📁 scandipwa-development-toolkit-csa 40 | ├── 📁 scandipwa-extensibility 41 | ├── 📁 scandipwa-scripts 42 | ├── 📁 webpack-extension-import-loader 43 | ├── 📁 webpack-fallback-plugin 44 | └── 📁 webpack-i18n-plugin 45 | ``` 46 | 47 | ## Setting up a local copy 48 | 49 | Setting Up a Local Copy 50 | 1. Clone the repo with `git clone https://github.com/scandipwa/create-scandipwa-app` 51 | 2. Run `yarn` in the root `create-scandipwa-app` folder. 52 | 53 | You may now create a test project using `create-scandipwa-app`, for that, type in: `yarn csa`. This will create a ScandiPWA project in `runtime-packages/csa` and print you futher instructions. 54 | 55 | ## Publishing 56 | 57 | Use `lerna publish --exact` command. 58 | 59 | For canary publishing, use `lerna publish --canary --exact --preid next --dist-tag=next minor` 60 | 61 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to make participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | - Using welcoming and inclusive language 18 | - Being respectful of differing viewpoints and experiences 19 | - Gracefully accepting constructive criticism 20 | - Focusing on what is best for the community 21 | - Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | - The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | - Trolling, insulting/derogatory comments, and personal or political attacks 28 | - Public or private harassment 29 | - Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | - Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies within all project spaces, and it also applies when 49 | an individual is representing the project or its community in public spaces. 50 | Examples of representing a project or community include using an official 51 | project e-mail address, posting via an official social media account, or acting 52 | as an appointed representative at an online or offline event. Representation of 53 | a project may be further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at . All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### NOTE! The development has moved to the https://github.com/scandipwa/scandipwa repository. 2 | 3 | ![Create ScandiPWA App](https://user-images.githubusercontent.com/29531824/104035489-ddbfff80-51da-11eb-8efc-88adb4283cf5.png) 4 | 5 | A zero-configuration tool-chain which allows for front-end application theming, extension and translation. 6 | 7 | - [Creating an App](https://scandipwa.gitbook.io/create-scandipwa-app/getting-started/getting-started#creating-an-app) – How to create a new app. 8 | - [User Guide](https://scandipwa.gitbook.io/create-scandipwa-app/) – How to develop apps bootstrapped with Create ScandiPWA App. 9 | 10 | Create ScandiPWA App works on MacOS, Windows, and Linux. If something doesn’t work, please [file an issue](https://github.com/scandipwa/create-scandipwa-app/issues/new). 11 | 12 | ## Most important features 13 | 14 | ### Application plugins :dna: 15 | 16 | Create [modular](https://scandipwa.gitbook.io/create-scandipwa-app/extensions/extensions) front-end application with unlimited extensibility using the [application plugins](https://scandipwa.gitbook.io/create-scandipwa-app/extensions/application-plugins) feature. 17 | 18 | ### Theme overrides :nail_care: 19 | 20 | Create [reusable presentations](https://scandipwa.gitbook.io/create-scandipwa-app/themes/extensions-and-themes) of your frontend with inheritance-based [theming mechansim](https://scandipwa.gitbook.io/create-scandipwa-app/themes/parent-themes). 21 | 22 | ### Build configuration plugins :clamp: 23 | 24 | Break boundaries with [pluggable build configurations](https://scandipwa.gitbook.io/create-scandipwa-app/extensions/build-configuration-plugins). Package your build-configuration into a module and share across projects. 25 | 26 | But that's not it! Create ScandiPWA App also allows for [virtual modules](https://app.gitbook.com/@scandipwa/s/create-scandipwa-app/extensions/virtual-modules), [file provision](https://app.gitbook.com/@scandipwa/s/create-scandipwa-app/extensions/file-provision), [translations](https://scandipwa.gitbook.io/create-scandipwa-app/building-your-app/internationalization) and more! 27 | 28 | ## Creating an App 29 | 30 | **You’ll need to have Node >= 10.13 on your local development machine** (but it’s not required on the server). You can use [n](https://www.npmjs.com/package/n) (macOS, Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects. 31 | 32 | To create a new blank app, you may choose one of the following methods: 33 | 34 | #### NPX 35 | 36 | ```bash 37 | npx create-scandipwa-app my-app 38 | ``` 39 | 40 | [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher 41 | 42 | #### NPM 43 | 44 | ```bash 45 | npm init scandipwa-app my-app 46 | ``` 47 | 48 | `npm init ` is available in npm 6+ 49 | 50 | #### Yarn 51 | 52 | ```bash 53 | yarn create scandipwa-app my-app 54 | ``` 55 | 56 | `yarn create` is available in Yarn 0.25+ 57 | 58 | > **Note**: To create an application independent from [Magento 2](https://magento.com/), add `--template blank` option to creation command. 59 | 60 | ## Contribution 61 | 62 | We'd love to have your helping hand on `create-scandipwa-app`! See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information on what we're looking for and how to get started. 63 | 64 | Thanks to these **awesome** :heart: people for contribution! 65 | 66 | 67 | 68 | 69 | 70 | ## License 71 | 72 | Create ScandiPWA App is open source software licensed as [OSL-3.0](./LICENSE). 73 | 74 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "node", 9 | "request": "launch", 10 | "name": "CMA", 11 | "skipFiles": [ 12 | "/**" 13 | ], 14 | "program": "${workspaceFolder}/node_modules/create-magento-app/index.js", 15 | "args": [ 16 | "runtime-packages/cma" 17 | ] 18 | }, 19 | { 20 | "type": "node", 21 | "request": "launch", 22 | "name": "CSA", 23 | "skipFiles": [ 24 | "/**" 25 | ], 26 | "program": "${workspaceFolder}/node_modules/create-scandipwa-app/index.js", 27 | "args": [ 28 | "runtime-packages/csa" 29 | ] 30 | }, 31 | { 32 | "name": "Start", 33 | "request": "launch", 34 | "runtimeArgs": [ 35 | "run-script", 36 | "start" 37 | ], 38 | "env": { 39 | "SKIP_PREFLIGHT_CHECK": true 40 | }, 41 | "runtimeExecutable": "npm", 42 | "cwd": "${workspaceFolder}/runtime-packages/scandipwa", 43 | "skipFiles": [ 44 | "/**" 45 | ], 46 | "type": "pwa-node" 47 | }, 48 | { 49 | "name": "ESLint", 50 | "request": "launch", 51 | "runtimeArgs": [ 52 | "run-script", 53 | "eslint" 54 | ], 55 | "env": { 56 | "SKIP_PREFLIGHT_CHECK": true 57 | }, 58 | "runtimeExecutable": "npm", 59 | "cwd": "${workspaceFolder}", 60 | "skipFiles": [ 61 | "/**" 62 | ], 63 | "type": "pwa-node" 64 | }, 65 | { 66 | "name": "Build:Magento", 67 | "request": "launch", 68 | "runtimeArgs": [ 69 | "run-script", 70 | "build" 71 | ], 72 | "runtimeExecutable": "npm", 73 | "cwd": "${workspaceFolder}/runtime-packages/scandipwa", 74 | "env": { 75 | "BUILD_MODE": "magento" 76 | }, 77 | "skipFiles": [ 78 | "/**" 79 | ], 80 | "type": "pwa-node" 81 | }, 82 | { 83 | "type": "node", 84 | "request": "launch", 85 | "name": "Link", 86 | "skipFiles": [ 87 | "/**" 88 | ], 89 | "cwd": "${workspaceFolder}/runtime-packages/csa", 90 | "program": "${workspaceFolder}/node_modules/@scandipwa/scandipwa-scripts/bin/scandipwa-scripts.js", 91 | "args": [ 92 | "link" 93 | ] 94 | }, 95 | { 96 | "name": "CLI", 97 | "program": "${workspaceFolder}/build-packages/scandipwa-cli/index.js", 98 | "request": "launch", 99 | "skipFiles": [ 100 | "/**" 101 | ], 102 | "args": ["create", "component", "--redux", "AddToCart"], 103 | "cwd": "${workspaceFolder}/runtime-packages/csa", 104 | "type": "pwa-node" 105 | }, 106 | { 107 | "name": "VSCode", 108 | "type": "extensionHost", 109 | "request": "launch", 110 | "runtimeExecutable": "${workspaceFolder}/build-packages/scandipwa-development-toolkit-vscode/${execPath}", 111 | "args": [ 112 | "--extensionDevelopmentPath=${workspaceFolder}/build-packages/scandipwa-development-toolkit-vscode" 113 | ], 114 | "outFiles": [ 115 | "${workspaceFolder}/build-packages/scandipwa-development-toolkit-vscode/out/**/*.js" 116 | ], 117 | "preLaunchTask": "${defaultBuildTask}" 118 | }, 119 | ] 120 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | labels: 'issue: bug' 5 | --- 6 | 7 | 16 | 17 | ### Describe the bug 18 | 19 | (Write your answer here.) 20 | 21 | ### Did you try recovering your dependencies? 22 | 23 | 56 | 57 | (Write your answer here.) 58 | 59 | ### Which terms did you search for in User Guide? 60 | 61 | (Write your answer here if relevant.) 62 | 63 | ### Environment 64 | 65 | Describe your environment (host OS, default browser, etc.). 66 | 67 | ### Steps to reproduce 68 | 69 | 73 | 74 | (Write your steps here:) 75 | 76 | 1. 77 | 2. 78 | 3. 79 | 80 | ### Expected behavior 81 | 82 | 87 | 88 | (Write what you thought would happen.) 89 | 90 | ### Actual behavior 91 | 92 | 97 | 98 | (Write what happened. Please add screenshots!) 99 | 100 | ### Reproducible demo 101 | 102 | 117 | 118 | (Paste the link to an example project and exact instructions to reproduce the issue.) 119 | 120 | 132 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Open Software License ("OSL") v. 3.0 2 | 3 | This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: 4 | 5 | Licensed under the Open Software License version 3.0 6 | 7 | 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: 8 | 9 | 1. to reproduce the Original Work in copies, either alone or as part of a collective work; 10 | 11 | 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; 12 | 13 | 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License; 14 | 15 | 4. to perform the Original Work publicly; and 16 | 17 | 5. to display the Original Work publicly. 18 | 19 | 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. 20 | 21 | 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. 22 | 23 | 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. 24 | 25 | 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). 26 | 27 | 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. 28 | 29 | 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. 30 | 31 | 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. 32 | 33 | 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). 34 | 35 | 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. 36 | 37 | 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. 38 | 39 | 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. 40 | 41 | 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 42 | 43 | 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 44 | 45 | 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. 46 | 47 | 16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.``` --------------------------------------------------------------------------------