https://github.com/1337programming/monoscope-angular
AngularJS code-generation shortcuts written with Monoscope.
https://github.com/1337programming/monoscope-angular
Last synced: 8 months ago
JSON representation
AngularJS code-generation shortcuts written with Monoscope.
- Host: GitHub
- URL: https://github.com/1337programming/monoscope-angular
- Owner: 1337programming
- Created: 2015-09-30T01:34:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T06:41:05.000Z (over 10 years ago)
- Last Synced: 2025-01-08T07:42:48.794Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 230 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# monoscope-angular
*AngularJS code-generation shortcuts written with Monoscope.*

## Installation
Run the command `npm i monoscope-angular --save-dev` to install. Note: This is a development tool, not a production tool.
For an initial project setup with this plugin, please see [monoscope-angular-starter](https://github.com/1337programming/monoscope-angular-starter "Monoscope Angular Starter").
## Usage
Simply add the following code to a task within your application:
```javascript
var monoscopeAngular = require('monoscope-angular');
monoscopeAngular.run(config);
```
To get the list of shortcuts provided by this plugin, use the following:
```javascript
var shortcuts = monoscopeAngular.getShortcuts(config);
```
These shortcuts can then be added to to create application-specific shortcuts.
## Configuration
The config object can include the following properties:
- title (Default 'Monoscope AngularJS')
- port (Default 8045)
- color (Default blue)
- defaultConstantFilePath (Default 'src/:dasherizedModuleName/:dasherizedConstantName.constant.js')
- defaultControllerFilePath (Default 'src/:dasherizedModuleName/:dasherizedControllerName.controller.js')
- defaultDecoratorFilePath (Default 'src/:dasherizedModuleName/:dasherizedDecoratorName.decorator.js')
- defaultDirectiveFilePath (Default 'src/:dasherizedModuleName/:dasherizedDirectiveName.directive.js')
- defaultFactoryFilePath (Default 'src/:dasherizedModuleName/:dasherizedFactoryName.factory.js')
- defaultFilterFilePath (Default 'src/:dasherizedModuleName/:dasherizedFilterName.filter.js')
- defaultModuleFilePath (Default 'src/:dasherizedModuleName/:dasherizedModuleName.module.js')
- defaultProviderFilePath (Default 'src/:dasherizedModuleName/:dasherizedProviderName.provider.js')
- defaultServiceFilePath (Default 'src/:dasherizedModuleName/:dasherizedServiceName.service.js')
- defaultValueFilePath (Default 'src/:dasherizedModuleName/:dasherizedValueName.value.js')
- defaultViewFilePath (Default 'src/:dasherizedModuleName/:dasherizedViewName.html')
## Shortcuts
- Create a Module
- Copy State to Clipboard
- Create a Controller
- Create a View
- Create a Service
- Create a Filter
- Create a Factory
- Create a Provider
- Create a Directive
- Create a Decorator
- Create a Constant
- Create a Value