precedent 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.config/code-server/config.yaml +1 -1
- package/.config/configstore/update-notifier-npm.json +1 -1
- package/Dockerfile_LUXURYCode +69 -0
- package/dist/precedent.js +302 -307
- package/dist/precedent.min.js +29 -27
- package/dist/precedent.min.js.map +1 -1
- package/gulpfile.js +36 -15
- package/package.json +26 -12
- package/source/Precedent-Browser-Shim.js +5 -9
- package/source/StringParser.js +1 -1
- package/source/WordTree.js +7 -7
- package/test/Precedent_tests.js +106 -0
- package/test.js +1 -0
- package/.config/luxury-extras/.vscode/launch.json +0 -46
- package/.config/luxury-extras/Dockerfile +0 -32
- package/.config/luxury-extras/Dockerfile_LUXURYCode +0 -45
- package/.config/luxury-extras/MySQL/Dockerfile +0 -51
- package/.config/luxury-extras/MySQL/Dockerfile_LUXURYCODE +0 -65
- package/.config/luxury-extras/MySQL/MySQL-Laden-Entry.sh +0 -17
- package/.config/luxury-extras/MySQL/MySQL-Security.sql +0 -5
- package/.config/luxury-extras/model/ddl/BookStore.ddl +0 -66
- package/.config/luxury-extras/model/documentation/Dictionary.md +0 -18
- package/.config/luxury-extras/model/documentation/Model-Author.md +0 -20
- package/.config/luxury-extras/model/documentation/Model-Book.md +0 -26
- package/.config/luxury-extras/model/documentation/Model-BookAuthorJoin.md +0 -14
- package/.config/luxury-extras/model/documentation/Model-BookPrice.md +0 -25
- package/.config/luxury-extras/model/documentation/Model-Review.md +0 -22
- package/.config/luxury-extras/model/documentation/ModelChangeTracking.md +0 -17
- package/.config/luxury-extras/model/documentation/README.md +0 -1
- package/.config/luxury-extras/model/documentation/diagram/README.md +0 -1
- package/.config/luxury-extras/model/documentation/diagram/Stricture_Output.dot +0 -13
- package/.config/luxury-extras/model/documentation/diagram/Stricture_Output.png +0 -0
- package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-Author.json +0 -220
- package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-Book.json +0 -268
- package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-BookAuthorJoin.json +0 -172
- package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-BookPrice.json +0 -260
- package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-Review.json +0 -236
- package/.config/luxury-extras/model/json_schema_entities/README.md +0 -1
- package/.config/luxury-extras/model/json_schema_model/BookStore-Extended.json +0 -915
- package/.config/luxury-extras/model/json_schema_model/BookStore-PICT.json +0 -1
- package/.config/luxury-extras/model/json_schema_model/BookStore.json +0 -280
- package/.config/luxury-extras/model/json_schema_model/README.md +0 -1
- package/.config/luxury-extras/model/mysql_create/BookStore-CreateDatabase.mysql.sql +0 -116
- package/.config/luxury-extras/model/mysql_create/README.md +0 -1
- package/DockerfileLUXURYCode +0 -45
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Tables": {
|
|
3
|
-
"Book": {
|
|
4
|
-
"TableName": "Book",
|
|
5
|
-
"Domain": "Default",
|
|
6
|
-
"Columns": [
|
|
7
|
-
{
|
|
8
|
-
"Column": "IDBook",
|
|
9
|
-
"DataType": "ID"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"Column": "GUIDBook",
|
|
13
|
-
"DataType": "GUID"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"Column": "CreateDate",
|
|
17
|
-
"DataType": "DateTime"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"Column": "CreatingIDUser",
|
|
21
|
-
"DataType": "Numeric"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"Column": "UpdateDate",
|
|
25
|
-
"DataType": "DateTime"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"Column": "UpdatingIDUser",
|
|
29
|
-
"DataType": "Numeric"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"Column": "Deleted",
|
|
33
|
-
"DataType": "Boolean"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"Column": "DeleteDate",
|
|
37
|
-
"DataType": "DateTime"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"Column": "DeletingIDUser",
|
|
41
|
-
"DataType": "Numeric"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"Column": "Title",
|
|
45
|
-
"DataType": "String",
|
|
46
|
-
"Size": "200"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"Column": "Type",
|
|
50
|
-
"DataType": "String",
|
|
51
|
-
"Size": "32"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"Column": "Genre",
|
|
55
|
-
"DataType": "String",
|
|
56
|
-
"Size": "128"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"Column": "ISBN",
|
|
60
|
-
"DataType": "String",
|
|
61
|
-
"Size": "64"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"Column": "Language",
|
|
65
|
-
"DataType": "String",
|
|
66
|
-
"Size": "12"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"Column": "ImageURL",
|
|
70
|
-
"DataType": "String",
|
|
71
|
-
"Size": "254"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"Column": "PublicationYear",
|
|
75
|
-
"DataType": "Numeric"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"Description": ""
|
|
79
|
-
},
|
|
80
|
-
"BookAuthorJoin": {
|
|
81
|
-
"TableName": "BookAuthorJoin",
|
|
82
|
-
"Domain": "Default",
|
|
83
|
-
"Columns": [
|
|
84
|
-
{
|
|
85
|
-
"Column": "IDBookAuthorJoin",
|
|
86
|
-
"DataType": "ID"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"Column": "GUIDBookAuthorJoin",
|
|
90
|
-
"DataType": "GUID"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"Column": "IDBook",
|
|
94
|
-
"DataType": "Numeric",
|
|
95
|
-
"Join": "IDBook"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"Column": "IDAuthor",
|
|
99
|
-
"DataType": "Numeric",
|
|
100
|
-
"Join": "IDAuthor"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"Description": ""
|
|
104
|
-
},
|
|
105
|
-
"Author": {
|
|
106
|
-
"TableName": "Author",
|
|
107
|
-
"Domain": "Default",
|
|
108
|
-
"Columns": [
|
|
109
|
-
{
|
|
110
|
-
"Column": "IDAuthor",
|
|
111
|
-
"DataType": "ID"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"Column": "GUIDAuthor",
|
|
115
|
-
"DataType": "GUID"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"Column": "CreateDate",
|
|
119
|
-
"DataType": "DateTime"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"Column": "CreatingIDUser",
|
|
123
|
-
"DataType": "Numeric"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"Column": "UpdateDate",
|
|
127
|
-
"DataType": "DateTime"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"Column": "UpdatingIDUser",
|
|
131
|
-
"DataType": "Numeric"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"Column": "Deleted",
|
|
135
|
-
"DataType": "Boolean"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"Column": "DeleteDate",
|
|
139
|
-
"DataType": "DateTime"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"Column": "DeletingIDUser",
|
|
143
|
-
"DataType": "Numeric"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"Column": "Name",
|
|
147
|
-
"DataType": "String",
|
|
148
|
-
"Size": "200"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"Description": ""
|
|
152
|
-
},
|
|
153
|
-
"BookPrice": {
|
|
154
|
-
"TableName": "BookPrice",
|
|
155
|
-
"Domain": "Default",
|
|
156
|
-
"Columns": [
|
|
157
|
-
{
|
|
158
|
-
"Column": "IDBookPrice",
|
|
159
|
-
"DataType": "ID"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"Column": "GUIDBookPrice",
|
|
163
|
-
"DataType": "GUID"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"Column": "CreateDate",
|
|
167
|
-
"DataType": "DateTime"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"Column": "CreatingIDUser",
|
|
171
|
-
"DataType": "Numeric"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"Column": "UpdateDate",
|
|
175
|
-
"DataType": "DateTime"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"Column": "UpdatingIDUser",
|
|
179
|
-
"DataType": "Numeric"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"Column": "Deleted",
|
|
183
|
-
"DataType": "Boolean"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"Column": "DeleteDate",
|
|
187
|
-
"DataType": "DateTime"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"Column": "DeletingIDUser",
|
|
191
|
-
"DataType": "Numeric"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"Column": "Price",
|
|
195
|
-
"DataType": "Decimal",
|
|
196
|
-
"Size": "8,2"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"Column": "StartDate",
|
|
200
|
-
"DataType": "DateTime"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"Column": "EndDate",
|
|
204
|
-
"DataType": "DateTime"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"Column": "Discountable",
|
|
208
|
-
"DataType": "Boolean"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"Column": "CouponCode",
|
|
212
|
-
"DataType": "String",
|
|
213
|
-
"Size": "16"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"Column": "IDBook",
|
|
217
|
-
"DataType": "Numeric",
|
|
218
|
-
"Join": "IDBook"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
"Description": ""
|
|
222
|
-
},
|
|
223
|
-
"Review": {
|
|
224
|
-
"TableName": "Review",
|
|
225
|
-
"Domain": "Default",
|
|
226
|
-
"Columns": [
|
|
227
|
-
{
|
|
228
|
-
"Column": "IDReviews",
|
|
229
|
-
"DataType": "ID"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"Column": "GUIDReviews",
|
|
233
|
-
"DataType": "GUID"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"Column": "CreateDate",
|
|
237
|
-
"DataType": "DateTime"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"Column": "CreatingIDUser",
|
|
241
|
-
"DataType": "Numeric"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"Column": "UpdateDate",
|
|
245
|
-
"DataType": "DateTime"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"Column": "UpdatingIDUser",
|
|
249
|
-
"DataType": "Numeric"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"Column": "Deleted",
|
|
253
|
-
"DataType": "Boolean"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"Column": "DeleteDate",
|
|
257
|
-
"DataType": "DateTime"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"Column": "DeletingIDUser",
|
|
261
|
-
"DataType": "Numeric"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"Column": "Text",
|
|
265
|
-
"DataType": "Text"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"Column": "Rating",
|
|
269
|
-
"DataType": "Numeric"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"Column": "IDBook",
|
|
273
|
-
"DataType": "Numeric",
|
|
274
|
-
"Join": "IDBook"
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"Description": ""
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This is where the meadow high-level JSON schema of the data model will generate.
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
-- Data Model -- Generated 2022-03-29T11:36:36.684Z
|
|
2
|
-
|
|
3
|
-
-- This script creates the following tables:
|
|
4
|
-
-- Table ----------------------------------------- Column Count ----------------
|
|
5
|
-
-- Book 16
|
|
6
|
-
-- BookAuthorJoin 4
|
|
7
|
-
-- Author 10
|
|
8
|
-
-- BookPrice 15
|
|
9
|
-
-- Review 12
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-- [ Book ]
|
|
14
|
-
CREATE TABLE IF NOT EXISTS
|
|
15
|
-
Book
|
|
16
|
-
(
|
|
17
|
-
IDBook INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
18
|
-
GUIDBook CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
19
|
-
CreateDate DATETIME,
|
|
20
|
-
CreatingIDUser INT NOT NULL DEFAULT '0',
|
|
21
|
-
UpdateDate DATETIME,
|
|
22
|
-
UpdatingIDUser INT NOT NULL DEFAULT '0',
|
|
23
|
-
Deleted TINYINT NOT NULL DEFAULT '0',
|
|
24
|
-
DeleteDate DATETIME,
|
|
25
|
-
DeletingIDUser INT NOT NULL DEFAULT '0',
|
|
26
|
-
Title CHAR(200) NOT NULL DEFAULT '',
|
|
27
|
-
Type CHAR(32) NOT NULL DEFAULT '',
|
|
28
|
-
Genre CHAR(128) NOT NULL DEFAULT '',
|
|
29
|
-
ISBN CHAR(64) NOT NULL DEFAULT '',
|
|
30
|
-
Language CHAR(12) NOT NULL DEFAULT '',
|
|
31
|
-
ImageURL CHAR(254) NOT NULL DEFAULT '',
|
|
32
|
-
PublicationYear INT NOT NULL DEFAULT '0',
|
|
33
|
-
|
|
34
|
-
PRIMARY KEY (IDBook)
|
|
35
|
-
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-- [ BookAuthorJoin ]
|
|
40
|
-
CREATE TABLE IF NOT EXISTS
|
|
41
|
-
BookAuthorJoin
|
|
42
|
-
(
|
|
43
|
-
IDBookAuthorJoin INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
44
|
-
GUIDBookAuthorJoin CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
45
|
-
IDBook INT NOT NULL DEFAULT '0',
|
|
46
|
-
IDAuthor INT NOT NULL DEFAULT '0',
|
|
47
|
-
|
|
48
|
-
PRIMARY KEY (IDBookAuthorJoin)
|
|
49
|
-
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-- [ Author ]
|
|
54
|
-
CREATE TABLE IF NOT EXISTS
|
|
55
|
-
Author
|
|
56
|
-
(
|
|
57
|
-
IDAuthor INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
58
|
-
GUIDAuthor CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
59
|
-
CreateDate DATETIME,
|
|
60
|
-
CreatingIDUser INT NOT NULL DEFAULT '0',
|
|
61
|
-
UpdateDate DATETIME,
|
|
62
|
-
UpdatingIDUser INT NOT NULL DEFAULT '0',
|
|
63
|
-
Deleted TINYINT NOT NULL DEFAULT '0',
|
|
64
|
-
DeleteDate DATETIME,
|
|
65
|
-
DeletingIDUser INT NOT NULL DEFAULT '0',
|
|
66
|
-
Name CHAR(200) NOT NULL DEFAULT '',
|
|
67
|
-
|
|
68
|
-
PRIMARY KEY (IDAuthor)
|
|
69
|
-
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-- [ BookPrice ]
|
|
74
|
-
CREATE TABLE IF NOT EXISTS
|
|
75
|
-
BookPrice
|
|
76
|
-
(
|
|
77
|
-
IDBookPrice INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
78
|
-
GUIDBookPrice CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
79
|
-
CreateDate DATETIME,
|
|
80
|
-
CreatingIDUser INT NOT NULL DEFAULT '0',
|
|
81
|
-
UpdateDate DATETIME,
|
|
82
|
-
UpdatingIDUser INT NOT NULL DEFAULT '0',
|
|
83
|
-
Deleted TINYINT NOT NULL DEFAULT '0',
|
|
84
|
-
DeleteDate DATETIME,
|
|
85
|
-
DeletingIDUser INT NOT NULL DEFAULT '0',
|
|
86
|
-
Price DECIMAL(8,2),
|
|
87
|
-
StartDate DATETIME,
|
|
88
|
-
EndDate DATETIME,
|
|
89
|
-
Discountable TINYINT NOT NULL DEFAULT '0',
|
|
90
|
-
CouponCode CHAR(16) NOT NULL DEFAULT '',
|
|
91
|
-
IDBook INT NOT NULL DEFAULT '0',
|
|
92
|
-
|
|
93
|
-
PRIMARY KEY (IDBookPrice)
|
|
94
|
-
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-- [ Review ]
|
|
99
|
-
CREATE TABLE IF NOT EXISTS
|
|
100
|
-
Review
|
|
101
|
-
(
|
|
102
|
-
IDReviews INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
103
|
-
GUIDReviews CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
104
|
-
CreateDate DATETIME,
|
|
105
|
-
CreatingIDUser INT NOT NULL DEFAULT '0',
|
|
106
|
-
UpdateDate DATETIME,
|
|
107
|
-
UpdatingIDUser INT NOT NULL DEFAULT '0',
|
|
108
|
-
Deleted TINYINT NOT NULL DEFAULT '0',
|
|
109
|
-
DeleteDate DATETIME,
|
|
110
|
-
DeletingIDUser INT NOT NULL DEFAULT '0',
|
|
111
|
-
Text TEXT,
|
|
112
|
-
Rating INT NOT NULL DEFAULT '0',
|
|
113
|
-
IDBook INT NOT NULL DEFAULT '0',
|
|
114
|
-
|
|
115
|
-
PRIMARY KEY (IDReviews)
|
|
116
|
-
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This is where the MYSQL Create statement for the data model will generate.
|
package/DockerfileLUXURYCode
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Use the codercom/code-server image
|
|
2
|
-
FROM codercom/code-server:latest
|
|
3
|
-
MAINTAINER steven velozo
|
|
4
|
-
|
|
5
|
-
VOLUME /home/coder/.config
|
|
6
|
-
VOLUME /home/coder/.vscode
|
|
7
|
-
|
|
8
|
-
RUN echo "...installing debian dependencies..."
|
|
9
|
-
RUN sudo apt update
|
|
10
|
-
RUN sudo apt install vim curl tmux -y
|
|
11
|
-
|
|
12
|
-
RUN echo "Building development image..."
|
|
13
|
-
|
|
14
|
-
RUN echo "...installing vscode extensions..."
|
|
15
|
-
RUN code-server --install-extension ritwickdey.LiveServer \
|
|
16
|
-
code-server --install-extension hbenl.vscode-mocha-test-adapter \
|
|
17
|
-
code-server --install-extension hbenl.vscode-test-explorer \
|
|
18
|
-
code-server --install-extension hbenl.test-adapter-converter \
|
|
19
|
-
code-server --install-extension daylerees.rainglow \
|
|
20
|
-
code-server --install-extension oderwat.indent-rainbow \
|
|
21
|
-
code-server --install-extension evan-buss.font-switcher \
|
|
22
|
-
code-server --install-extension vscode-icons-team.vscode-icons \
|
|
23
|
-
code-server --install-extension bengreenier.vscode-node-readme \
|
|
24
|
-
code-server --install-extension bierner.color-info \
|
|
25
|
-
code-server --install-extension dbaeumer.vscode-eslint \
|
|
26
|
-
code-server --install-extension PKief.material-icon-theme
|
|
27
|
-
|
|
28
|
-
RUN echo "...mapping library specific volumes..."
|
|
29
|
-
# Volume mappings for code
|
|
30
|
-
VOLUME /home/coder/YOURLIBRARYNAMEHERE
|
|
31
|
-
# VOLUME /home/coder/YOURLIBRARYNAMEHERE/node_modules
|
|
32
|
-
|
|
33
|
-
SHELL ["/bin/bash", "-c"]
|
|
34
|
-
USER coder
|
|
35
|
-
|
|
36
|
-
RUN echo "...installing node version manager..."
|
|
37
|
-
# Because there is a .bashrc chicken/egg problem, we will create one here to simulate logging in. This is not great.
|
|
38
|
-
RUN touch ~/.bashrc && chmod +x ~/.bashrc
|
|
39
|
-
RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
|
|
40
|
-
|
|
41
|
-
RUN echo "...installing node version 14 as the default..."
|
|
42
|
-
RUN . ~/.nvm/nvm.sh && source ~/.bashrc && nvm install 14
|
|
43
|
-
RUN . ~/.nvm/nvm.sh && source ~/.bashrc && nvm alias default 14
|
|
44
|
-
|
|
45
|
-
WORKDIR /home/coder/YOURLIBRARYNAMEHERE
|