This is the slush generator for AngularJS (ES6) Apps created in Webpack way and hosted on Salesforce.com
Install slush
and slush-angular-sfdc-webpack
globally:
$ npm install -g slush slush-angular-sfdc-webpack
Navigate to your project folder and scaffold AngularJS apps structure
$ cd my-sfdc-project
$ slush angular-sfdc-webpack:package
While creating a package you can enter Salesforce credentials to your project or you need to provide it after package scaffolding. To do that, open my-sfdc-project/package/config/jsforce.config.js
file and edit it with valid username, password and security token.
Then go to apps folder and create a new application, it will create a Visualforce page with corresponding StaticResource where the application files are stores
$ cd package/apps
$ slush angular-sfdc-webpack:app
The task for a new application is default, you can run it in the next way -
$ slush angular-sfdc-webpack
The generator has different tasks:
package
: create a folders structure for AngularJS appsapp
: scaffold a new AngularJS application. Run this task fromapps
folder of the packagecomponent
: create a folder structure for a componentservice
: create a new service
Slush is a tool that uses Gulp for project scaffolding.
Slush does not contain anything "out of the box", except the ability to locate installed slush generators and to run them with liftoff.
To find out more about Slush, check out the documentation.
See the CONTRIBUTING Guidelines
If you have any problem or suggestion please open an issue here.
The MIT License
Copyright (c) 2017, Ruslan Kurchenko
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.