1.0.5 • Published 3 years ago

smarttv-exec v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

This packages is used as addon for SmartTVConnector. The goal is to automate SmartTV application build and deploy on SmartTV devices.

.env file example

APPLICATION_ID = 26
DEVICE_ID = 4
SERVER_URL = http://192.168.50.21:8081

OUTPUT_FOLDER = smarttv-build
ENTRY_FOLDER = dist
ENTRY_FILE = index.html
ZIP_FOLDER = dist.zip

webpack compiler hook:

const smarttv = require('smarttv-exec')
plugins: [
    new webpack.HotModuleReplacementPlugin(),
    htmlPlugin,
    {
    apply : (compiler) =>  compiler.hooks.done.tap("done", (stats) => smarttv.doneHookCallback())
    }
],

webpack output:

output: {
    path: __dirname + "/" + process.env.OUTPUT_FOLDER + "/" + process.env.ENTRY_FOLDER,
    publicPath: ${process.env.ENTRY_FOLDER}/,
    filename: 'bundle.js',
    sourceMapFilename: 'bundle.map'
},

project structure:

|___public
|___src
|___.env
|___ smarttv-build
    |_dist
        |_bundle.js
    |_index.html
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago