@sourcegraph/create-extension
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -146,8 +146,8 @@ #!/usr/bin/env node | ||
license: licenseName, | ||
main: 'dist/extension.js', | ||
main: `dist/${name}.js`, | ||
scripts: { | ||
tslint: "tslint -p tsconfig.json './src/**/*.ts'", | ||
typecheck: 'tsc -p tsconfig.json', | ||
build: 'parcel build --experimental-scope-hoisting --out-file extension.js src/extension.ts', | ||
serve: 'parcel serve --no-hmr --no-source-maps --out-file extension.js src/extension.ts', | ||
build: `parcel build --out-file dist/${name}.js src/${name}.ts`, | ||
serve: `parcel serve --no-hmr --out-file ${name}.js src/${name}.ts`, | ||
'watch:typecheck': 'tsc -p tsconfig.json -w', | ||
@@ -157,2 +157,8 @@ 'watch:build': 'tsc -p tsconfig.dist.json -w', | ||
}, | ||
browserslist: [ | ||
'last 1 Chrome versions', | ||
'last 1 Firefox versions', | ||
'last 1 Edge versions', | ||
'last 1 Safari versions', | ||
], | ||
}; | ||
@@ -164,3 +170,3 @@ yield fs_1.writeFile('package.json', JSON.stringify(packageJson, null, 2)); | ||
yield fs_1.mkdir('src'); | ||
yield fs_1.writeFile('src/extension.ts', [ | ||
yield fs_1.writeFile(`src/${name}.ts`, [ | ||
"import * as sourcegraph from 'sourcegraph'", | ||
@@ -170,3 +176,3 @@ '', | ||
" sourcegraph.languages.registerHoverProvider(['*'], {", | ||
" provideHover: () => ({ contents: { value: 'Hello world from the Sourcegraph extension creator! 🎉🎉🎉' } })", | ||
` provideHover: () => ({ contents: { value: 'Hello world from ${title}! 🎉🎉🎉' } })`, | ||
' })', | ||
@@ -173,0 +179,0 @@ '}', |
{ | ||
"name": "@sourcegraph/create-extension", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "CLI to generate the skeleton for a Sourcegraph extension", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
86311
2071