Project

General

Profile

Build script » History » Version 3

Luke Murphey, 02/14/2017 10:44 PM

1 1 Luke Murphey
h1. Build script
2 1 Luke Murphey
3 1 Luke Murphey
h2. Benefits
4 3 Luke Murphey
5 2 Luke Murphey
# Creates a Splunk app file easily (without having to run a bunch of CLI tools manually). It will also populate the build file with things like the build date and perform minification.
6 2 Luke Murphey
# Deploys your changes to a local Splunk install for testing your changes (avoids manually copying the files over).
7 2 Luke Murphey
# 
8 1 Luke Murphey
9 1 Luke Murphey
10 1 Luke Murphey
h2. Structure code layout
11 1 Luke Murphey
12 1 Luke Murphey
h2. Add build script
13 1 Luke Murphey
14 1 Luke Murphey
h2. Make default.properties file
15 1 Luke Murphey
16 1 Luke Murphey
h2. Make local.properties file
17 1 Luke Murphey
18 1 Luke Murphey
h2. Use the build script
19 1 Luke Murphey
20 1 Luke Murphey
Targets for publishing the Splunk app (the main one):
21 1 Luke Murphey
* package
22 1 Luke Murphey
23 1 Luke Murphey
Targets that help you while developing Splunk apps:
24 1 Luke Murphey
* splunk.deploy
25 1 Luke Murphey
* splunk.start, splunk.restart, splunk.stop, splunk.restart_web
26 1 Luke Murphey
* splunk.deploy_and_refresh
27 1 Luke Murphey
28 1 Luke Murphey
Targets for testing:
29 1 Luke Murphey
* test.run_unit