Supercharge your Strapi applications and plugins with typescript compiler
Explore the docs »
View Template
·
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
- Install
strapi-supercharged
andtypescript
dev dependenciesnpm install --save-dev strapi-supercharged typescript # yarn add -D strapi-supercharged typescript
- Create a
tsconfig.json
{ "compilerOptions": { "lib": ["esnext"], "target": "ES1019", "moduleResolution": "node", "esModuleInterop": true, "resolveJsonModule": true, "allowJs": true, "checkJs": true, "strict": true, "strictNullChecks": true, "noImplicitAny": true, "baseUrl": ".", "noEmit": true, "declaration": false, "types": ["strapi-supercharged"] }, "include": ["**/*.js", ".eslintrc.js"] }
- Clone the repo
git clone https://github.com/digisquad-io/strapi-supercharged-template.git
- Install NPM packages
npm install # yarn
- Run the tests
npm test # yarn test
Use all power of Typescript directly into your Javascript
Predict all types from internal and custom methods
Autocomplete built in and custom methods
Autocomplete for your models in query
Embed documentation & improved configuration
Advanced linter configuration
Advanced error detection
- Cover API, Plugins and all Internal Strapi typing
- Ahead-Of-Time compilation errors with Typescript
- Highly extensible definitions with interface merging
@todo
For complete examples, please refer to the Article API model typing or the Product model typing from sample plugin
@todo
For a complete example, please refer to the ArticleAPI typing
@todo
For a complete example, please refer to the SamplePlugin typing
@todo
For a complete example, please refer to the Article controller
@todo
For a complete example, please refer to the Article service
@todo
For a complete example, please refer to the Sample middleware (from sample plugin)
@todo
For a complete example, please refer to the scripts/initData.js
demo script
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature
) - Commit your Changes (
git commit -m 'feat(amazing-feature): add something amazing'
) - Push to the Branch (
git push origin feature/amazing-feature
) - Open a Pull Request
tip: try to use . keyboard shortcut on this repository (or shift+;)
Distributed under the MIT License. See LICENSE.md
for more information.
digisquad.io - [email protected]