зеркало из https://github.com/microsoft/jacdac-ts.git
moving to webpack
This commit is contained in:
Родитель
e763642960
Коммит
3e9ba01255
|
@ -10,3 +10,6 @@ dist/
|
|||
.vscode/
|
||||
node_modules/
|
||||
tmp
|
||||
lib/
|
||||
lib-esm/
|
||||
_bundles/
|
|
@ -0,0 +1,6 @@
|
|||
.*
|
||||
**/tsconfig.json
|
||||
**/webpack.config.js
|
||||
|
||||
node_modules
|
||||
src
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
22
package.json
22
package.json
|
@ -2,8 +2,10 @@
|
|||
"name": "jacdac-ts",
|
||||
"version": "0.0.0",
|
||||
"description": "TypeScript/JavaScript library for JACDAC",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"clean": "rm -rf dist lib",
|
||||
"build": "tsc & webpack"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -18,19 +20,11 @@
|
|||
"url": "https://github.com/microsoft/jacdac-ts/issues"
|
||||
},
|
||||
"homepage": "https://github.com/microsoft/jacdac-ts#readme",
|
||||
"dependencies": {
|
||||
"webusb": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^16.5.1",
|
||||
"fancy-log": "^1.3.3",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-typescript": "^5.0.1",
|
||||
"merge-stream": "^2.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsify": "^4.0.2",
|
||||
"typescript": "^3.8.3",
|
||||
"vinyl-source-stream": "^2.0.0",
|
||||
"watchify": "^3.11.1"
|
||||
"ts-loader": "^7.0.5",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "^3.9.5",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-cli": "^3.3.12"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
require("./hf2")
|
||||
require("./pxtutils")
|
||||
require("./jd")
|
||||
require("./jdpretty")
|
||||
require("./jdbl")
|
|
@ -5,16 +5,16 @@
|
|||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true,
|
||||
"target": "ES2017",
|
||||
"target": "es5",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": true,
|
||||
"moduleResolution": "node",
|
||||
"preserveConstEnums": true,
|
||||
"removeComments": false,
|
||||
"declaration": true,
|
||||
"sourceMap": true,
|
||||
"newLine": "LF",
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
"incremental": false
|
||||
"outDir": "lib",
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: './src/index.ts',
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
},
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
},
|
||||
};
|
Загрузка…
Ссылка в новой задаче