Super easy, efficient and agnostic state management for Javascript
// Install
yarn add metaphasejs // Yarn
npm install metaphasejs // NPM
// Build
yarn / npm build
// Test
yarn / npm test
- Without gzip compression: Link
- Fork it
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- IMPORTANT: at this moment MetaphaseJS is not totally compatible with create-react-app (CRA) . The use of
constructor.name
breaks the compiled code by the CRA build script. The uglifying process has to be made with an ad hoc script calledbuild.js
. This script avoids to mangle funcion names using the optionmangle: {keep_fnames: true}
. Open an issue for more information. Pull requests are welcome. - At this moment there are not polyfills for old browsers, but there will be in the future.
- If Typescript and decorators are used, its configuration file
tsconfig.json
must have:experimentalDecorators = true
emitDecoratorMetadata = true
- If flag
strict = true
is used, model properties (columns in db) must be initialized with values
MIT