Write your SuiteCommerce Advanced modules and SuiteCommerce extensions using TypeScript.
- Supports SCA:
gulp deploy
,gulp local
,gulp unit-test
- Supports SC Extensions:
gulp extension:deploy
,gulp extension:local
- Write latest TypeScript JavaScript language version code, use classes, interfaces, async/await for promises, arrow functions, string templates, etc
- TypeChecking for views, routers, models, collections, extension components, and high level SCA APIs.
- Using TSX you can type check your templates too! See sample project
- Output JS code is clean, no performance impact, and ES5 support
This repository is mostly divided in two parts, projects implementing SuiteCommerce API type descriptions (Typings) and Developer tools to transform TypeScript projects, into SuiteCommerce extensions or SCA modules:
Special developer tools convert a TS project into a SC / SCA module. See docs in:
- (https://github.com/cancerberoSgx/suitecommerce-types/tree/master/ts-devtools)[sc-tsc]: SuiteCommerce TypeScript Compiler and Developer tools. Transform TypeScript projects into valid JavaScript AMD projects compatible with SuiteCommerce extensions, SuiteCommerce Advanced. Command line based developer tools.
TypeScript to SuiteCommerce code transformation and developer tools: https://github.com/cancerberoSgx/suitecommerce-types/tree/master/ts-devtools
SuiteCommerce types, globals, SCA, components:
- (https://github.com/cancerberoSgx/suitecommerce-types/tree/master/sc-types-frontend)[sc-types-frontend] provides typings for public and no so public SuiteCommerce / SuiteCommerce Advanced front-end JavaScript APIs.
- (https://github.com/cancerberoSgx/suitecommerce-types/tree/master/sc-types-frontend-extras)[sc-types-frontend-extras] provides extra tools and technology, for example, JSX/TSX support (without react or any library)
- (https://github.com/cancerberoSgx/suitecommerce-types/tree/master/sc-types-frontend-core)[sc-types-frontend-core] (exposed by sc-types-frontend) implements SuiteCommerce typings for its APIs (components, SCA, etc) and includes typings of SuiteCommerce libraries like Backbone, underscore, jQuery, etc.
- (https://github.com/cancerberoSgx/suitecommerce-types/tree/master/sc-types-frontend-globals)[sc-types-frontend-globals] declares needed SuiteCommerce/NetSuite related globals so to support both user's code and intermediary TS code generated by sc-tsc
With views, router, models, collections. Using SC standard technologies like Handlebars, Sass. Supports SCA gulp gulp local
and gulp unit-test
command:
https://github.com/cancerberoSgx/suitecommerce-types/blob/master/sample-projects/backbone-simple