2016-03-18 11:12:50 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Module dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Node.js core.
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
// Local dependencies.
|
|
|
|
const packageJSON = require('../json/package.json.js');
|
2018-01-05 15:17:59 +01:00
|
|
|
const database = require('../json/database.json.js');
|
2016-03-18 11:12:50 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Copy required files for the generated application
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
moduleDir: path.resolve(__dirname, '..'),
|
|
|
|
templatesDirectory: path.resolve(__dirname, '..', 'templates'),
|
|
|
|
before: require('./before'),
|
|
|
|
after: require('./after'),
|
|
|
|
targets: {
|
|
|
|
|
2016-12-01 16:44:03 +01:00
|
|
|
// Call the `admin` generator.
|
|
|
|
'.': ['admin'],
|
|
|
|
|
2016-03-18 11:12:50 +01:00
|
|
|
// Main package.
|
|
|
|
'package.json': {
|
|
|
|
jsonfile: packageJSON
|
|
|
|
},
|
|
|
|
|
2018-01-05 15:17:59 +01:00
|
|
|
'config/environments/development/database.json': {
|
|
|
|
jsonfile: database
|
|
|
|
},
|
|
|
|
|
2016-03-18 11:12:50 +01:00
|
|
|
// Copy dot files.
|
|
|
|
'.editorconfig': {
|
|
|
|
copy: 'editorconfig'
|
|
|
|
},
|
|
|
|
'.npmignore': {
|
|
|
|
copy: 'npmignore'
|
|
|
|
},
|
2017-12-13 14:23:07 +01:00
|
|
|
'.gitignore': {
|
|
|
|
copy: 'gitignore'
|
|
|
|
},
|
2016-03-18 11:12:50 +01:00
|
|
|
|
|
|
|
// Copy Markdown files with some information.
|
|
|
|
'README.md': {
|
|
|
|
template: 'README.md'
|
|
|
|
},
|
|
|
|
|
|
|
|
// Empty API directory.
|
|
|
|
'api': {
|
|
|
|
folder: {}
|
2016-08-31 12:24:27 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
// Empty plugins directory.
|
|
|
|
'plugins': {
|
|
|
|
folder: {}
|
2016-08-31 12:26:26 +02:00
|
|
|
},
|
2016-08-31 12:25:07 +02:00
|
|
|
|
|
|
|
// Empty public directory.
|
|
|
|
'public': {
|
|
|
|
folder: {}
|
2016-10-24 18:14:53 +02:00
|
|
|
},
|
|
|
|
|
2018-02-19 15:41:26 +01:00
|
|
|
// Empty public directory.
|
|
|
|
'public/uploads': {
|
|
|
|
folder: {}
|
2016-08-31 12:25:07 +02:00
|
|
|
}
|
2016-03-18 11:12:50 +01:00
|
|
|
}
|
|
|
|
};
|