A base project for rapidly building Office Add-ins with Babel, Sass, and Browsersync.
Download a suitable package from the official page and follow the instructions.
Please make sure that your version supports ES6.
Windows: Node.js command prompt
OSX/Linux: Terminal
In your console, enter the following command:
npm install -g bower gulp yo generator-office
This will install the global project dependencies Bower, Gulp, Yeoman, and generator-office.
In your console, change the current working directory to the office-addin-base
project folder, and enter the following commands in your console:
npm install
bower install
This will install all local project dependencies as configured in package.json
(npm) and bower.json
(bower).
Enter the following command in your console:
yo office
Follow the instructions, and enter the following values when prompted:
Technology to use
Manifest.xml only (no application source files)
Add-in start URL
https://localhost:8443/
This will create a manifest that can be loaded in all supported Office products.
Creates a debug build in /debug
.
Runs the build
task, and serves the debug build at https://localhost:8443/
.
Creates a production build in /ship
.
Runs the ship-build
task, and uploads the contents of /ship
to an FTP server (default directory: /site/wwwroot
).
For this to work, you need to create a file called ftp.json
in the root directory:
{
"host": "...",
"user": "...",
"pass": "..."
}
TODO