cd "My Office Add-in/"
npm install
npm run build
- run server and excel
npm run start
- run add-in
- click Show Taskpane button on Home ribbon
- click the
Run
link in right pane
npm run dev-server
npm run start:desktop
-
enable logging
defaults write com.microsoft.Excel CEFRuntimeLoggingFile -string log.txt
-
view log which is stored in the
~/Library/Containers/com.microsoft.Excel/Data/
directory.tail -f ~/library/Containers/com.microsoft.Excel/Data/log.txtlscd
log is saved as text file.
- install libraries
npm install -g yo generator-office
- initialize project
$ yo office
_-----_ ╭──────────────────────────╮
| | │ Welcome to the Office │
|--(o)--| │ Add-in generator, by │
`---------´ │ @OfficeDev! Let's create │
( _´U`_ ) │ a project together! │
/___A___\ /╰──────────────────────────╯
| ~ |
__'.___.'__
´ ` |° ´ Y `
? Choose a project type: Office Add-in Task Pane project
? Choose a script type: JavaScript
? What do you want to name your add-in? My Office Add-in
? Which Office client application would you like to support? Excel
----------------------------------------------------------------------------------
Creating My Office Add-in add-in for Excel using JavaScript and Taskpane at /Users/tak/dev/dance_of_the_planets/exceljs/My Office Add-in
----------------------------------------------------------------------------------
Takashi Masuyama < mamewotoko@gmail.com > https://mamewo.ddo.jp/