Skip to content

Commit 1d342cd

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
build: use a local npm registry for app packaging
Signed-off-by: Akos Kitta <[email protected]>
1 parent 908ec4c commit 1d342cd

File tree

12 files changed

+4061
-2327
lines changed

12 files changed

+4061
-2327
lines changed

Diff for: .eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = {
1515
'.browser_modules/*',
1616
'docs/*',
1717
'scripts/*',
18-
'electron/*',
1918
'electron-app/*',
2019
'plugins/*',
2120
'arduino-ide-extension/src/node/cli-protocol',

Diff for: arduino-ide-extension/src/browser/dialogs/cloud-share-sketch-dialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from '@theia/core/shared/react';
22
import { inject, injectable } from '@theia/core/shared/inversify';
33
import { Widget } from '@theia/core/shared/@phosphor/widgets';
44
import { Message } from '@theia/core/shared/@phosphor/messaging';
5-
import { clipboard } from 'electron';
5+
import { clipboard } from '@theia/core/electron-shared/@electron/remote';
66
import { ReactWidget, DialogProps } from '@theia/core/lib/browser';
77
import { AbstractDialog } from '../theia/dialogs/dialogs';
88
import { CreateApi } from '../create/create-api';

Diff for: arduino-ide-extension/src/browser/widgets/cloud-sketchbook/cloud-sketchbook-tree-widget.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { CloudUserCommands } from '../../auth/cloud-user-commands';
99
import { NodeProps } from '@theia/core/lib/browser/tree/tree-widget';
1010
import { TreeNode } from '@theia/core/lib/browser/tree';
1111
import { CompositeTreeNode } from '@theia/core/lib/browser';
12-
import { shell } from 'electron';
12+
import { shell } from '@theia/core/electron-shared/@electron/remote';
1313
import { SketchbookTreeWidget } from '../sketchbook/sketchbook-tree-widget';
1414
import { nls } from '@theia/core/lib/common';
1515

Diff for: electron/.gitignore

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
# The working-copy folder we use to package the application.
2-
working-copy/
3-
4-
# Ignore all Theia generated things.
5-
*.log
6-
src-gen/
7-
node_modules/
8-
build/yarn.lock
9-
webpack.config.js
10-
lib/
11-
121
# The electron-builder output.
132
dist/
143

154
# `dotenv` can provide dynamic input for the elecrton-builder. e.g.: commitish for the build.
165
electron-builder.env
176

18-
# The generated `package.json` under the `build` folder.
7+
# The generated `package.json` and lock file under the `build` folder.
198
build/package.json
9+
build/yarn.lock
2010

2111
# Resources the packager copies from dev to prod
2212
build/resources/preload.html
13+
14+
# For the private npm package registry
15+
packager/npm-registry/storage

Diff for: electron/build/template-package.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"build": "yarn download:plugins && theia build --mode production && yarn patch",
2222
"rebuild": "yarn theia rebuild:electron",
2323
"package": "cross-env DEBUG=* && electron-builder --publish=never",
24-
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always",
2524
"download:plugins": "theia download:plugins",
2625
"patch": "ncp ./patch/backend/main.js ./src-gen/backend/main.js"
2726
},

0 commit comments

Comments
 (0)