-
Notifications
You must be signed in to change notification settings - Fork 6
/
DevTools.nb
206 lines (172 loc) · 6.95 KB
/
DevTools.nb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
Notebook[{
Cell[CellGroupData[{
Cell["test", \
"Subsubsection",ExpressionUUID->"c37b4342-abe7-4c9a-abab-9cc1ba45b03f"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"PacletFind", "[", "\"\<DevTools\>\"", "]"}]], "Input",
CellLabel->"In[2]:=",ExpressionUUID->"8d1b4ab1-930a-4b0f-8f86-5d8fb746d295"],
Cell[BoxData[
RowBox[{"{", "}"}]], "Output",
CellLabel->"Out[2]=",ExpressionUUID->"361ef04d-5662-4577-9117-ed21af03ed41"]
}, Open ]],
Cell[BoxData[
RowBox[{"PacletUninstall", "/@",
RowBox[{"PacletFind", "[", "\"\<DevTools\>\"", "]"}]}]], "Input",
CellLabel->"In[12]:=",ExpressionUUID->"5e42e6f1-d125-4f09-91b2-b2a1bde0fe8c"],
Cell[BoxData[
RowBox[{"Needs", "@", "\"\<PacletManager`\>\""}]], "Input",
CellLabel->"In[1]:=",ExpressionUUID->"83c58c26-59ef-4941-b2f7-442138042837"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"SetDirectory", "@",
RowBox[{"NotebookDirectory", "[", "]"}]}]], "Input",
CellLabel->"In[2]:=",ExpressionUUID->"b7d2e21f-0df9-4a94-8c44-3d3946b79328"],
Cell[BoxData["\<\"E:\\\\Idea Projects\\\\DevTools\"\>"], "Output",
CellLabel->"Out[2]=",ExpressionUUID->"4f9b4fd9-8d16-4d62-9bdb-bedd6fe48203"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"PacletDirectoryAdd", "@",
RowBox[{"NotebookDirectory", "[", "]"}]}]], "Input",
CellLabel->"In[3]:=",ExpressionUUID->"44eff276-0e68-46fa-a4ee-e4cfbbfb16f1"],
Cell[BoxData[
RowBox[{"{", "\<\"E:\\\\Idea Projects\\\\DevTools\\\\\"\>", "}"}]], "Output",
CellLabel->"Out[3]=",ExpressionUUID->"64a2989c-b7c5-4e3b-918c-22c2b9fd28f5"]
}, Open ]],
Cell[BoxData[
RowBox[{"Needs", "@", "\"\<DevTools`\>\""}]], "Input",
CellLabel->"In[4]:=",ExpressionUUID->"a5b2a260-a612-4ea1-b216-0916bbde9e9a"],
Cell[BoxData[
RowBox[{
RowBox[{"CodeTemplatesReset", "[", "]"}],
";"}]], "Input",ExpressionUUID->"8dd8f920-2985-411e-b2d2-2318e4b0792f"],
Cell[BoxData[
RowBox[{
RowBox[{"CurrentValue", "[",
RowBox[{"$FrontEnd", ",", "\"\<DefaultPackageStyleDefinitions\>\""}],
"]"}], "=",
"Inherited"}]], \
"Input",ExpressionUUID->"2213dc04-e2eb-472b-befc-2cc351452d68"],
Cell[BoxData[
RowBox[{
RowBox[{"CurrentValue", "[",
RowBox[{"$FrontEnd", ",", "\"\<DefaultPackageStyleDefinitions\>\""}],
"]"}], "=",
RowBox[{"FrontEnd`FileName", "[",
RowBox[{"{",
RowBox[{"\"\<DevTools\>\"", ",", "\"\<DevPackageDark.nb\>\""}], "}"}],
"]"}]}]], "Input",ExpressionUUID->"8fc7d430-50d9-4264-b39e-df0c7f9e7a67"],
Cell[BoxData[
RowBox[{"Get", "[",
RowBox[{"\"\<DevTools`\>\"", ",",
RowBox[{"Path", "\[Rule]",
RowBox[{"NotebookDirectory", "[", "]"}]}]}],
"]"}]], "Input",ExpressionUUID->"cf97cb59-cc1d-4e30-bc5a-87350369d5b0"],
Cell[BoxData[
RowBox[{
RowBox[{
RowBox[{"PacletFind", "[", "\"\<DevTools\>\"", "]"}], "[",
RowBox[{"[", "2", "]"}], "]"}], "//",
"PacletUninstall"}]], \
"Input",ExpressionUUID->"69244c21-9479-4654-a01c-affd72ef29b0"],
Cell[BoxData[
RowBox[{"PacletUninstall", "/@",
RowBox[{
"PacletFind", "[", "\"\<DevTools\>\"",
"]"}]}]], "Input",ExpressionUUID->"76f29339-8f6a-441b-a6b7-294ad52a0424"],
Cell[BoxData[
RowBox[{"<<",
"MPM`"}]], "Input",ExpressionUUID->"f85edcad-936c-41c9-8b7d-9c1261cbf6e6"],
Cell[BoxData[
RowBox[{"MPMInstall", "[",
RowBox[{"\"\<kubapod\>\"", ",", "\"\<devtools\>\""}],
"]"}]], "Input",ExpressionUUID->"fbf4d0a4-14ef-4f89-87b9-b15b11bf176a"],
Cell[BoxData["\[AliasDelimiter]"], \
"Input",ExpressionUUID->"e286a329-4554-4852-b3cb-c6134ddb2567"],
Cell[BoxData[
RowBox[{"<<",
"DevTools`"}]], \
"Input",ExpressionUUID->"2a6cf547-8f39-440d-89a2-6f44e6fc5aa2"],
Cell[BoxData[
RowBox[{
RowBox[{"CodeTemplatesReset", "[", "]"}],
";"}]], "Input",ExpressionUUID->"4f6a379d-d80d-4d4b-b3ad-ba95f776fdce"]
}, Open ]],
Cell[CellGroupData[{
Cell["Build", \
"Section",ExpressionUUID->"3c1ed785-d1e1-4108-aba0-082985cb2aef"],
Cell[BoxData[{
RowBox[{"Needs", "@", "\"\<DevTools`\>\""}], "\[IndentingNewLine]",
RowBox[{"Get", "[",
RowBox[{"\"\<Dev`\>\"", ",",
RowBox[{"Path", "\[Rule]",
RowBox[{"NotebookDirectory", "[", "]"}]}]}],
"]"}]}], "Input",ExpressionUUID->"8487fcae-96b1-4543-93f1-e5f354f37a05"],
Cell[BoxData[
RowBox[{"Block", "[",
RowBox[{
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{"Internal`$ContextMarks", "=", "True"}], "\[IndentingNewLine]",
"}"}], "\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{
RowBox[{"Export", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"FileNameJoin", "[",
RowBox[{"{",
RowBox[{
RowBox[{"NotebookDirectory", "[", "]"}], ",", "\"\<DevTools\>\"",
",", "\"\<FrontEnd\>\"", ",", "\"\<StyleSheets\>\"", ",",
"\"\<DevTools\>\"", ",", "\"\<DevPackageDark.nb\>\""}], "}"}],
"]"}], "\[IndentingNewLine]", ",",
RowBox[{"DevPackage", "[", "True", "]"}]}], "\[IndentingNewLine]",
"]"}], "\[IndentingNewLine]", ",", "\[IndentingNewLine]",
RowBox[{"Export", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"FileNameJoin", "[",
RowBox[{"{",
RowBox[{
RowBox[{"NotebookDirectory", "[", "]"}], ",", "\"\<DevTools\>\"",
",", "\"\<FrontEnd\>\"", ",", "\"\<StyleSheets\>\"", ",",
"\"\<DevTools\>\"", ",", "\"\<DevPackage.nb\>\""}], "}"}], "]"}],
"\[IndentingNewLine]", ",",
RowBox[{"DevPackage", "[", "False", "]"}]}], "\[IndentingNewLine]",
"]"}]}], "\[IndentingNewLine]", "}"}]}], "\[IndentingNewLine]",
"]"}]], "Input",ExpressionUUID->"19795f17-8f22-413e-8821-88f5d1236984"],
Cell[BoxData[
RowBox[{"CreateDocument", "[", "\[IndentingNewLine]", " ",
RowBox[{
RowBox[{"ExpressionCell", "[",
RowBox[{"\"\<test\>\"", ",", "\"\<Code\>\""}], "]"}],
"\[IndentingNewLine]", ",",
RowBox[{"StyleDefinitions", "\[Rule]",
RowBox[{"DevPackage", "[", "True", "]"}]}]}], "\[IndentingNewLine]",
"]"}]], "Input",ExpressionUUID->"4cc35c6f-ccf9-44c0-91bf-ed550c0b57a7"],
Cell[BoxData[
RowBox[{
RowBox[{"DevTools`Events`ResetResource", "[",
RowBox[{"DevTools`Events`$paclet", ",", "\"\<CodeTemplates\>\""}], "]"}],
"\n"}]], "Input",ExpressionUUID->"74980e4e-f2a1-4cfa-b990-5f43ac314f74"],
Cell[BoxData[
RowBox[{"codeTemplateItemLabel",
"\n"}]], "Input",ExpressionUUID->"b468fa77-8cf6-48ca-87be-37a6b524e88f"],
Cell[BoxData[
RowBox[{"DevTools`Events`codeTemplateItemLabel", "/@",
RowBox[{"DevTools`Events`NeedsResource", "[",
RowBox[{"DevTools`Events`$paclet", ",", "\"\<NotebookActions\>\""}],
"]"}]}]], "Input",ExpressionUUID->"8bcabe01-3954-4968-8f03-41a572103188"],
Cell[BoxData[
RowBox[{"DevTools`Events`ResetResource", "[",
RowBox[{"DevTools`Events`$paclet", ",", "\"\<NotebookActions\>\""}],
"]"}]], "Input",ExpressionUUID->"49a7ac72-2cc7-4bac-9653-c01bf4e07c2b"]
}, Open ]]
},
WindowSize->{866, 1022},
WindowMargins->{{Automatic, 0}, {Automatic, 0}},
PrivateNotebookOptions->{"FileOutlineCache"->False},
TrackCellChangeTimes->False,
FrontEndVersion->"12.1 for Microsoft Windows (64-bit) (June 19, 2020)",
StyleDefinitions->"Default.nb",
ExpressionUUID->"5b1ab475-d48a-4cf3-ab2e-be14c90aeacc"
]