1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Add extension generator command.

This commit is contained in:
Toby Zerner
2015-06-08 14:56:19 +09:30
parent 4d2f58b693
commit b864ada389
10 changed files with 202 additions and 0 deletions

3
stubs/extension/js/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
bower_components
node_modules
dist

View File

@@ -0,0 +1,5 @@
var gulp = require('flarum-gulp');
gulp({
modulePrefix: '{{name}}'
});

7
stubs/extension/js/bootstrap.js vendored Normal file
View File

@@ -0,0 +1,7 @@
import { extend, override } from 'flarum/extension-utils';
app.initializers.add('{{name}}', function() {
// @todo
});

View File

@@ -0,0 +1,7 @@
{
"private": true,
"devDependencies": {
"gulp": "^3.8.11",
"flarum-gulp": "git+https://github.com/flarum/gulp.git"
}
}