Merge pull request #13 from microsoft/tyler/onboard-npm-build
onboard to npm build
This commit is contained in:
Коммит
372a485063
|
@ -6,3 +6,4 @@ tsconfig.json
|
|||
vscode-vscode-languagedetection-*.tgz
|
||||
webpack.config.js
|
||||
**/*.map
|
||||
build/
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
name: $(Date:yyyyMMdd)$(Rev:.r)
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
pr: none
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: templates
|
||||
type: github
|
||||
name: microsoft/vscode-engineering
|
||||
ref: main
|
||||
endpoint: Monaco
|
||||
|
||||
parameters:
|
||||
- name: publishPackage
|
||||
displayName: 🚀 Publish vscode-languagedetection
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
extends:
|
||||
template: azure-pipelines/npm-package/pipeline.yml@templates
|
||||
parameters:
|
||||
npmPackages:
|
||||
- name: vscode-languagedetection
|
||||
|
||||
buildPlatforms:
|
||||
- name: Linux
|
||||
nodeVersions:
|
||||
- 14.x
|
||||
- 16.x
|
||||
- name: Windows
|
||||
nodeVersions:
|
||||
- 14.x
|
||||
- 16.x
|
||||
|
||||
buildSteps:
|
||||
- script: npm ci
|
||||
displayName: Install dependencies
|
||||
- script: npm run compile
|
||||
displayName: Compile npm package
|
||||
|
||||
testSteps:
|
||||
- script: npm run test
|
||||
displayName: Test npm package
|
||||
|
||||
publishPackage: ${{ parameters.publishPackage }}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
20
package.json
20
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@vscode/vscode-languagedetection",
|
||||
"version": "1.0.21",
|
||||
"version": "1.0.22",
|
||||
"description": "An npm package that uses guesslang's ML model to detect source code languages",
|
||||
"main": "dist/lib/index.js",
|
||||
"bin": {
|
||||
|
@ -10,12 +10,12 @@
|
|||
"types": "dist/lib/index.d.ts",
|
||||
"scripts": {
|
||||
"pretest": "npm run clean && tsc --build ./test",
|
||||
"prepublish": "npm test && npm run build",
|
||||
"prepack": "npm run build",
|
||||
"prepublishOnly": "npm test && npm run compile",
|
||||
"prepack": "npm run compile",
|
||||
"clean": "rimraf dist",
|
||||
"watch": "npm run clean && webpack --watch",
|
||||
"test": "mocha --recursive dist/test/**/*.test.js",
|
||||
"build": "npm run clean && webpack --mode production"
|
||||
"compile": "npm run clean && webpack --mode production"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -28,18 +28,18 @@
|
|||
},
|
||||
"homepage": "https://github.com/microsoft/vscode-languagedetection#readme",
|
||||
"devDependencies": {
|
||||
"@tensorflow/tfjs-backend-cpu": "^3.9.0",
|
||||
"@tensorflow/tfjs-converter": "^3.9.0",
|
||||
"@tensorflow/tfjs-core": "^3.9.0",
|
||||
"@tensorflow/tfjs-backend-cpu": "^3.21.0",
|
||||
"@tensorflow/tfjs-converter": "^3.21.0",
|
||||
"@tensorflow/tfjs-core": "^3.21.0",
|
||||
"@types/chai": "^4.2.21",
|
||||
"@types/mocha": "8.2.3",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"chai": "^4.3.4",
|
||||
"esbuild": "^0.12.15",
|
||||
"mocha": "9.0.2",
|
||||
"mocha": "^9.2.2",
|
||||
"node-fetch": "^2.6.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rimraf": "3.0.2",
|
||||
"rimraf": "^3.0.2",
|
||||
"terser-webpack-plugin": "^5.1.4",
|
||||
"ts-loader": "^9.2.3",
|
||||
"typescript": "^4.3.5",
|
||||
|
|
Загрузка…
Ссылка в новой задаче