Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge over Yo Office custom functions template to Excel-Custom-Functi…
…ons repo so we don't have two different repos
- Loading branch information
Showing
with
189 additions
and 147 deletions.
- +0 −19 Excel-Custom-Functions.yml
- +1 −1 LICENSE
- +16 −39 README.md
- +3 −1 { → config}/customfunctions.json
- +6 −6 customfunctions.xml → config/manifest.xml
- +10 −0 config/web.config
- +42 −0 config/webpack.config.js
- +0 −69 customfunctions.js
- +7 −12 customfunctions.html → index.html
- +35 −0 package.json
- +69 −0 src/customfunctions.js
| @@ -0,0 +1,10 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <system.webServer> | ||
| <httpProtocol> | ||
| <customHeaders> | ||
| <add name="Access-Control-Allow-Origin" value="*" /> | ||
| </customHeaders> | ||
| </httpProtocol> | ||
| </system.webServer> | ||
| </configuration> |
| @@ -0,0 +1,42 @@ | ||
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
|
|
||
| module.exports = { | ||
| entry: { | ||
| customfunctions: ["./src/customfunctions.js"], | ||
| }, | ||
| resolve: { | ||
| extensions: ['.ts', '.tsx', '.html', '.js'] | ||
| }, | ||
| module: { | ||
| rules: [ | ||
| { | ||
| test: /\.tsx?$/, | ||
| exclude: /node_modules/, | ||
| use: 'ts-loader' | ||
| }, | ||
| { | ||
| test: /\.html$/, | ||
| exclude: /node_modules/, | ||
| use: 'html-loader' | ||
| }, | ||
| { | ||
| test: /\.(png|jpg|jpeg|gif)$/, | ||
| use: 'file-loader' | ||
| } | ||
| ] | ||
| }, | ||
| plugins: [ | ||
| new HtmlWebpackPlugin({ | ||
| template: './index.html', | ||
| chunks: ['customfunctions'] | ||
| }) | ||
| ], | ||
| devServer: { | ||
| port: 3000, | ||
| hot: true, | ||
| inline: true, | ||
| headers: { | ||
| "Access-Control-Allow-Origin": "*" | ||
| } | ||
| } | ||
| }; |
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "name": "excel-custom-functions", | ||
| "version": "1.0.0", | ||
| "description": "Create Excel functions using JavaScript.", | ||
| "main": "customfunctions.js", | ||
| "scripts": { | ||
| "start": "webpack-dev-server --mode development --https --key ./certs/server.key --cert ./certs/server.crt --cacert ./certs/ca.crt --port 3000 --hot --inline", | ||
| "sideload": "office-toolbox sideload -m ./config/<%= projectDisplayName %>-manifest.xml -a Excel", | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/OfficeDev/Excel-Custom-Functions.git" | ||
| }, | ||
| "author": "", | ||
| "license": "ISC", | ||
| "bugs": { | ||
| "url": "https://github.com/OfficeDev/Excel-Custom-Functions/issues" | ||
| }, | ||
| "homepage": "https://github.com/OfficeDev/Excel-Custom-Functions#readme", | ||
| "devDependencies": { | ||
| "typescript": "^2.8.1", | ||
| "office-toolbox": "^0.1.0", | ||
| "@types/office-js": "^0.0.37", | ||
| "@types/jquery": "^2.0.39", | ||
| "file-loader": "^1.1.11", | ||
| "html-loader": "^0.5.5", | ||
| "html-webpack-plugin": "^3.0.7", | ||
| "office-addin-validator": "^1.0.1", | ||
| "ts-loader": "^4.1.0", | ||
| "webpack": "^4.1.1", | ||
| "webpack-cli": "^2.0.12", | ||
| "webpack-dev-server": "^3.1.1" | ||
| } | ||
| } |
Oops, something went wrong.