generator-dnn-spa-gulp-react

所属分类:人工智能/神经网络/深度学习
开发工具:C#
文件大小:39KB
下载次数:0
上传日期:2015-10-30 15:16:33
上 传 者sh-1993
说明:  带Gulp和React的DNN SPA模块的Yeoman发生器
(Yeoman generator for a DNN SPA module with Gulp and React)

文件列表:
.editorconfig (197, 2015-10-30)
.jshintrc (275, 2015-10-30)
.travis.yml (72, 2015-10-30)
.yo-rc.json (31, 2015-10-30)
generators (0, 2015-10-30)
generators\app (0, 2015-10-30)
generators\app\index.js (4458, 2015-10-30)
generators\app\util.js (959, 2015-10-30)
package.json (930, 2015-10-30)
template (0, 2015-10-30)
template\App_LocalResources (0, 2015-10-30)
template\App_LocalResources\ClientResources.resx (5698, 2015-10-30)
template\App_LocalResources\SharedResources.resx (5698, 2015-10-30)
template\Common (0, 2015-10-30)
template\Common\AuditableEntity.cs (1021, 2015-10-30)
template\Common\ContextSecurity.cs (931, 2015-10-30)
template\Common\Globals.cs (460, 2015-10-30)
template\Common\ISettingsStore.cs (346, 2015-10-30)
template\Common\Localization.cs (11344, 2015-10-30)
template\Common\ModuleScopedSettings.cs (493, 2015-10-30)
template\Common\ModuleSettings.cs (1710, 2015-10-30)
template\Common\PortalScopedSettings.cs (472, 2015-10-30)
template\Common\ProjectApiController.cs (677, 2015-10-30)
template\Common\ProjectAuthorizeAttribute.cs (1803, 2015-10-30)
template\Common\RouteMapper.cs (877, 2015-10-30)
template\Common\StringBasedSettings.cs (3348, 2015-10-30)
template\Common\TabModuleScopedSettings.cs (508, 2015-10-30)
template\Controllers (0, 2015-10-30)
template\Controllers\ModuleController.cs (1349, 2015-10-30)
template\Controllers\SettingsController.cs (961, 2015-10-30)
template\Controllers\WidgetsController.cs (2302, 2015-10-30)
template\Controllers\WidgetsController_Services.cs (2898, 2015-10-30)
template\Data (0, 2015-10-30)
template\Data\RepositoryImpl.cs (4549, 2015-10-30)
template\Models (0, 2015-10-30)
... ...

# DNN SPA Module generator with Gulp and React > A [Yeoman](http://yeoman.io) generator This generator scaffolds out a module leveraging DNN's SPA module pattern. Included are references to Gulp and React so if you're using those then you'll hit the road running. This generator *must be run in the DesktopModules folder*. It will create subfolders for the organization and module name based on your input. It will allow you to store common settings such as name, email etc to the generator's settings so you don't need to type them in every time you create a module. ## Getting Started ### What is Yeoman? (skip if you know Yeoman and have it installed) Head over to the [Yeoman site](http://yeoman.io) for in-depth info. Basically it is a code generator based on templates called "generators". You can install Yeoman using npm (i.e. you also need Node js installed first!) as follows: ```bash npm install -g yo ``` ### Installing the DNN SPA module generator To install this generator, run: ```bash npm install -g generator-dnn-spa-gulp-react ``` ### Use Now, head over to the DesktopModules folder of your project, start a shell and type: ```bash yo dnn-spa-gulp-react ``` This will prompt you with a few questions, some of which are mandatory to answer as they are used to configure the module: 1. Project name. Use a short name without special characters or spaces as it is used for namespaces and folders. (e.g. "Map") 2. Primary object name. This is the name of the primary object of your module that you're managing. You can leave this as-is. Again a short name without special characters or spaces (e.g. MapPoints). 3. Organization name. Used to create the subfolder and namespaces as well. So like the above without special characters or spaces, please (e.g. DNNConnect). 4. Url. Url of your organization or any other url you'd like to use for this project. It's used in the DNN manifest. 5. Your name. Used in the manifest. 6. Email. Used in the manifest. Finally the generator will ask if you wish to overwrite the old settings in the template so that any subsequent module generations will prompt the same name, email, etc. ## License MIT

近期下载者

相关文件


收藏者