mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Fix template of plugin to not mention theme
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# Publish assets on NPM
|
||||
!_assets
|
||||
!_assets/plugin.js
|
||||
|
||||
@@ -14,7 +14,7 @@ function create(outputDir, spec) {
|
||||
'name': `gitbook-plugin-${spec.name}`,
|
||||
'description': `${spec.desc}`,
|
||||
'main': 'index.js',
|
||||
'browser': './_assets/theme.js',
|
||||
'browser': './_assets/plugin.js',
|
||||
'version': '0.0.0',
|
||||
'dependencies': {
|
||||
'gitbook-core': '^0.0.0'
|
||||
@@ -26,7 +26,7 @@ function create(outputDir, spec) {
|
||||
'gitbook': '>=3.0.0'
|
||||
},
|
||||
'scripts': {
|
||||
'build-js': 'gitbook-plugin build ./src/index.js ./_assets/theme.js',
|
||||
'build-js': 'gitbook-plugin build ./src/index.js ./_assets/plugin.js',
|
||||
'prepublish': 'npm run build-js'
|
||||
},
|
||||
'homepage': `${spec.github}`,
|
||||
|
||||
@@ -28,4 +28,4 @@ node_modules
|
||||
*.swp
|
||||
|
||||
# Plugin assets
|
||||
_assets
|
||||
_assets/plugin.js
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Publish assets on NPM
|
||||
!_assets
|
||||
Reference in New Issue
Block a user