@vixoniccom/module-packager 2.4.1 → 2.4.3-dev.0
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/.babelrc +3 -3
- package/.eslintrc +2 -2
- package/CHANGELOG.md +98 -86
- package/electron.js +45 -45
- package/index.html +64 -64
- package/main.js +182 -182
- package/package.json +108 -107
- package/tsconfig.json +15 -15
- package/webpack.config.js +162 -162
package/main.js
CHANGED
|
@@ -1,182 +1,182 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
'use strict'
|
|
4
|
-
const commandLineArgs = require('command-line-args')
|
|
5
|
-
const optionDefinitions = [
|
|
6
|
-
{ name: 'externals', type: String, defaultValue: [], multiple: true },
|
|
7
|
-
{ name: 'target', type: String, defaultValue: 'web' },
|
|
8
|
-
{ name: 'src', type: String, defaultValue: './src' },
|
|
9
|
-
{ name: 'build', type: String, defaultValue: './build' },
|
|
10
|
-
{ name: 'confDefinition', type: String, defaultValue: './configuration' },
|
|
11
|
-
{ name: 'config', type: String, defaultValue: './webpack.config.js' },
|
|
12
|
-
{ name: 'port', type: Number, defaultValue: 8080 },
|
|
13
|
-
{ name: 'mode', type: String, defaultValue: 'build' },
|
|
14
|
-
{ name: 'transpileOnly', type: Boolean },
|
|
15
|
-
{ name: 'tsOverride', type: Boolean }
|
|
16
|
-
]
|
|
17
|
-
const options = commandLineArgs(optionDefinitions)
|
|
18
|
-
const path = require('path')
|
|
19
|
-
const webpack = require('webpack')
|
|
20
|
-
const WebpackDevServer = require('webpack-dev-server')
|
|
21
|
-
const { exec } = require('child_process')
|
|
22
|
-
const fs = require('fs')
|
|
23
|
-
const archiver = require('archiver')
|
|
24
|
-
const clc = require('cli-color')
|
|
25
|
-
|
|
26
|
-
var pjson = require('./package.json')
|
|
27
|
-
console.log(`VIXONIC PACKAGER: Version ${pjson.version}`)
|
|
28
|
-
|
|
29
|
-
if (options.target !== 'electron-renderer' && options.externals.length > 0) {
|
|
30
|
-
throw new Error(`Can't use external dependencies if target is not electron-renderer.`)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (options.mode === 'build') {
|
|
34
|
-
pack(() => {
|
|
35
|
-
// Install externals only if not web.
|
|
36
|
-
if (options.target === 'electron-renderer') {
|
|
37
|
-
installExternals(() => {
|
|
38
|
-
zip()
|
|
39
|
-
})
|
|
40
|
-
} else {
|
|
41
|
-
zip()
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
} else if (options.mode === 'watch') {
|
|
45
|
-
watch()
|
|
46
|
-
} else if (options.mode === 'run') {
|
|
47
|
-
run()
|
|
48
|
-
} else if (options.mode === 'generate-configuration') {
|
|
49
|
-
generateConfiguration()
|
|
50
|
-
} else if (options.mode === 'validate-configuration') {
|
|
51
|
-
validateConfiguration()
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function pack (callback) {
|
|
55
|
-
console.log(clc.blue('Building module...'))
|
|
56
|
-
validateConfiguration()
|
|
57
|
-
webpack(require(options.config)(options), function (err, stats) {
|
|
58
|
-
if (err) {
|
|
59
|
-
console.log(err)
|
|
60
|
-
throw err
|
|
61
|
-
} else {
|
|
62
|
-
if (stats.hasErrors()) {
|
|
63
|
-
console.log(clc.red(stats.toJson('errors-only')))
|
|
64
|
-
callback && callback(stats)
|
|
65
|
-
} else {
|
|
66
|
-
console.log(clc.green('Build OK.'))
|
|
67
|
-
callback && callback(null)
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function installExternals (callback) {
|
|
74
|
-
// Get external versions.
|
|
75
|
-
let externals = options.externals.map(x => {
|
|
76
|
-
return `${x}@${JSON.parse(fs.readFileSync(path.resolve(options.src, '..', 'node_modules', x, 'package.json'))).version}`
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
// Install external versions.
|
|
80
|
-
if (externals.length) {
|
|
81
|
-
externals = externals.join(' ')
|
|
82
|
-
console.log(clc.blue(`Installing externals ${externals}...`))
|
|
83
|
-
exec(`npm install --prefix ./ --production ${externals}`, {
|
|
84
|
-
cwd: options.build
|
|
85
|
-
},
|
|
86
|
-
(err, stdout) => {
|
|
87
|
-
if (err) throw err
|
|
88
|
-
console.log(clc.green('Externals installed.'))
|
|
89
|
-
callback && callback(null)
|
|
90
|
-
})
|
|
91
|
-
} else {
|
|
92
|
-
callback && callback(null)
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function zip (callback) {
|
|
97
|
-
console.log(clc.blue('Archiving...'))
|
|
98
|
-
let output = fs.createWriteStream(path.resolve(options.build, '../', 'build.zip'))
|
|
99
|
-
let archive = archiver('zip')
|
|
100
|
-
archive.pipe(output)
|
|
101
|
-
archive.directory(path.resolve(options.build), './')
|
|
102
|
-
archive.finalize()
|
|
103
|
-
|
|
104
|
-
output.on('close', function () {
|
|
105
|
-
console.log(clc.green('Generated build.zip.'))
|
|
106
|
-
callback && callback(null)
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
archive.on('error', function (err) {
|
|
110
|
-
throw err
|
|
111
|
-
})
|
|
112
|
-
clc.move(-2, 0)
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function watch () {
|
|
116
|
-
var server = new WebpackDevServer(webpack(require(options.config)(options)), {
|
|
117
|
-
contentBase: path.join(__dirname, options.src, '..')
|
|
118
|
-
})
|
|
119
|
-
server.listen(options.port)
|
|
120
|
-
|
|
121
|
-
var environment = process.env
|
|
122
|
-
environment.NODE_ENV = 'development'
|
|
123
|
-
|
|
124
|
-
exec(`npm start -- ${path.join(__dirname, 'electron.js')} --src ${path.resolve(options.src)} --build ${path.resolve(options.build)} --port ${options.port} --mode ${options.mode} --config ${options.config} --externals ${options.externals}`,
|
|
125
|
-
{
|
|
126
|
-
cwd: __dirname,
|
|
127
|
-
env: environment
|
|
128
|
-
},
|
|
129
|
-
(err) => {
|
|
130
|
-
if (err) throw err
|
|
131
|
-
process.exit()
|
|
132
|
-
})
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function run () {
|
|
136
|
-
pack((err) => {
|
|
137
|
-
if (err) {
|
|
138
|
-
throw err
|
|
139
|
-
} else {
|
|
140
|
-
exec(`npm start -- ${path.join(__dirname, 'electron.js')} --src ${path.resolve(options.src)} --build ${path.resolve(options.build)} --port ${options.port} --mode ${options.mode} --config ${options.config} --externals ${options.externals}`,
|
|
141
|
-
{
|
|
142
|
-
cwd: __dirname
|
|
143
|
-
})
|
|
144
|
-
}
|
|
145
|
-
})
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function loadConfiguration () {
|
|
149
|
-
require('@vixoniccom/modules')
|
|
150
|
-
require('ts-node').register({compilerOptions: { moduleResolution: 'node', module: 'commonjs', target: 'es2015', checkJs: false }})
|
|
151
|
-
return require(path.resolve(options.confDefinition, 'index.ts')).configuration
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function generateConfiguration () {
|
|
155
|
-
try {
|
|
156
|
-
let configuration = loadConfiguration()
|
|
157
|
-
fs.writeFileSync(path.resolve(options.src, 'parameters.d.ts'), configuration.declarationFileString)
|
|
158
|
-
fs.writeFileSync(path.resolve(options.src, '..', 'configuration.json'), JSON.stringify(configuration, undefined, 2))
|
|
159
|
-
console.log(clc.green(`Configuration generated`))
|
|
160
|
-
} catch (e) {
|
|
161
|
-
console.log(clc.red('Configuration generation failed'))
|
|
162
|
-
throw e
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function validateConfiguration () {
|
|
167
|
-
try {
|
|
168
|
-
const { Configuration } = require('@vixoniccom/modules')
|
|
169
|
-
const json = require(path.resolve(options.src, '../', 'configuration.json'))
|
|
170
|
-
const conf = Configuration.fromJSON(json)
|
|
171
|
-
if (conf.durationFormula) {
|
|
172
|
-
const values = require(path.resolve(options.src, 'test', 'parameters.json'))
|
|
173
|
-
console.log('Validate duration')
|
|
174
|
-
console.log('Duration on undefined:', conf.getDuration({}), 'seconds')
|
|
175
|
-
console.log('Duration:', conf.getDuration(values.parameters), 'seconds')
|
|
176
|
-
}
|
|
177
|
-
console.log(clc.green('Valid configuration'))
|
|
178
|
-
} catch (e) {
|
|
179
|
-
console.log(clc.red('Invalid configuration'))
|
|
180
|
-
throw e
|
|
181
|
-
}
|
|
182
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict'
|
|
4
|
+
const commandLineArgs = require('command-line-args')
|
|
5
|
+
const optionDefinitions = [
|
|
6
|
+
{ name: 'externals', type: String, defaultValue: [], multiple: true },
|
|
7
|
+
{ name: 'target', type: String, defaultValue: 'web' },
|
|
8
|
+
{ name: 'src', type: String, defaultValue: './src' },
|
|
9
|
+
{ name: 'build', type: String, defaultValue: './build' },
|
|
10
|
+
{ name: 'confDefinition', type: String, defaultValue: './configuration' },
|
|
11
|
+
{ name: 'config', type: String, defaultValue: './webpack.config.js' },
|
|
12
|
+
{ name: 'port', type: Number, defaultValue: 8080 },
|
|
13
|
+
{ name: 'mode', type: String, defaultValue: 'build' },
|
|
14
|
+
{ name: 'transpileOnly', type: Boolean },
|
|
15
|
+
{ name: 'tsOverride', type: Boolean }
|
|
16
|
+
]
|
|
17
|
+
const options = commandLineArgs(optionDefinitions)
|
|
18
|
+
const path = require('path')
|
|
19
|
+
const webpack = require('webpack')
|
|
20
|
+
const WebpackDevServer = require('webpack-dev-server')
|
|
21
|
+
const { exec } = require('child_process')
|
|
22
|
+
const fs = require('fs')
|
|
23
|
+
const archiver = require('archiver')
|
|
24
|
+
const clc = require('cli-color')
|
|
25
|
+
|
|
26
|
+
var pjson = require('./package.json')
|
|
27
|
+
console.log(`VIXONIC PACKAGER: Version ${pjson.version}`)
|
|
28
|
+
|
|
29
|
+
if (options.target !== 'electron-renderer' && options.externals.length > 0) {
|
|
30
|
+
throw new Error(`Can't use external dependencies if target is not electron-renderer.`)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (options.mode === 'build') {
|
|
34
|
+
pack(() => {
|
|
35
|
+
// Install externals only if not web.
|
|
36
|
+
if (options.target === 'electron-renderer') {
|
|
37
|
+
installExternals(() => {
|
|
38
|
+
zip()
|
|
39
|
+
})
|
|
40
|
+
} else {
|
|
41
|
+
zip()
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
} else if (options.mode === 'watch') {
|
|
45
|
+
watch()
|
|
46
|
+
} else if (options.mode === 'run') {
|
|
47
|
+
run()
|
|
48
|
+
} else if (options.mode === 'generate-configuration') {
|
|
49
|
+
generateConfiguration()
|
|
50
|
+
} else if (options.mode === 'validate-configuration') {
|
|
51
|
+
validateConfiguration()
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function pack (callback) {
|
|
55
|
+
console.log(clc.blue('Building module...'))
|
|
56
|
+
validateConfiguration()
|
|
57
|
+
webpack(require(options.config)(options), function (err, stats) {
|
|
58
|
+
if (err) {
|
|
59
|
+
console.log(err)
|
|
60
|
+
throw err
|
|
61
|
+
} else {
|
|
62
|
+
if (stats.hasErrors()) {
|
|
63
|
+
console.log(clc.red(stats.toJson('errors-only')))
|
|
64
|
+
callback && callback(stats)
|
|
65
|
+
} else {
|
|
66
|
+
console.log(clc.green('Build OK.'))
|
|
67
|
+
callback && callback(null)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function installExternals (callback) {
|
|
74
|
+
// Get external versions.
|
|
75
|
+
let externals = options.externals.map(x => {
|
|
76
|
+
return `${x}@${JSON.parse(fs.readFileSync(path.resolve(options.src, '..', 'node_modules', x, 'package.json'))).version}`
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// Install external versions.
|
|
80
|
+
if (externals.length) {
|
|
81
|
+
externals = externals.join(' ')
|
|
82
|
+
console.log(clc.blue(`Installing externals ${externals}...`))
|
|
83
|
+
exec(`npm install --prefix ./ --production ${externals}`, {
|
|
84
|
+
cwd: options.build
|
|
85
|
+
},
|
|
86
|
+
(err, stdout) => {
|
|
87
|
+
if (err) throw err
|
|
88
|
+
console.log(clc.green('Externals installed.'))
|
|
89
|
+
callback && callback(null)
|
|
90
|
+
})
|
|
91
|
+
} else {
|
|
92
|
+
callback && callback(null)
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function zip (callback) {
|
|
97
|
+
console.log(clc.blue('Archiving...'))
|
|
98
|
+
let output = fs.createWriteStream(path.resolve(options.build, '../', 'build.zip'))
|
|
99
|
+
let archive = archiver('zip')
|
|
100
|
+
archive.pipe(output)
|
|
101
|
+
archive.directory(path.resolve(options.build), './')
|
|
102
|
+
archive.finalize()
|
|
103
|
+
|
|
104
|
+
output.on('close', function () {
|
|
105
|
+
console.log(clc.green('Generated build.zip.'))
|
|
106
|
+
callback && callback(null)
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
archive.on('error', function (err) {
|
|
110
|
+
throw err
|
|
111
|
+
})
|
|
112
|
+
clc.move(-2, 0)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function watch () {
|
|
116
|
+
var server = new WebpackDevServer(webpack(require(options.config)(options)), {
|
|
117
|
+
contentBase: path.join(__dirname, options.src, '..')
|
|
118
|
+
})
|
|
119
|
+
server.listen(options.port)
|
|
120
|
+
|
|
121
|
+
var environment = process.env
|
|
122
|
+
environment.NODE_ENV = 'development'
|
|
123
|
+
|
|
124
|
+
exec(`npm start -- ${path.join(__dirname, 'electron.js')} --src ${path.resolve(options.src)} --build ${path.resolve(options.build)} --port ${options.port} --mode ${options.mode} --config ${options.config} --externals ${options.externals}`,
|
|
125
|
+
{
|
|
126
|
+
cwd: __dirname,
|
|
127
|
+
env: environment
|
|
128
|
+
},
|
|
129
|
+
(err) => {
|
|
130
|
+
if (err) throw err
|
|
131
|
+
process.exit()
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function run () {
|
|
136
|
+
pack((err) => {
|
|
137
|
+
if (err) {
|
|
138
|
+
throw err
|
|
139
|
+
} else {
|
|
140
|
+
exec(`npm start -- ${path.join(__dirname, 'electron.js')} --src ${path.resolve(options.src)} --build ${path.resolve(options.build)} --port ${options.port} --mode ${options.mode} --config ${options.config} --externals ${options.externals}`,
|
|
141
|
+
{
|
|
142
|
+
cwd: __dirname
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function loadConfiguration () {
|
|
149
|
+
require('@vixoniccom/modules')
|
|
150
|
+
require('ts-node').register({compilerOptions: { moduleResolution: 'node', module: 'commonjs', target: 'es2015', checkJs: false }})
|
|
151
|
+
return require(path.resolve(options.confDefinition, 'index.ts')).configuration
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function generateConfiguration () {
|
|
155
|
+
try {
|
|
156
|
+
let configuration = loadConfiguration()
|
|
157
|
+
fs.writeFileSync(path.resolve(options.src, 'parameters.d.ts'), configuration.declarationFileString)
|
|
158
|
+
fs.writeFileSync(path.resolve(options.src, '..', 'configuration.json'), JSON.stringify(configuration, undefined, 2))
|
|
159
|
+
console.log(clc.green(`Configuration generated`))
|
|
160
|
+
} catch (e) {
|
|
161
|
+
console.log(clc.red('Configuration generation failed'))
|
|
162
|
+
throw e
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function validateConfiguration () {
|
|
167
|
+
try {
|
|
168
|
+
const { Configuration } = require('@vixoniccom/modules')
|
|
169
|
+
const json = require(path.resolve(options.src, '../', 'configuration.json'))
|
|
170
|
+
const conf = Configuration.fromJSON(json)
|
|
171
|
+
if (conf.durationFormula) {
|
|
172
|
+
const values = require(path.resolve(options.src, 'test', 'parameters.json'))
|
|
173
|
+
console.log('Validate duration')
|
|
174
|
+
console.log('Duration on undefined:', conf.getDuration({}), 'seconds')
|
|
175
|
+
console.log('Duration:', conf.getDuration(values.parameters), 'seconds')
|
|
176
|
+
}
|
|
177
|
+
console.log(clc.green('Valid configuration'))
|
|
178
|
+
} catch (e) {
|
|
179
|
+
console.log(clc.red('Invalid configuration'))
|
|
180
|
+
throw e
|
|
181
|
+
}
|
|
182
|
+
}
|
package/package.json
CHANGED
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_args": [
|
|
3
|
-
[
|
|
4
|
-
{
|
|
5
|
-
"raw": "@vixoniccom/module-packager@^1.2.0",
|
|
6
|
-
"scope": "@vixoniccom",
|
|
7
|
-
"escapedName": "@
|
|
8
|
-
"name": "@vixoniccom/module-packager",
|
|
9
|
-
"rawSpec": "^1.2.0",
|
|
10
|
-
"spec": ">=1.2.0 <2.0.0",
|
|
11
|
-
"type": "range"
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
],
|
|
15
|
-
"_from": "@vixoniccom/module-packager@>=1.2.0 <2.0.0",
|
|
16
|
-
"_id": "@vixoniccom/module-packager@1.2.0",
|
|
17
|
-
"_inCache": true,
|
|
18
|
-
"_location": "/@vixoniccom/module-packager",
|
|
19
|
-
"_nodeVersion": "7.6.0",
|
|
20
|
-
"_npmOperationalInternal": {
|
|
21
|
-
"host": "packages-12-west.internal.npmjs.com",
|
|
22
|
-
"tmp": "tmp/module-packager-1.2.0.tgz_1487918846893_0.5388180573936552"
|
|
23
|
-
},
|
|
24
|
-
"_npmUser": {
|
|
25
|
-
"name": "vixonic",
|
|
26
|
-
"email": "tdadone@vixonic.net"
|
|
27
|
-
},
|
|
28
|
-
"_npmVersion": "2.15.9",
|
|
29
|
-
"_phantomChildren": {},
|
|
30
|
-
"_requested": {
|
|
31
|
-
"raw": "@vixoniccom/module-packager@^1.2.0",
|
|
32
|
-
"scope": "@vixonic",
|
|
33
|
-
"escapedName": "@vixonic%2fmodule-packager",
|
|
34
|
-
"name": "@vixoniccom/module-packager",
|
|
35
|
-
"rawSpec": "^1.2.0",
|
|
36
|
-
"spec": ">=1.2.0 <2.0.0",
|
|
37
|
-
"type": "range"
|
|
38
|
-
},
|
|
39
|
-
"_requiredBy": [
|
|
40
|
-
"#DEV:/"
|
|
41
|
-
],
|
|
42
|
-
"_resolved": "https://registry.npmjs.org/@vixoniccom/module-packager/-/module-packager-1.2.0.tgz",
|
|
43
|
-
"_shasum": "9735f3bcbf2101d404d7bb058cb8337b0a87c503",
|
|
44
|
-
"_shrinkwrap": null,
|
|
45
|
-
"_spec": "@vixoniccom/module-packager@^1.2.0",
|
|
46
|
-
"_where": "c:\\Development\\menuboard",
|
|
47
|
-
"author": {
|
|
48
|
-
"name": "tdadone"
|
|
49
|
-
},
|
|
50
|
-
"bin": {
|
|
51
|
-
"vixonic-module-packager": "main.js"
|
|
52
|
-
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@vixoniccom/module-controller": "^1.2.
|
|
55
|
-
"@vixoniccom/modules": "^2.
|
|
56
|
-
"archiver": "^1.
|
|
57
|
-
"awesome-typescript-loader": "^3.
|
|
58
|
-
"babel-core": "^6.
|
|
59
|
-
"babel-loader": "^6.2.5",
|
|
60
|
-
"babel-polyfill": "^6.26.0",
|
|
61
|
-
"babel-preset-env": "^1.7.0",
|
|
62
|
-
"babel-preset-react": "^6.24.1",
|
|
63
|
-
"clean-webpack-plugin": "^0.
|
|
64
|
-
"cli-color": "^
|
|
65
|
-
"command-line-args": "^
|
|
66
|
-
"copy-webpack-plugin": "^3.0.1",
|
|
67
|
-
"css-loader": "^0.24.0",
|
|
68
|
-
"electron": "^2.
|
|
69
|
-
"electron-debug": "^
|
|
70
|
-
"file-loader": "^0.9.0",
|
|
71
|
-
"html-loader": "^0.4.3",
|
|
72
|
-
"html-webpack-plugin": "^2.22.0",
|
|
73
|
-
"json-loader": "^0.5.4",
|
|
74
|
-
"lodash": "^4.17.
|
|
75
|
-
"node-sass": "^
|
|
76
|
-
"raw-loader": "^0.5.1",
|
|
77
|
-
"sass-loader": "^4.0.2",
|
|
78
|
-
"style-loader": "^0.13.1",
|
|
79
|
-
"ts-node": "^
|
|
80
|
-
"typescript": "^
|
|
81
|
-
"webpack": "^2.6.1",
|
|
82
|
-
"webpack-dev-server": "^1.15.1"
|
|
83
|
-
},
|
|
84
|
-
"directories": {},
|
|
85
|
-
"dist": {
|
|
86
|
-
"shasum": "9735f3bcbf2101d404d7bb058cb8337b0a87c503",
|
|
87
|
-
"tarball": "https://registry.npmjs.org/@vixoniccom/module-packager/-/module-packager-1.2.0.tgz"
|
|
88
|
-
},
|
|
89
|
-
"main": "main.js",
|
|
90
|
-
"maintainers": [
|
|
91
|
-
{
|
|
92
|
-
"name": "vixonic",
|
|
93
|
-
"email": "tdadone@vixonic.net"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"name": "@vixoniccom/module-packager",
|
|
97
|
-
"optionalDependencies": {},
|
|
98
|
-
"readme": "ERROR: No README data found!",
|
|
99
|
-
"scripts": {
|
|
100
|
-
"start": "electron",
|
|
101
|
-
"release": "standard-version"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
{
|
|
5
|
+
"raw": "@vixoniccom/module-packager@^1.2.0",
|
|
6
|
+
"scope": "@vixoniccom",
|
|
7
|
+
"escapedName": "@vixoniccom%2fmodule-packager",
|
|
8
|
+
"name": "@vixoniccom/module-packager",
|
|
9
|
+
"rawSpec": "^1.2.0",
|
|
10
|
+
"spec": ">=1.2.0 <2.0.0",
|
|
11
|
+
"type": "range"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
],
|
|
15
|
+
"_from": "@vixoniccom/module-packager@>=1.2.0 <2.0.0",
|
|
16
|
+
"_id": "@vixoniccom/module-packager@1.2.0",
|
|
17
|
+
"_inCache": true,
|
|
18
|
+
"_location": "/@vixoniccom/module-packager",
|
|
19
|
+
"_nodeVersion": "7.6.0",
|
|
20
|
+
"_npmOperationalInternal": {
|
|
21
|
+
"host": "packages-12-west.internal.npmjs.com",
|
|
22
|
+
"tmp": "tmp/module-packager-1.2.0.tgz_1487918846893_0.5388180573936552"
|
|
23
|
+
},
|
|
24
|
+
"_npmUser": {
|
|
25
|
+
"name": "vixonic",
|
|
26
|
+
"email": "tdadone@vixonic.net"
|
|
27
|
+
},
|
|
28
|
+
"_npmVersion": "2.15.9",
|
|
29
|
+
"_phantomChildren": {},
|
|
30
|
+
"_requested": {
|
|
31
|
+
"raw": "@vixoniccom/module-packager@^1.2.0",
|
|
32
|
+
"scope": "@vixonic",
|
|
33
|
+
"escapedName": "@vixonic%2fmodule-packager",
|
|
34
|
+
"name": "@vixoniccom/module-packager",
|
|
35
|
+
"rawSpec": "^1.2.0",
|
|
36
|
+
"spec": ">=1.2.0 <2.0.0",
|
|
37
|
+
"type": "range"
|
|
38
|
+
},
|
|
39
|
+
"_requiredBy": [
|
|
40
|
+
"#DEV:/"
|
|
41
|
+
],
|
|
42
|
+
"_resolved": "https://registry.npmjs.org/@vixoniccom/module-packager/-/module-packager-1.2.0.tgz",
|
|
43
|
+
"_shasum": "9735f3bcbf2101d404d7bb058cb8337b0a87c503",
|
|
44
|
+
"_shrinkwrap": null,
|
|
45
|
+
"_spec": "@vixoniccom/module-packager@^1.2.0",
|
|
46
|
+
"_where": "c:\\Development\\menuboard",
|
|
47
|
+
"author": {
|
|
48
|
+
"name": "tdadone"
|
|
49
|
+
},
|
|
50
|
+
"bin": {
|
|
51
|
+
"vixonic-module-packager": "main.js"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@vixoniccom/module-controller": "^1.2.2-dev.0",
|
|
55
|
+
"@vixoniccom/modules": "^2.12.0-dev.1",
|
|
56
|
+
"archiver": "^3.1.1",
|
|
57
|
+
"awesome-typescript-loader": "^3.5.0",
|
|
58
|
+
"babel-core": "^6.26.3",
|
|
59
|
+
"babel-loader": "^6.2.5",
|
|
60
|
+
"babel-polyfill": "^6.26.0",
|
|
61
|
+
"babel-preset-env": "^1.7.0",
|
|
62
|
+
"babel-preset-react": "^6.24.1",
|
|
63
|
+
"clean-webpack-plugin": "^3.0.0",
|
|
64
|
+
"cli-color": "^2.0.0",
|
|
65
|
+
"command-line-args": "^5.2.0",
|
|
66
|
+
"copy-webpack-plugin": "^3.0.1",
|
|
67
|
+
"css-loader": "^0.24.0",
|
|
68
|
+
"electron": "^4.2.12",
|
|
69
|
+
"electron-debug": "^3.2.0",
|
|
70
|
+
"file-loader": "^0.9.0",
|
|
71
|
+
"html-loader": "^0.4.3",
|
|
72
|
+
"html-webpack-plugin": "^2.22.0",
|
|
73
|
+
"json-loader": "^0.5.4",
|
|
74
|
+
"lodash": "^4.17.21",
|
|
75
|
+
"node-sass": "^4.14.1",
|
|
76
|
+
"raw-loader": "^0.5.1",
|
|
77
|
+
"sass-loader": "^4.0.2",
|
|
78
|
+
"style-loader": "^0.13.1",
|
|
79
|
+
"ts-node": "^10.2.1",
|
|
80
|
+
"typescript": "^4.3.5",
|
|
81
|
+
"webpack": "^2.6.1",
|
|
82
|
+
"webpack-dev-server": "^1.15.1"
|
|
83
|
+
},
|
|
84
|
+
"directories": {},
|
|
85
|
+
"dist": {
|
|
86
|
+
"shasum": "9735f3bcbf2101d404d7bb058cb8337b0a87c503",
|
|
87
|
+
"tarball": "https://registry.npmjs.org/@vixoniccom/module-packager/-/module-packager-1.2.0.tgz"
|
|
88
|
+
},
|
|
89
|
+
"main": "main.js",
|
|
90
|
+
"maintainers": [
|
|
91
|
+
{
|
|
92
|
+
"name": "vixonic",
|
|
93
|
+
"email": "tdadone@vixonic.net"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"name": "@vixoniccom/module-packager",
|
|
97
|
+
"optionalDependencies": {},
|
|
98
|
+
"readme": "ERROR: No README data found!",
|
|
99
|
+
"scripts": {
|
|
100
|
+
"start": "electron",
|
|
101
|
+
"release": "standard-version",
|
|
102
|
+
"prerelease-dev": "standard-version --prerelease dev"
|
|
103
|
+
},
|
|
104
|
+
"version": "2.4.3-dev.0",
|
|
105
|
+
"devDependencies": {
|
|
106
|
+
"standard-version": "^9.3.1"
|
|
107
|
+
}
|
|
108
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"module": "es2015",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"jsx": "preserve",
|
|
7
|
-
"outDir": "dist",
|
|
8
|
-
"allowJs": true,
|
|
9
|
-
"checkJs": false,
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"sourceMap": true
|
|
12
|
-
},
|
|
13
|
-
"include": [
|
|
14
|
-
"./src/**/*"
|
|
15
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"module": "es2015",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"jsx": "preserve",
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"checkJs": false,
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"sourceMap": true
|
|
12
|
+
},
|
|
13
|
+
"include": [
|
|
14
|
+
"./src/**/*"
|
|
15
|
+
]
|
|
16
16
|
}
|