new options that help usage in non-meteor projects (e.g. react native). Here with the defaults:
storiesFolder: .stories
: foldername for storybook files. Some projects don't like the dot in the foldername, so you can change that here.jsxExtension: jsx
: change to js in react-native apps.snakeCaseFileNames: true
, if false, component-files etc. are created with PascalCase or camelCase (e.g. actions)
- Add option
modulesPath
to specify the folder where mantra-modules are created (defaults to client/modules). You can setmodulesPath: imports/modules
to prevent meteor from eagerly load modules. This is needed if you use codesplitting in meteor 1.5. (@macrozone)
- Add options generateComponentTests and generateContainerTests that allows to specify whether component unit tests should be created (defaults to true) (@macrozone)
- Add missing dependency (#108) @StorytellerCZ
- Avoid creating a new project when already inside a Meteor project (#103) @thancock20
- Stop updating index.js if a file already exists (#99) @thancock20
- Make Storybook optional (#98)
- Customizable templates for all entities
- Customizable templates for tests (@macrozone)
- Storybook integration (@macrozone)
- Stop generating files if file name is empty (@fermuch)
- Stop destroying files if file name is empty (@macrozone)
- Astronomy support (@PolGuixe)
- Fix generator error for apps created with mantra-cli version prior to 0.3.10 (#62)
- Generate tests for
action
,component
, andcontainer
. - Add constructor to classical React components (#57)
- Update ESLint to
2.x.x
(#56). @haizi-zh - Fix the case of collection name in
index.js
(#55) - Generate libs directory under modules. (#51)
- Initialize methods (#50)
- Use the latest Meteor version for apps created by
mantra create
(#47) @merlinpatt
- Make sure destroy command updates index.js correctly (fix #41)
- Stop importing SimpleSchema by default (fix #40)
- Fix the syntax error in the generated
package.json
file (#39)
- Add verbose option for
mantra create
- Include ESLint when generating a new app
- Fix file path in the import statements (#38, 9dc97f)
- Bump the Meteor version to Meteor 1.3-rc.1
- Better error handling for
mantra create
by checking the required argument (#31) @mayankchhabra
-
Make collection2 optional when generating a collection. You can generate a collection with collection2 by using
-schema
option with a valuecollection
. -
Fix the alias for
--use-class
option for components. It is now-c
.