ducimusipsa 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierignore +2 -0
- package/.travis.yml +34 -0
- package/.vscode/launch.json +24 -0
- package/.vscode/settings.json +3 -0
- package/demos/ago-node-cli/README.md +29 -0
- package/demos/ago-node-cli/ago.js +32 -0
- package/demos/ago-node-cli/index.js +11 -0
- package/demos/ago-node-cli/lib/item-export-command.js +48 -0
- package/demos/ago-node-cli/lib/item-search-command.js +35 -0
- package/demos/ago-node-cli/package-lock.json +180 -0
- package/demos/ago-node-cli/package.json +30 -0
- package/demos/attachments/README.md +5 -0
- package/demos/attachments/index.html +164 -0
- package/demos/attachments/package-lock.json +182 -0
- package/demos/attachments/package.json +18 -0
- package/demos/batch-geocoder-node/NYC_Restaurant_Inspection_Results.csv +100 -0
- package/demos/batch-geocoder-node/README.md +15 -0
- package/demos/batch-geocoder-node/batch-geocode.js +115 -0
- package/demos/batch-geocoder-node/config-template.js +18 -0
- package/demos/batch-geocoder-node/package-lock.json +109 -0
- package/demos/batch-geocoder-node/package.json +38 -0
- package/demos/express/README.md +15 -0
- package/demos/express/config.json.template +3 -0
- package/demos/express/package-lock.json +428 -0
- package/demos/express/package.json +18 -0
- package/demos/express/server.js +33 -0
- package/demos/feature-service-browser/README.md +6 -0
- package/demos/feature-service-browser/index.html +122 -0
- package/demos/feature-service-browser/package-lock.json +182 -0
- package/demos/feature-service-browser/package.json +18 -0
- package/demos/geocoder-browser/README.md +10 -0
- package/demos/geocoder-browser/config.js.template +1 -0
- package/demos/geocoder-browser/index.html +131 -0
- package/demos/geocoder-browser/package-lock.json +182 -0
- package/demos/geocoder-browser/package.json +19 -0
- package/demos/geocoder-browser/post-sign-in.html +25 -0
- package/demos/jsapi-integration/README.md +25 -0
- package/demos/jsapi-integration/config.js +6 -0
- package/demos/jsapi-integration/index.html +85 -0
- package/demos/jsapi-integration/package-lock.json +184 -0
- package/demos/jsapi-integration/package.json +19 -0
- package/demos/oauth2-browser/README.md +14 -0
- package/demos/oauth2-browser/authenticate.html +32 -0
- package/demos/oauth2-browser/config.js.template +6 -0
- package/demos/oauth2-browser/index.html +202 -0
- package/demos/oauth2-browser/logo.svg +4 -0
- package/demos/oauth2-browser/package-lock.json +163 -0
- package/demos/oauth2-browser/package.json +18 -0
- package/demos/oauth2-browser/style.css +36 -0
- package/demos/oauth2-browser-retry/README.md +25 -0
- package/demos/oauth2-browser-retry/authenticate.html +21 -0
- package/demos/oauth2-browser-retry/index.html +116 -0
- package/demos/oauth2-browser-retry/logo.svg +4 -0
- package/demos/vue/.env.example +11 -0
- package/demos/vue/.eslintrc.js +17 -0
- package/demos/vue/.postcssrc.js +5 -0
- package/demos/vue/README.md +17 -0
- package/demos/vue/babel.config.js +3 -0
- package/demos/vue/package-lock.json +11323 -0
- package/demos/vue/package.json +33 -0
- package/demos/vue/public/favicon.ico +0 -0
- package/demos/vue/public/index.html +24 -0
- package/demos/vue/src/assets/logo.svg +29 -0
- package/demos/vue/src/components/App.vue +308 -0
- package/demos/vue/src/components/Authenticate.vue +65 -0
- package/demos/vue/src/components/Loader.vue +230 -0
- package/demos/vue/src/main.js +92 -0
- package/docs/FAQ.md +28 -0
- package/docs/HISTORY.md +62 -0
- package/docs/acetate.config.js +223 -0
- package/docs/build-typedoc.js +303 -0
- package/docs/src/_layout.html +82 -0
- package/docs/src/api/_declaration.html +496 -0
- package/docs/src/api/_layout.html +127 -0
- package/docs/src/api/_package.html +13 -0
- package/docs/src/api/index.html +23 -0
- package/docs/src/guides/_layout.html +24 -0
- package/docs/src/guides/amd-requirejs-dojo.md +40 -0
- package/docs/src/guides/babel-and-rollup.md +30 -0
- package/docs/src/guides/babel-and-webpack.md +30 -0
- package/docs/src/guides/browser-authentication.md +41 -0
- package/docs/src/guides/browserify.md +9 -0
- package/docs/src/guides/cli-authentication.md +9 -0
- package/docs/src/guides/client-server-authentication.md +9 -0
- package/docs/src/guides/from-a-cdn.md +36 -0
- package/docs/src/guides/index.md +52 -0
- package/docs/src/guides/node.md +70 -0
- package/docs/src/guides/package-overview.md +8 -0
- package/docs/src/guides/server-authentication.md +9 -0
- package/docs/src/guides/typescript-and-webpack.md +9 -0
- package/docs/src/img/icons.png +0 -0
- package/docs/src/img/icons@2x.png +0 -0
- package/docs/src/index.html +12 -0
- package/docs/src/js/api-search.js +112 -0
- package/docs/src/js/nav-toggle.js +41 -0
- package/docs/src/sass/_highlight.scss +96 -0
- package/docs/src/sass/_icons.scss +157 -0
- package/docs/src/sass/style.scss +169 -0
- package/jasmine.json +7 -0
- package/karma.conf.js +100 -0
- package/lerna.json +8 -0
- package/notes/README.md +88 -0
- package/package.json +129 -0
- package/packages/arcgis-rest-auth/README.md +67 -0
- package/packages/arcgis-rest-auth/package-lock.json +11 -0
- package/packages/arcgis-rest-auth/package.json +53 -0
- package/packages/arcgis-rest-auth/src/ApplicationSession.ts +108 -0
- package/packages/arcgis-rest-auth/src/UserSession.ts +880 -0
- package/packages/arcgis-rest-auth/src/authenticated-request-options.ts +24 -0
- package/packages/arcgis-rest-auth/src/fetch-token.ts +52 -0
- package/packages/arcgis-rest-auth/src/generate-token.ts +39 -0
- package/packages/arcgis-rest-auth/src/index.ts +8 -0
- package/packages/arcgis-rest-auth/test/ApplicationSession.test.ts +124 -0
- package/packages/arcgis-rest-auth/test/UserSession.test.ts +1005 -0
- package/packages/arcgis-rest-auth/test/fetchToken.test.ts +112 -0
- package/packages/arcgis-rest-auth/test/generateToken.test.ts +130 -0
- package/packages/arcgis-rest-auth/test/utils.ts +14 -0
- package/packages/arcgis-rest-auth/tsconfig.json +6 -0
- package/packages/arcgis-rest-common/README.md +57 -0
- package/packages/arcgis-rest-common/package-lock.json +11 -0
- package/packages/arcgis-rest-common/package.json +41 -0
- package/packages/arcgis-rest-common/src/index.ts +10 -0
- package/packages/arcgis-rest-common/src/types/feature.ts +14 -0
- package/packages/arcgis-rest-common/src/types/geometry.ts +47 -0
- package/packages/arcgis-rest-common/src/types/symbol.ts +21 -0
- package/packages/arcgis-rest-common/src/util/location.ts +19 -0
- package/packages/arcgis-rest-common/test/location.test.ts +73 -0
- package/packages/arcgis-rest-common/tsconfig.json +6 -0
- package/packages/arcgis-rest-common-types/README.md +64 -0
- package/packages/arcgis-rest-common-types/package.json +40 -0
- package/packages/arcgis-rest-common-types/src/group.ts +54 -0
- package/packages/arcgis-rest-common-types/src/index.ts +469 -0
- package/packages/arcgis-rest-common-types/src/item.ts +47 -0
- package/packages/arcgis-rest-common-types/src/webmap.ts +1267 -0
- package/packages/arcgis-rest-common-types/tsconfig.json +11 -0
- package/packages/arcgis-rest-feature-service/README.md +73 -0
- package/packages/arcgis-rest-feature-service/package-lock.json +11 -0
- package/packages/arcgis-rest-feature-service/package.json +53 -0
- package/packages/arcgis-rest-feature-service/src/add.ts +90 -0
- package/packages/arcgis-rest-feature-service/src/addAttachment.ts +64 -0
- package/packages/arcgis-rest-feature-service/src/decodeValues.ts +129 -0
- package/packages/arcgis-rest-feature-service/src/delete.ts +97 -0
- package/packages/arcgis-rest-feature-service/src/deleteAttachments.ts +67 -0
- package/packages/arcgis-rest-feature-service/src/getAttachments.ts +64 -0
- package/packages/arcgis-rest-feature-service/src/getLayer.ts +27 -0
- package/packages/arcgis-rest-feature-service/src/helpers.ts +50 -0
- package/packages/arcgis-rest-feature-service/src/index.ts +14 -0
- package/packages/arcgis-rest-feature-service/src/query.ts +183 -0
- package/packages/arcgis-rest-feature-service/src/queryRelated.ts +94 -0
- package/packages/arcgis-rest-feature-service/src/update.ts +90 -0
- package/packages/arcgis-rest-feature-service/src/updateAttachment.ts +73 -0
- package/packages/arcgis-rest-feature-service/test/attachments.test.ts +203 -0
- package/packages/arcgis-rest-feature-service/test/crud.test.ts +263 -0
- package/packages/arcgis-rest-feature-service/test/decodeValues.test.ts +67 -0
- package/packages/arcgis-rest-feature-service/test/getLayer.test.ts +31 -0
- package/packages/arcgis-rest-feature-service/test/mocks/cvdQueryResponse.ts +225 -0
- package/packages/arcgis-rest-feature-service/test/mocks/feature.ts +281 -0
- package/packages/arcgis-rest-feature-service/test/mocks/fields.ts +779 -0
- package/packages/arcgis-rest-feature-service/test/mocks/foo.txt +1 -0
- package/packages/arcgis-rest-feature-service/test/mocks/service.ts +259 -0
- package/packages/arcgis-rest-feature-service/test/query.test.ts +140 -0
- package/packages/arcgis-rest-feature-service/tsconfig.json +6 -0
- package/packages/arcgis-rest-feature-service-admin/README.md +69 -0
- package/packages/arcgis-rest-feature-service-admin/package-lock.json +11 -0
- package/packages/arcgis-rest-feature-service-admin/package.json +56 -0
- package/packages/arcgis-rest-feature-service-admin/src/addTo.ts +74 -0
- package/packages/arcgis-rest-feature-service-admin/src/create.ts +207 -0
- package/packages/arcgis-rest-feature-service-admin/src/index.ts +2 -0
- package/packages/arcgis-rest-feature-service-admin/test/addTo.test.ts +353 -0
- package/packages/arcgis-rest-feature-service-admin/test/create.test.ts +412 -0
- package/packages/arcgis-rest-feature-service-admin/test/mocks/layerDefinition.ts +79 -0
- package/packages/arcgis-rest-feature-service-admin/test/mocks/move.ts +14 -0
- package/packages/arcgis-rest-feature-service-admin/test/mocks/service.ts +72 -0
- package/packages/arcgis-rest-feature-service-admin/tsconfig.json +6 -0
- package/packages/arcgis-rest-geocoder/README.md +83 -0
- package/packages/arcgis-rest-geocoder/package-lock.json +11 -0
- package/packages/arcgis-rest-geocoder/package.json +55 -0
- package/packages/arcgis-rest-geocoder/src/bulk.ts +102 -0
- package/packages/arcgis-rest-geocoder/src/geocode.ts +130 -0
- package/packages/arcgis-rest-geocoder/src/helpers.ts +80 -0
- package/packages/arcgis-rest-geocoder/src/index.ts +8 -0
- package/packages/arcgis-rest-geocoder/src/reverse.ts +83 -0
- package/packages/arcgis-rest-geocoder/src/suggest.ts +69 -0
- package/packages/arcgis-rest-geocoder/test/bulk.test.ts +113 -0
- package/packages/arcgis-rest-geocoder/test/geocode.test.ts +176 -0
- package/packages/arcgis-rest-geocoder/test/helpers.test.ts +111 -0
- package/packages/arcgis-rest-geocoder/test/mocks/responses.ts +629 -0
- package/packages/arcgis-rest-geocoder/test/reverse.test.ts +126 -0
- package/packages/arcgis-rest-geocoder/test/suggest.test.ts +98 -0
- package/packages/arcgis-rest-geocoder/tsconfig.json +6 -0
- package/packages/arcgis-rest-groups/README.md +67 -0
- package/packages/arcgis-rest-groups/package-lock.json +11 -0
- package/packages/arcgis-rest-groups/package.json +55 -0
- package/packages/arcgis-rest-groups/src/create.ts +34 -0
- package/packages/arcgis-rest-groups/src/get.ts +95 -0
- package/packages/arcgis-rest-groups/src/helpers.ts +27 -0
- package/packages/arcgis-rest-groups/src/index.ts +11 -0
- package/packages/arcgis-rest-groups/src/notification.ts +77 -0
- package/packages/arcgis-rest-groups/src/protect.ts +40 -0
- package/packages/arcgis-rest-groups/src/remove.ts +23 -0
- package/packages/arcgis-rest-groups/src/search.ts +64 -0
- package/packages/arcgis-rest-groups/src/update.ts +36 -0
- package/packages/arcgis-rest-groups/test/crud.test.ts +134 -0
- package/packages/arcgis-rest-groups/test/get.test.ts +101 -0
- package/packages/arcgis-rest-groups/test/mocks/responses.ts +141 -0
- package/packages/arcgis-rest-groups/test/notification.test.ts +102 -0
- package/packages/arcgis-rest-groups/test/protect.test.ts +64 -0
- package/packages/arcgis-rest-groups/test/search.test.ts +85 -0
- package/packages/arcgis-rest-groups/tsconfig.json +6 -0
- package/packages/arcgis-rest-items/README.md +69 -0
- package/packages/arcgis-rest-items/package-lock.json +11 -0
- package/packages/arcgis-rest-items/package.json +55 -0
- package/packages/arcgis-rest-items/src/add.ts +103 -0
- package/packages/arcgis-rest-items/src/create.ts +110 -0
- package/packages/arcgis-rest-items/src/get.ts +79 -0
- package/packages/arcgis-rest-items/src/helpers.ts +147 -0
- package/packages/arcgis-rest-items/src/index.ts +11 -0
- package/packages/arcgis-rest-items/src/protect.ts +38 -0
- package/packages/arcgis-rest-items/src/remove.ts +58 -0
- package/packages/arcgis-rest-items/src/search.ts +78 -0
- package/packages/arcgis-rest-items/src/update.ts +134 -0
- package/packages/arcgis-rest-items/test/add.test.ts +256 -0
- package/packages/arcgis-rest-items/test/create.test.ts +371 -0
- package/packages/arcgis-rest-items/test/get.test.ts +181 -0
- package/packages/arcgis-rest-items/test/mocks/foo.zip +0 -0
- package/packages/arcgis-rest-items/test/mocks/item.ts +35 -0
- package/packages/arcgis-rest-items/test/mocks/resources.ts +31 -0
- package/packages/arcgis-rest-items/test/mocks/search.ts +62 -0
- package/packages/arcgis-rest-items/test/protect.test.ts +122 -0
- package/packages/arcgis-rest-items/test/remove.test.ts +161 -0
- package/packages/arcgis-rest-items/test/search.test.ts +159 -0
- package/packages/arcgis-rest-items/test/update.test.ts +450 -0
- package/packages/arcgis-rest-items/tsconfig.json +6 -0
- package/packages/arcgis-rest-request/README.md +68 -0
- package/packages/arcgis-rest-request/package-lock.json +11 -0
- package/packages/arcgis-rest-request/package.json +45 -0
- package/packages/arcgis-rest-request/src/index.ts +15 -0
- package/packages/arcgis-rest-request/src/request.ts +358 -0
- package/packages/arcgis-rest-request/src/utils/ArcGISRequestError.ts +76 -0
- package/packages/arcgis-rest-request/src/utils/ErrorTypes.ts +29 -0
- package/packages/arcgis-rest-request/src/utils/append-custom-params.ts +29 -0
- package/packages/arcgis-rest-request/src/utils/encode-form-data.ts +34 -0
- package/packages/arcgis-rest-request/src/utils/encode-query-string.ts +23 -0
- package/packages/arcgis-rest-request/src/utils/get-portal-url.ts +25 -0
- package/packages/arcgis-rest-request/src/utils/get-portal.ts +45 -0
- package/packages/arcgis-rest-request/src/utils/params.ts +52 -0
- package/packages/arcgis-rest-request/src/utils/process-params.ts +99 -0
- package/packages/arcgis-rest-request/src/utils/retryAuthError.ts +9 -0
- package/packages/arcgis-rest-request/src/utils/warn.ts +11 -0
- package/packages/arcgis-rest-request/test/mocks/errors.ts +68 -0
- package/packages/arcgis-rest-request/test/mocks/geojson-feature-collection.ts +13 -0
- package/packages/arcgis-rest-request/test/mocks/portal.ts +112 -0
- package/packages/arcgis-rest-request/test/mocks/sharing-rest-info.ts +41 -0
- package/packages/arcgis-rest-request/test/mocks/webmap.ts +41 -0
- package/packages/arcgis-rest-request/test/request.test.ts +323 -0
- package/packages/arcgis-rest-request/test/utils/ArcGISAuthError.test.ts +170 -0
- package/packages/arcgis-rest-request/test/utils/ArcGISRequestError.test.ts +51 -0
- package/packages/arcgis-rest-request/test/utils/check-for-errors.test.ts +111 -0
- package/packages/arcgis-rest-request/test/utils/encode-form-data.test.ts +133 -0
- package/packages/arcgis-rest-request/test/utils/get-portal-url.test.ts +37 -0
- package/packages/arcgis-rest-request/test/utils/portal.test.ts +97 -0
- package/packages/arcgis-rest-request/test/utils/process-params.test.ts +193 -0
- package/packages/arcgis-rest-request/tsconfig.json +6 -0
- package/packages/arcgis-rest-routing/README.md +71 -0
- package/packages/arcgis-rest-routing/package-lock.json +11 -0
- package/packages/arcgis-rest-routing/package.json +54 -0
- package/packages/arcgis-rest-routing/src/helpers.ts +16 -0
- package/packages/arcgis-rest-routing/src/index.ts +4 -0
- package/packages/arcgis-rest-routing/src/solveRoute.ts +102 -0
- package/packages/arcgis-rest-routing/test/mocks/responses.ts +825 -0
- package/packages/arcgis-rest-routing/test/solveRoute.test.ts +267 -0
- package/packages/arcgis-rest-routing/tsconfig.json +6 -0
- package/packages/arcgis-rest-sharing/README.md +70 -0
- package/packages/arcgis-rest-sharing/package-lock.json +11 -0
- package/packages/arcgis-rest-sharing/package.json +60 -0
- package/packages/arcgis-rest-sharing/src/access.ts +85 -0
- package/packages/arcgis-rest-sharing/src/group-sharing.ts +211 -0
- package/packages/arcgis-rest-sharing/src/helpers.ts +82 -0
- package/packages/arcgis-rest-sharing/src/index.ts +5 -0
- package/packages/arcgis-rest-sharing/test/access.test.ts +154 -0
- package/packages/arcgis-rest-sharing/test/group-sharing.test.ts +566 -0
- package/packages/arcgis-rest-sharing/test/helpers.test.ts +55 -0
- package/packages/arcgis-rest-sharing/test/mocks/sharing.ts +18 -0
- package/packages/arcgis-rest-sharing/tsconfig.json +6 -0
- package/packages/arcgis-rest-users/README.md +74 -0
- package/packages/arcgis-rest-users/package-lock.json +11 -0
- package/packages/arcgis-rest-users/package.json +54 -0
- package/packages/arcgis-rest-users/src/get.ts +69 -0
- package/packages/arcgis-rest-users/src/index.ts +6 -0
- package/packages/arcgis-rest-users/src/invitation.ts +166 -0
- package/packages/arcgis-rest-users/src/notification.ts +73 -0
- package/packages/arcgis-rest-users/test/get.test.ts +99 -0
- package/packages/arcgis-rest-users/test/invitation.test.ts +169 -0
- package/packages/arcgis-rest-users/test/mocks/invitation.ts +70 -0
- package/packages/arcgis-rest-users/test/mocks/notification.ts +34 -0
- package/packages/arcgis-rest-users/test/mocks/user.ts +173 -0
- package/packages/arcgis-rest-users/test/notification.test.ts +83 -0
- package/packages/arcgis-rest-users/tsconfig.json +6 -0
- package/support/changelog.js +394 -0
- package/support/deploy-doc-site.js +16 -0
- package/support/dev.sh +6 -0
- package/support/publish.sh +43 -0
- package/support/test-helpers.js +8 -0
- package/tsconfig.json +69 -0
- package/tslint.json +16 -0
- package/umd-base-profile.js +82 -0
- package/umd-production-profile.js +13 -0
@@ -0,0 +1,157 @@
|
|
1
|
+
$type-icons: (object-literal), (class), ('class.tsd-has-type-parameter'),
|
2
|
+
(interface), ('interface.tsd-has-type-parameter'),
|
3
|
+
(module, external-module), (enumeration), (enumeration-member),
|
4
|
+
(signature), (type-alias);
|
5
|
+
|
6
|
+
$member-icons: (variable, property), (get-signature), (set-signature),
|
7
|
+
(accessor), (function, method, call-signature),
|
8
|
+
('function.tsd-has-type-parameter', 'method.tsd-has-type-parameter'),
|
9
|
+
(constructor, constructor-signature), (index-signature), (event),
|
10
|
+
(property), (function, method, call-signature), (event);
|
11
|
+
|
12
|
+
@mixin retina () {
|
13
|
+
@media (-webkit-min-device-pixel-ratio: 1.5),
|
14
|
+
(min-device-pixel-ratio: 1.5),
|
15
|
+
(min-resolution: 144dpi) {
|
16
|
+
@content;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
// parameter
|
21
|
+
// type-literal
|
22
|
+
// type-parameter
|
23
|
+
|
24
|
+
.tsd-kind-icon {
|
25
|
+
display: inline-block;
|
26
|
+
position: relative;
|
27
|
+
padding-left: 20px;
|
28
|
+
text-indent: -20px;
|
29
|
+
|
30
|
+
&:before {
|
31
|
+
content: '';
|
32
|
+
display: inline-block;
|
33
|
+
vertical-align: middle;
|
34
|
+
width: 17px;
|
35
|
+
height: 17px;
|
36
|
+
margin: 0 3px 2px 0;
|
37
|
+
background-image: url(../img/icons.png);
|
38
|
+
|
39
|
+
@include retina {
|
40
|
+
background-image: url(../img/icons@2x.png);
|
41
|
+
background-size: 238px 204px;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.tsd-signature.tsd-kind-icon:before {
|
47
|
+
background-position: 0 -153px;
|
48
|
+
}
|
49
|
+
|
50
|
+
$icon-size: 17px;
|
51
|
+
$type: -0 * $icon-size;
|
52
|
+
$type-protected: -1 * $icon-size;
|
53
|
+
$type-private: -2 * $icon-size;
|
54
|
+
$member-class-public: -3 * $icon-size;
|
55
|
+
$member-class-public-inherited: -4 * $icon-size;
|
56
|
+
$member-class-protected: -5 * $icon-size;
|
57
|
+
$member-class-protected-inherited: -6 * $icon-size;
|
58
|
+
$member-private: -7 * $icon-size;
|
59
|
+
$member: -8 * $icon-size;
|
60
|
+
$member-protected: -9 * $icon-size;
|
61
|
+
$member-enum: -10 * $icon-size;
|
62
|
+
$member-enum-protected: -11 * $icon-size;
|
63
|
+
$member-interface: -12 * $icon-size;
|
64
|
+
$member-interface-inherited: -13 * $icon-size;
|
65
|
+
|
66
|
+
@for $index from 1 through length($type-icons) {
|
67
|
+
@each $kind in nth($type-icons, $index) {
|
68
|
+
$selector: '.tsd-kind-' + $kind;
|
69
|
+
$offset: -#{17 * ($index)}px;
|
70
|
+
|
71
|
+
#{$selector} {
|
72
|
+
> .tsd-kind-icon:before {
|
73
|
+
background-position: $type $offset;
|
74
|
+
}
|
75
|
+
|
76
|
+
&.tsd-is-protected > .tsd-kind-icon:before {
|
77
|
+
background-position: $type-protected $offset;
|
78
|
+
}
|
79
|
+
|
80
|
+
&.tsd-is-private > .tsd-kind-icon:before {
|
81
|
+
background-position: $type-private $offset;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
@for $index from 1 through length($member-icons) {
|
88
|
+
@each $kind in nth($member-icons, $index) {
|
89
|
+
$offset: -#{17 * ($index - 1)}px;
|
90
|
+
$selector: '.tsd-kind-' + $kind;
|
91
|
+
@if $index == 10 {
|
92
|
+
$selector: '.tsd-is-static';
|
93
|
+
} @else if $index > 10 {
|
94
|
+
$selector: '.tsd-is-static.tsd-kind-' + $kind;
|
95
|
+
}
|
96
|
+
|
97
|
+
#{$selector} {
|
98
|
+
> .tsd-kind-icon:before {
|
99
|
+
background-position: $member $offset;
|
100
|
+
}
|
101
|
+
|
102
|
+
&.tsd-is-protected > .tsd-kind-icon:before {
|
103
|
+
background-position: $member-protected $offset;
|
104
|
+
}
|
105
|
+
|
106
|
+
&.tsd-is-private > .tsd-kind-icon:before {
|
107
|
+
background-position: $member-private $offset;
|
108
|
+
}
|
109
|
+
|
110
|
+
&.tsd-parent-kind-class {
|
111
|
+
> .tsd-kind-icon:before {
|
112
|
+
background-position: $member-class-public $offset;
|
113
|
+
}
|
114
|
+
|
115
|
+
&.tsd-is-inherited > .tsd-kind-icon:before {
|
116
|
+
background-position: $member-class-public-inherited $offset;
|
117
|
+
}
|
118
|
+
|
119
|
+
&.tsd-is-protected > .tsd-kind-icon:before {
|
120
|
+
background-position: $member-class-protected $offset;
|
121
|
+
}
|
122
|
+
|
123
|
+
&.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before {
|
124
|
+
background-position: $member-class-protected-inherited $offset;
|
125
|
+
}
|
126
|
+
|
127
|
+
&.tsd-is-private > .tsd-kind-icon:before {
|
128
|
+
background-position: $member-private $offset;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
&.tsd-parent-kind-enumeration {
|
133
|
+
> .tsd-kind-icon:before {
|
134
|
+
background-position: $member-enum $offset;
|
135
|
+
}
|
136
|
+
|
137
|
+
&.tsd-is-protected > .tsd-kind-icon:before {
|
138
|
+
background-position: $member-enum-protected $offset;
|
139
|
+
}
|
140
|
+
|
141
|
+
&.tsd-is-private > .tsd-kind-icon:before {
|
142
|
+
background-position: $member-private $offset;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
&.tsd-parent-kind-interface {
|
147
|
+
> .tsd-kind-icon:before {
|
148
|
+
background-position: $member-interface $offset;
|
149
|
+
}
|
150
|
+
|
151
|
+
&.tsd-is-inherited > .tsd-kind-icon:before {
|
152
|
+
background-position: $member-interface-inherited $offset;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
@@ -0,0 +1,169 @@
|
|
1
|
+
@import "_icons.scss";
|
2
|
+
@import "_highlight.scss";
|
3
|
+
|
4
|
+
[v-cloak],
|
5
|
+
[hide] {
|
6
|
+
display: none;
|
7
|
+
}
|
8
|
+
|
9
|
+
tr:hover .table-link,
|
10
|
+
.method-panel:hover header .table-link {
|
11
|
+
display: block;
|
12
|
+
}
|
13
|
+
|
14
|
+
.method-panel header .table-link {
|
15
|
+
left: -0.875rem;
|
16
|
+
top: 1.75rem;
|
17
|
+
}
|
18
|
+
|
19
|
+
td,
|
20
|
+
.method-panel {
|
21
|
+
position: relative;
|
22
|
+
}
|
23
|
+
|
24
|
+
tr:target,
|
25
|
+
.panel:target {
|
26
|
+
background: #efe397;
|
27
|
+
}
|
28
|
+
|
29
|
+
.table-link {
|
30
|
+
position: absolute;
|
31
|
+
left: -1.25rem;
|
32
|
+
top: 50%;
|
33
|
+
margin-top: -0.8375rem;
|
34
|
+
display: none;
|
35
|
+
border-radius: 50%;
|
36
|
+
background: white;
|
37
|
+
border: 1px solid #cccccc;
|
38
|
+
color: #0079c1;
|
39
|
+
width: 1.675rem;
|
40
|
+
height: 1.675rem;
|
41
|
+
text-align: center;
|
42
|
+
line-height: 1.675rem;
|
43
|
+
&:hover {
|
44
|
+
color: white;
|
45
|
+
background: #005e95;
|
46
|
+
border: 1px solid #005e95;
|
47
|
+
}
|
48
|
+
.svg-icon {
|
49
|
+
vertical-align: auto;
|
50
|
+
padding: 0;
|
51
|
+
width: 1rem;
|
52
|
+
height: 1rem;
|
53
|
+
top: 2px;
|
54
|
+
position: relative;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.api-search-result {
|
59
|
+
border: 1px solid transparent;
|
60
|
+
padding: 0.25rem;
|
61
|
+
|
62
|
+
&.is-selected {
|
63
|
+
background: #f8f8f8;
|
64
|
+
border: 1px solid #0079c1;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.text-purple {
|
69
|
+
color: #7461a8;
|
70
|
+
}
|
71
|
+
|
72
|
+
.sub-nav {
|
73
|
+
background: #005e95;
|
74
|
+
}
|
75
|
+
|
76
|
+
.api-param-comment {
|
77
|
+
p {
|
78
|
+
margin-bottom: 0;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
.api-function-comment {
|
83
|
+
p {
|
84
|
+
margin-bottom: 0.5rem;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.api-package-content-list {
|
89
|
+
margin-left: 1.1375rem;
|
90
|
+
}
|
91
|
+
|
92
|
+
a > code {
|
93
|
+
color: #0079c1;
|
94
|
+
&:hover {
|
95
|
+
color: #005e95;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
.no-wrap {
|
100
|
+
white-space: nowrap;
|
101
|
+
}
|
102
|
+
|
103
|
+
.method-table-signatures {
|
104
|
+
margin: 0;
|
105
|
+
li {
|
106
|
+
margin: 0;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.package-contents {
|
111
|
+
display: grid;
|
112
|
+
grid-gap: 10px;
|
113
|
+
}
|
114
|
+
|
115
|
+
/* no grid support? */
|
116
|
+
|
117
|
+
.package-contents {
|
118
|
+
display: flex;
|
119
|
+
flex-wrap: wrap;
|
120
|
+
}
|
121
|
+
|
122
|
+
.package-contents {
|
123
|
+
display: grid;
|
124
|
+
margin: 0 auto;
|
125
|
+
grid-template-columns: repeat(auto-fill, minmax(25ch, 1fr));
|
126
|
+
}
|
127
|
+
|
128
|
+
.package-contents li {
|
129
|
+
/* needed for the flex layout*/
|
130
|
+
flex: 1 1 200px;
|
131
|
+
}
|
132
|
+
|
133
|
+
/* We need to set the margin used on flex items to 0 as we have gaps in grid. */
|
134
|
+
@supports (display: grid) {
|
135
|
+
.package-contents > * {
|
136
|
+
margin: 0;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
.type-child-list {
|
141
|
+
margin: 0;
|
142
|
+
}
|
143
|
+
|
144
|
+
.type-child-name {
|
145
|
+
float: left;
|
146
|
+
clear: left;
|
147
|
+
padding: 0 0.25rem 0 1rem;
|
148
|
+
margin: 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
.type-child-type {
|
152
|
+
float: left;
|
153
|
+
clear: right;
|
154
|
+
margin: 0;
|
155
|
+
}
|
156
|
+
|
157
|
+
.api-toggle-button {
|
158
|
+
padding: 0.1rem 0.1rem;
|
159
|
+
}
|
160
|
+
|
161
|
+
.api-list-item {
|
162
|
+
white-space: nowrap;
|
163
|
+
}
|
164
|
+
|
165
|
+
.list-item-active {
|
166
|
+
border-width: 1px;
|
167
|
+
border-color: #0079c1;
|
168
|
+
border-style: solid
|
169
|
+
}
|
package/jasmine.json
ADDED
package/karma.conf.js
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
// Karma configuration
|
2
|
+
// Generated on Thu Jul 13 2017 11:01:30 GMT-0700 (PDT)
|
3
|
+
const fs = require("fs");
|
4
|
+
|
5
|
+
module.exports = function(config) {
|
6
|
+
config.set({
|
7
|
+
// base path that will be used to resolve all patterns (eg. files, exclude)
|
8
|
+
basePath: "",
|
9
|
+
|
10
|
+
// frameworks to use
|
11
|
+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
12
|
+
frameworks: ["jasmine", "karma-typescript"],
|
13
|
+
|
14
|
+
// list of files / patterns to load in the browser
|
15
|
+
files: ["packages/*/{src,test}/**/*.ts"],
|
16
|
+
|
17
|
+
// list of files to exclude
|
18
|
+
exclude: [],
|
19
|
+
|
20
|
+
karmaTypescriptConfig: {
|
21
|
+
reports: {
|
22
|
+
lcovonly: "coverage",
|
23
|
+
html: "coverage",
|
24
|
+
text: ""
|
25
|
+
},
|
26
|
+
compilerOptions: {
|
27
|
+
module: "commonjs"
|
28
|
+
},
|
29
|
+
tsconfig: "./tsconfig.json",
|
30
|
+
bundlerOptions: {
|
31
|
+
transforms: [require("karma-typescript-es6-transform")()],
|
32
|
+
resolve: {
|
33
|
+
// karmas resolver cant figure out the symlinked deps from lerna
|
34
|
+
// so we need to manually alias each package here.
|
35
|
+
alias: fs
|
36
|
+
.readdirSync("packages")
|
37
|
+
.filter(p => p[0] !== ".")
|
38
|
+
.reduce((alias, p) => {
|
39
|
+
alias[`@esri/${p}`] = `packages/${p}/src/index.ts`;
|
40
|
+
return alias;
|
41
|
+
}, {})
|
42
|
+
}
|
43
|
+
}
|
44
|
+
},
|
45
|
+
|
46
|
+
// coveralls uses this one. still need to figure out how to DRY this up.
|
47
|
+
coverageReporter: {
|
48
|
+
type: 'lcov',
|
49
|
+
dir: 'coverage/'
|
50
|
+
},
|
51
|
+
|
52
|
+
// preprocess matching files before serving them to the browser
|
53
|
+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
54
|
+
preprocessors: {
|
55
|
+
"**/*.ts": ["karma-typescript"] // *.tsx for React Jsx
|
56
|
+
},
|
57
|
+
|
58
|
+
// test results reporter to use
|
59
|
+
// possible values: 'dots', 'progress'
|
60
|
+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
61
|
+
reporters: ["jasmine-diff", "dots", "karma-typescript", "coverage", "coveralls"],
|
62
|
+
|
63
|
+
// web server port
|
64
|
+
port: 9876,
|
65
|
+
|
66
|
+
// enable / disable colors in the output (reporters and logs)
|
67
|
+
colors: true,
|
68
|
+
|
69
|
+
// level of logging
|
70
|
+
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
71
|
+
logLevel: config.LOG_INFO,
|
72
|
+
|
73
|
+
// enable / disable watching file and executing tests whenever any file changes
|
74
|
+
autoWatch: true,
|
75
|
+
|
76
|
+
// start these browsers
|
77
|
+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
78
|
+
browsers: [
|
79
|
+
// 'Chrome',
|
80
|
+
// 'ChromeCanary',
|
81
|
+
// 'Firefox',
|
82
|
+
// 'Safari',
|
83
|
+
// 'IE'
|
84
|
+
],
|
85
|
+
|
86
|
+
// Continuous Integration mode
|
87
|
+
// if true, Karma captures browsers, runs the tests and exits
|
88
|
+
singleRun: false,
|
89
|
+
|
90
|
+
// Concurrency level
|
91
|
+
// how many browsers should be started simultaneously
|
92
|
+
concurrency: Infinity,
|
93
|
+
customLaunchers: {
|
94
|
+
ChromeHeadlessCI: {
|
95
|
+
base: 'ChromeHeadless',
|
96
|
+
flags: ['--no-sandbox']
|
97
|
+
}
|
98
|
+
},
|
99
|
+
});
|
100
|
+
};
|
package/lerna.json
ADDED
package/notes/README.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# Testing
|
2
|
+
|
3
|
+
* Use `npm test` as normal to run all tests.
|
4
|
+
* `npm test` will run `lerna run test` which will in turn will execute `npm test` in each package if it exists with the root of the package as the `process.cwd()`
|
5
|
+
* Browser based tests are setup to run with Karma as a test runner as Jasmine as the testing framework. There is a common config that all packages can use in the root folder called `karma.conf.js`.
|
6
|
+
* Node tests use the `jasmine` CLI tool. Each package will require a `jasmine.json` to tell jasmine where the test files are for that package. The `jasmine.json` should register the `support/register-tsnode.js` helper so TypeScript files are compiled before the tests execute.
|
7
|
+
* Currently the Node tests take quite awhile. I think this is becuase the `ignore` param isn't being respected and thus the entirety of `node_modules` get processed by TypeScript. This needs to happen in order to make `lodash-es` work.
|
8
|
+
|
9
|
+
# Build
|
10
|
+
|
11
|
+
The build system currently builds for 3 seperate targets:
|
12
|
+
|
13
|
+
* Common JS bundle for Node.js
|
14
|
+
* A UMD bundle for CommonJS, AMD and a global variable for browsers
|
15
|
+
* ES5 files in the ES2015 module syntax for use with Rollup and Webpack 2.
|
16
|
+
|
17
|
+
Like with tests running `npm run build` will run `lerna run build` which will run `npm run build` in each package. Currently `npm run build:node` and `npm run build:umd` both use the shared rollup configurations in `rollup.config.*.js`. `npm run build:esm` uses a `tsconfig.json` file in the root of hte repo that extends the base `tsconfig.json` file. This `tsconfig.json` tells the Typescript compiler where to out the output files and generated `.d.ts` type declarations.
|
18
|
+
|
19
|
+
These 4 outputs (2, rollup builds, ES2015 modules and type declarations) are referenced by their respective fields in `package.json`:
|
20
|
+
|
21
|
+
```js
|
22
|
+
{
|
23
|
+
// ...
|
24
|
+
|
25
|
+
"main": "dist/node/bundle.cjs.js",
|
26
|
+
"browser": "dist/browser/bundle.umd.js",
|
27
|
+
"module": "dist/esm/index.js",
|
28
|
+
"js:next": "dist/esm/index.js",
|
29
|
+
"types": "dist/types/index.d.ts",
|
30
|
+
|
31
|
+
// ...
|
32
|
+
}
|
33
|
+
```
|
34
|
+
|
35
|
+
Currently we are bundling Node in order to use `lodash-es` as a utility library which needs to be bundled in.
|
36
|
+
|
37
|
+
The ES2015 build also has the references to `form-data` and `url-search-params` removed. Rollup handles ignoring these in the UMD and CJS builds but TypeScript is not a bundler so these needed to be removed some other way. If we run into issues with sourcemaps this replacement process might need to be replaced by a custom script with [`magic-string`](https://github.com/Rich-Harris/magic-string).
|
38
|
+
|
39
|
+
# Support files
|
40
|
+
|
41
|
+
There are several general support files needed for various operations of the Typescript compiler to prevent errors:
|
42
|
+
|
43
|
+
* `support/json.d.ts` - make the typescript compiler happy when you `import` JSON files `import * as sharingRestInfo from './mocks/sharing-rest-info.json';`
|
44
|
+
* `support/lodash-es.d.ts` - currently `@types/lodash-es` has issues https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15227 so this is an alternate typings file
|
45
|
+
* `register-tsnode.js` - enables on-the-fly compilation of Typescript in Node.js, used by the Jasmine tests
|
46
|
+
* `url-search-params.d.ts` - typings for the `url-search-params` module which is used to emulate `URLSearchParams` in Node.js
|
47
|
+
|
48
|
+
# Doc system
|
49
|
+
|
50
|
+
[Typedoc](https://github.com/TypeStrong/typedoc) leaves much to be desired figuring out how TypeDoc is organizing the source files is next to impossible and there is almost no doc. It does appear to be usable since project like Dojo 2 and Maquette use it however figuring out how to generate the docs in a struture that looks good is pretty beyond me after looking at it for a few hours.
|
51
|
+
|
52
|
+
A potentially better option might be to just use JSDoc and work from the compiled ES2015 source. I will look into this later.
|
53
|
+
|
54
|
+
# Release system
|
55
|
+
|
56
|
+
the release process has been entirely automated.
|
57
|
+
|
58
|
+
the command below bumps the version in each individual package.json file and parses all `npm run c` invoked commit messages since the last release to update the changelog.
|
59
|
+
|
60
|
+
```bash
|
61
|
+
npm run release:prepare
|
62
|
+
```
|
63
|
+
|
64
|
+
afterwards, you can display a diff to give you a sense of what will be committed to master when you actually publish.
|
65
|
+
|
66
|
+
```bash
|
67
|
+
npm run release:review
|
68
|
+
```
|
69
|
+
|
70
|
+
the last command increments the version in the root package.json, pushes the new tag to GitHub and publishes a release of each individual package on npm.
|
71
|
+
|
72
|
+
```bash
|
73
|
+
npm run release:publish
|
74
|
+
```
|
75
|
+
|
76
|
+
# Potential improvements
|
77
|
+
|
78
|
+
* Finding a decent alternative to `lodash/defaults` without broken typings would be ideal. This forces all kinds of weirdness on us.
|
79
|
+
* Figure out why the Node tests take so long (might be becuase of hacks needed for `lodash-es`) `lerna run test:node`
|
80
|
+
* Since we are importing `lodash-es` we need to use `karma-typescript-es6-transform` to transform the ES2015 module syntax into CommonJS. We should look into if this is necessary at all (i.e. replace `lodash-es`) or think about replacing it with https://github.com/jlmakes/karma-rollup-preprocessor.
|
81
|
+
|
82
|
+
# Thoughts
|
83
|
+
|
84
|
+
Basic utility libraries are going to be a problem. Most recommendation are to use something like `import defaults = require('lodash/defaults')` because you are importing a common JS module. However if you use this syntax you cannot have Typescript compile ES2015 modules which is goal for us. Not every library publishes itself as ES2015 modules.
|
85
|
+
|
86
|
+
We need to make a call on what we bundle into the library (`Promise`, `fetch`) ect... Do we ask people to bring their own polyfills or do we bundle them ourselves for simplicity. If we want to do both it will likely complicate the builds a great deal.
|
87
|
+
|
88
|
+
|
package/package.json
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
{
|
2
|
+
"name": "ducimusipsa",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Compact, modular JavaScript wrappers for the ArcGIS REST API that run in Node.js and modern browsers.",
|
5
|
+
"devDependencies": {
|
6
|
+
"@types/es6-promise": "0.0.32",
|
7
|
+
"@types/fetch-mock": "^6.0.4",
|
8
|
+
"@types/jasmine": "^2.8.2",
|
9
|
+
"@types/node": "^6.0.95",
|
10
|
+
"acetate": "^2.0.0",
|
11
|
+
"acetate-cli": "^1.0.1",
|
12
|
+
"changelog-parser": "^2.1.0",
|
13
|
+
"cheerio": "^1.0.0-rc.2",
|
14
|
+
"commitizen": "^2.10.0",
|
15
|
+
"concurrently": "^3.5.1",
|
16
|
+
"cpx": "^1.5.0",
|
17
|
+
"cross-spawn": "^5.1.0",
|
18
|
+
"cz-lerna-changelog": "github:patrickarlt/cz-lerna-changelog#3fe7650a2e2e624b1f46e5031c96119759698288",
|
19
|
+
"date-fns": "^1.29.0",
|
20
|
+
"fetch-mock": "^5.13.1",
|
21
|
+
"gh-pages": "^1.1.0",
|
22
|
+
"gh-release": "^3.4.0",
|
23
|
+
"husky": "^0.14.3",
|
24
|
+
"inspect-process": "^0.5.0",
|
25
|
+
"jasmine": "^2.8.0",
|
26
|
+
"jasmine-core": "^2.8.0",
|
27
|
+
"karma": "^2.0.2",
|
28
|
+
"karma-chrome-launcher": "^2.2.0",
|
29
|
+
"karma-coverage": "^1.1.1",
|
30
|
+
"karma-coveralls": "1.1.2",
|
31
|
+
"karma-firefox-launcher": "^1.1.0",
|
32
|
+
"karma-ie-launcher": "^1.0.0",
|
33
|
+
"karma-jasmine": "^1.1.1",
|
34
|
+
"karma-jasmine-diff-reporter": "^1.1.1",
|
35
|
+
"karma-safari-launcher": "^1.0.0",
|
36
|
+
"karma-typescript": "^3.0.9",
|
37
|
+
"karma-typescript-es6-transform": "^1.0.3",
|
38
|
+
"lerna": "^2.5.1",
|
39
|
+
"lint-staged": "^4.3.0",
|
40
|
+
"minimatch": "^3.0.4",
|
41
|
+
"node-sass": "^4.9.0",
|
42
|
+
"onchange": "^3.3.0",
|
43
|
+
"prettier": "^1.14.3",
|
44
|
+
"resolve": "^1.5.0",
|
45
|
+
"rimraf": "^2.6.2",
|
46
|
+
"rollup": "^0.66.4",
|
47
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
48
|
+
"rollup-plugin-filesize": "^5.0.1",
|
49
|
+
"rollup-plugin-json": "^2.3.0",
|
50
|
+
"rollup-plugin-node-resolve": "^3.0.3",
|
51
|
+
"rollup-plugin-typescript2": "^0.4.6",
|
52
|
+
"rollup-plugin-uglify": "^3.0.0",
|
53
|
+
"shelljs": "^0.7.8",
|
54
|
+
"slug": "^0.9.1",
|
55
|
+
"ts-node": "^3.3.0",
|
56
|
+
"tslint": "^5.11.0",
|
57
|
+
"tslint-config-prettier": "^1.6.0",
|
58
|
+
"tslint-config-standard": "^6.0.1",
|
59
|
+
"typedoc": "^0.12.0",
|
60
|
+
"typescript": "^3.0.0"
|
61
|
+
},
|
62
|
+
"dependencies": {
|
63
|
+
"es6-promise": "^4.2.1",
|
64
|
+
"isomorphic-fetch": "^2.2.1",
|
65
|
+
"isomorphic-form-data": "^2.0.0",
|
66
|
+
"tslib": "^1.8.1"
|
67
|
+
},
|
68
|
+
"lint-staged": {
|
69
|
+
"*.ts": [
|
70
|
+
"prettier --write --parser typescript --tab-width 2 --use-tabs false",
|
71
|
+
"tslint --project tsconfig.json",
|
72
|
+
"git add"
|
73
|
+
]
|
74
|
+
},
|
75
|
+
"scripts": {
|
76
|
+
"build": "lerna run build",
|
77
|
+
"test": "npm run test:node && npm run test:chrome",
|
78
|
+
"test:chrome:debug": "karma start --auto-watch --no-single-run --browsers=Chrome",
|
79
|
+
"test:chrome": "karma start --single-run --browsers=Chrome",
|
80
|
+
"test:chrome:ci": "karma start --single-run --browsers ChromeHeadlessCI karma.conf.js",
|
81
|
+
"test:firefox": "karma start --single-run --browsers=Firefox",
|
82
|
+
"test:node": "jasmine --config=jasmine.json",
|
83
|
+
"test:node:debug": "inspect jasmine --config=jasmine.json",
|
84
|
+
"test:ci": "npm run lint && npm run test:node && npm run test:chrome:ci && npm run test:firefox",
|
85
|
+
"test:all": "npm run test:node && npm run test:firefox && npm run test:chrome",
|
86
|
+
"docs:build": "rimraf docs/build && npm run docs:typedoc && npm run docs:build:acetate && npm run docs:build:sass && npm run docs:build:images && npm run docs:build:js",
|
87
|
+
"docs:build:acetate": "ENV=prod acetate build --config docs/acetate.config.js",
|
88
|
+
"docs:build:sass": "node-sass --output docs/build/arcgis-rest-js/css --source-map true --source-map-contents docs/src/sass",
|
89
|
+
"docs:build:images": "cpx \"docs/src/**/*.{png,jpg,jpeg,gif,svg,webm,ogg}\" docs/build/arcgis-rest-js",
|
90
|
+
"docs:build:js": "cpx \"docs/src/**/{api-search,nav-toggle}.js\" docs/build/arcgis-rest-js",
|
91
|
+
"docs:deploy": "npm run docs:build && node support/deploy-doc-site.js",
|
92
|
+
"docs:typedoc": "node docs/build-typedoc.js",
|
93
|
+
"docs:dev:typedoc": "onchange -v 'packages/*/src/**/*.ts' -- npm run docs:typedoc",
|
94
|
+
"predocs:serve": "npm run docs:typedoc",
|
95
|
+
"docs:serve": "rimraf docs/build && concurrently \"npm run docs:dev:js\" \"npm run docs:dev:images\" \"npm run docs:dev:acetate\" \"npm run docs:dev:sass\" \"npm run docs:dev:typedoc\"",
|
96
|
+
"docs:dev:images": "cpx \"docs/src/**/*.{png,jpg,jpeg,gif,svg,webm,ogg}\" docs/build/arcgis-rest-js -w",
|
97
|
+
"docs:dev:acetate": "acetate server --log=debug --config docs/acetate.config.js",
|
98
|
+
"predocs:dev:sass": "npm run docs:build:sass",
|
99
|
+
"docs:dev:sass": "node-sass --watch --recursive --output docs/build/arcgis-rest-js/css --source-map true --source-map-contents docs/src/sass",
|
100
|
+
"docs:dev:js": "cpx \"docs/src/**/{api-search,nav-toggle}.js\" docs/build/arcgis-rest-js -w",
|
101
|
+
"lint": "tslint --project tsconfig.json",
|
102
|
+
"lint:fix": "tslint --project tsconfig.json --fix",
|
103
|
+
"prettify": "prettier --write --parser typescript --tab-width 2 --use-tabs false \"packages/**/+(src|test)/**/*.ts\"",
|
104
|
+
"precommit": "lint-staged",
|
105
|
+
"bootstrap": "lerna bootstrap",
|
106
|
+
"postinstall": "npm run bootstrap",
|
107
|
+
"prerelease:prepare": "git fetch --all && lerna bootstrap && npm test",
|
108
|
+
"release:prepare": "lerna publish --skip-git --skip-npm --yes && node ./support/changelog.js",
|
109
|
+
"release:review": "git --no-pager diff --word-diff",
|
110
|
+
"release:publish": "./support/publish.sh",
|
111
|
+
"c": "git-cz",
|
112
|
+
"dev": "support/dev.sh"
|
113
|
+
},
|
114
|
+
"repository": {
|
115
|
+
"type": "git",
|
116
|
+
"url": "https://github.com/NellieKihn/ducimusipsa.git"
|
117
|
+
},
|
118
|
+
"license": "Apache-2.0",
|
119
|
+
"bugs": {
|
120
|
+
"url": "https://github.com/NellieKihn/ducimusipsa.git/issues"
|
121
|
+
},
|
122
|
+
"homepage": "https://github.com/NellieKihn/ducimusipsa.git",
|
123
|
+
"config": {
|
124
|
+
"commitizen": {
|
125
|
+
"path": "./node_modules/cz-lerna-changelog"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"author": "EvertZulauf"
|
129
|
+
}
|