UNPKG

3.05 kBJavaScriptView Raw
1// Core functions
2
3const useTemplatesFrom = require('./useTemplatesFrom');
4const pushInstruction = require('./pushInstruction');
5const pushInstructions = require('./pushInstructions');
6const getInstructions = require('./getInstructions');
7const replaceInstructions = require('./replaceInstructions');
8const reverseInstruction = require('./reverseInstruction');
9const { setExecutorOption } = require('./executorOptions');
10const createInstShortcut = require('./createInstShortcut');
11const resetExecutor = require('./resetExecutor');
12
13// Utility functions
14
15const iterateTemplateFilesFromDirectory =
16 require('./iterateTemplateFilesFromDirectory');
17
18// Instruction shortcuts
19
20const createFile = createInstShortcut('createFile');
21const deleteFile = createInstShortcut('deleteFile');
22const appendFile = createInstShortcut('appendFile');
23const detachFromFile = createInstShortcut('detachFromFile');
24const updateFile = createInstShortcut('updateFile');
25const rollbackFile = createInstShortcut('rollbackFile');
26const updateJSONFile = createInstShortcut('updateJSONFile');
27const rollbackJSONFile = createInstShortcut('rollbackJSONFile');
28const installDependency = createInstShortcut('installDependency');
29const removeDependency = createInstShortcut('removeDependency');
30const runShellCommand = createInstShortcut('runShellCommand');
31const undoShellCommand = createInstShortcut('undoShellCommand');
32const keepDirectoryInGit = createInstShortcut('keepDirectoryInGit');
33
34const createFiles = createInstShortcut('createFiles');
35const deleteFiles = createInstShortcut('deleteFiles');
36const appendFiles = createInstShortcut('appendFiles');
37const detachFromFiles = createInstShortcut('detachFromFiles');
38const updateFiles = createInstShortcut('updateFiles');
39const rollbackFiles = createInstShortcut('rollbackFiles');
40const updateJSONFiles = createInstShortcut('updateJSONFiles');
41const rollbackJSONFiles = createInstShortcut('rollbackJSONFiles');
42const installDependencies = createInstShortcut('installDependencies');
43const removeDependencies = createInstShortcut('removeDependencies');
44const runShellCommands = createInstShortcut('runShellCommands');
45const undoShellCommands = createInstShortcut('undoShellCommands');
46const keepDirectoriesInGit = createInstShortcut('keepDirectoriesInGit');
47
48module.exports = {
49
50 // Core functions
51
52 useTemplatesFrom,
53 pushInstruction,
54 pushInstructions,
55 getInstructions,
56 replaceInstructions,
57 reverseInstruction,
58 setExecutorOption,
59 resetExecutor,
60
61 // Utility functions
62
63 iterateTemplateFilesFromDirectory,
64
65 // Instruction shortcuts
66
67 createFile,
68 deleteFile,
69 appendFile,
70 detachFromFile,
71 updateFile,
72 rollbackFile,
73 updateJSONFile,
74 rollbackJSONFile,
75 installDependency,
76 removeDependency,
77 runShellCommand,
78 undoShellCommand,
79 keepDirectoryInGit,
80
81 createFiles,
82 deleteFiles,
83 appendFiles,
84 detachFromFiles,
85 updateFiles,
86 rollbackFiles,
87 updateJSONFiles,
88 rollbackJSONFiles,
89 installDependencies,
90 removeDependencies,
91 runShellCommands,
92 undoShellCommands,
93 keepDirectoriesInGit
94};