Skip to content

Commit

Permalink
fix: add schema.json in release tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed May 30, 2021
1 parent 676d4c0 commit c474e7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"eslint": "eslint src --ext \".js,.jsx\"",
"eslint:ci": "yarn run eslint -f junit -o test-reports/lint-results.xml",
"eslint:fix": "eslint src --ext \".js, .jsx\" --fix",
"link:app": "ln -s $PWD/dist $SPLUNK_HOME/etc/apps/my-splunk-app",
"link:app": "ln -s $PWD/dist/package_resources $SPLUNK_HOME/etc/apps/my-splunk-app",
"lint": "yarn run eslint && yarn run stylelint",
"lint:ci": "yarn run eslint:ci && yarn run stylelint",
"start": "webpack --watch",
Expand Down
10 changes: 7 additions & 3 deletions ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const webpackMerge = require('webpack-merge');
const baseConfig = require('@splunk/webpack-configs/base.config').default;
const LicenseWebpackPlugin = require('license-webpack-plugin').LicenseWebpackPlugin;
const { LicenseWebpackPlugin } = require('license-webpack-plugin');

module.exports = webpackMerge(baseConfig, {
entry: {
entry_page: path.join(__dirname, 'src/main/webapp/pages/entry_page'),
},
output: {
path: path.join(__dirname, 'dist/appserver/static/js/build'),
path: path.join(__dirname, 'dist/package_resources/appserver/static/js/build'),
filename: '[name].js',
chunkFilename: '[name].js',
},
Expand All @@ -26,7 +26,11 @@ module.exports = webpackMerge(baseConfig, {
new CopyWebpackPlugin([
{
from: path.join(__dirname, 'src/main/resources/splunk'),
to: path.join(__dirname, 'dist'),
to: path.join(__dirname, 'dist/package_resources'),
},
{
from: path.join(__dirname, 'src/main/webapp/schema/schema.json'),
to: path.join(__dirname, 'dist/schema'),
},
]),
],
Expand Down

0 comments on commit c474e7b

Please sign in to comment.