Fix template of plugin to not mention theme

This commit is contained in:
Samy Pesse
2016-10-04 15:30:34 +02:00
parent 84315a99f1
commit ccb5dcf559
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
# Publish assets on NPM
!_assets
!_assets/plugin.js
+2 -2
View File
@@ -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}`,
+1 -1
View File
@@ -28,4 +28,4 @@ node_modules
*.swp
# Plugin assets
_assets
_assets/plugin.js
@@ -1,2 +0,0 @@
# Publish assets on NPM
!_assets