mirror of
https://github.com/strapi/strapi.git
synced 2025-12-13 07:55:33 +00:00
Add kitchensink app
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
be072348e2
commit
b06ec444aa
@ -1,4 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
config: {},
|
config: {
|
||||||
|
locales: ['fr'],
|
||||||
|
},
|
||||||
bootstrap() {},
|
bootstrap() {},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,39 +1,11 @@
|
|||||||
const sqlite = {
|
const path = require('path');
|
||||||
client: 'sqlite',
|
|
||||||
|
module.exports = ({ env }) => ({
|
||||||
connection: {
|
connection: {
|
||||||
filename: '.tmp/data.db',
|
client: 'sqlite',
|
||||||
|
connection: {
|
||||||
|
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
|
||||||
|
},
|
||||||
|
useNullAsDefault: true,
|
||||||
},
|
},
|
||||||
useNullAsDefault: true,
|
});
|
||||||
};
|
|
||||||
|
|
||||||
const postgres = {
|
|
||||||
client: 'postgres',
|
|
||||||
connection: {
|
|
||||||
database: 'strapi',
|
|
||||||
user: 'strapi',
|
|
||||||
password: 'strapi',
|
|
||||||
port: 5432,
|
|
||||||
host: 'localhost',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const mysql = {
|
|
||||||
client: 'mysql',
|
|
||||||
connection: {
|
|
||||||
database: 'strapi',
|
|
||||||
user: 'strapi',
|
|
||||||
password: 'strapi',
|
|
||||||
port: 3306,
|
|
||||||
host: 'localhost',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const db = {
|
|
||||||
mysql,
|
|
||||||
sqlite,
|
|
||||||
postgres,
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
connection: process.env.DB ? db[process.env.DB] || db.sqlite : db.sqlite,
|
|
||||||
};
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ module.exports = ({ env }) => ({
|
|||||||
port: env.int('PORT', 1337),
|
port: env.int('PORT', 1337),
|
||||||
admin: {
|
admin: {
|
||||||
auth: {
|
auth: {
|
||||||
secret: env('ADMIN_JWT_SECRET', 'fb07d090b62789dce667b54ae419850e'),
|
secret: env('ADMIN_JWT_SECRET', '6f75e424d1a0307077c294fcc3c7d78d'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,40 +1,30 @@
|
|||||||
{
|
{
|
||||||
"name": "kitchensink",
|
"name": "kitchensink",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "3.6.8",
|
"version": "0.1.0",
|
||||||
"description": "A Strapi application.",
|
"description": "A Strapi application",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"develop": "strapi develop",
|
"develop": "strapi develop",
|
||||||
"develop:ce": "STRAPI_DISABLE_EE=true strapi develop",
|
|
||||||
"start": "strapi start",
|
"start": "strapi start",
|
||||||
"build": "strapi build",
|
"build": "strapi build",
|
||||||
"build:ce": "STRAPI_DISABLE_EE=true strapi build",
|
|
||||||
"strapi": "strapi"
|
"strapi": "strapi"
|
||||||
},
|
},
|
||||||
|
"devDependencies": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strapi/admin": "3.6.8",
|
|
||||||
"@strapi/plugin-documentation": "3.6.8",
|
|
||||||
"@strapi/plugin-graphql": "3.6.8",
|
|
||||||
"@strapi/plugin-i18n": "3.6.8",
|
|
||||||
"@strapi/plugin-users-permissions": "3.6.8",
|
|
||||||
"@strapi/provider-email-mailgun": "3.6.8",
|
|
||||||
"@strapi/provider-upload-aws-s3": "3.6.8",
|
|
||||||
"@strapi/provider-upload-cloudinary": "3.6.8",
|
|
||||||
"@strapi/strapi": "3.6.8",
|
"@strapi/strapi": "3.6.8",
|
||||||
"@strapi/utils": "3.6.8",
|
"@strapi/plugin-users-permissions": "3.6.8",
|
||||||
"lodash": "4.17.21",
|
"@strapi/plugin-i18n": "3.6.8",
|
||||||
"mysql": "2.18.1",
|
"sqlite3": "5.0.2"
|
||||||
"passport-google-oauth2": "0.2.0",
|
},
|
||||||
"pg": "8.6.0",
|
"author": {
|
||||||
"sqlite3": "5.0.2",
|
"name": "A Strapi developer"
|
||||||
"strapi-middleware-views": "3.6.8"
|
|
||||||
},
|
},
|
||||||
"strapi": {
|
"strapi": {
|
||||||
"uuid": "getstarted"
|
"uuid": "379fa84f-f1a0-4101-a6e7-40ee09ed3927"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.x.x <=16.x.x",
|
"node": ">=12.x.x <=14.x.x",
|
||||||
"npm": ">=6.0.0"
|
"npm": "^6.0.0"
|
||||||
},
|
},
|
||||||
"license": "SEE LICENSE IN LICENSE"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,5 +5,6 @@ module.exports = (config, webpack) => {
|
|||||||
// Note: we provide webpack above so you should not `require` it
|
// Note: we provide webpack above so you should not `require` it
|
||||||
// Perform customizations to webpack config
|
// Perform customizations to webpack config
|
||||||
// Important: return the modified config
|
// Important: return the modified config
|
||||||
|
console.log('custom');
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
@ -12,7 +12,7 @@ const getWebpackConfig = require('./webpack.config');
|
|||||||
const getPkgPath = name => path.dirname(require.resolve(`${name}/package.json`));
|
const getPkgPath = name => path.dirname(require.resolve(`${name}/package.json`));
|
||||||
|
|
||||||
function getCustomWebpackConfig(dir, config) {
|
function getCustomWebpackConfig(dir, config) {
|
||||||
const adminConfigPath = path.join(dir, 'admin', 'webpack.config.js');
|
const adminConfigPath = path.join(dir, 'src', 'admin', 'webpack.config.js');
|
||||||
|
|
||||||
let webpackConfig = getWebpackConfig(config);
|
let webpackConfig = getWebpackConfig(config);
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ async function createCacheDir({ dir, plugins }) {
|
|||||||
await copyAdmin(cacheDir);
|
await copyAdmin(cacheDir);
|
||||||
|
|
||||||
// Copy app.js
|
// Copy app.js
|
||||||
const customAdminConfigFilePath = path.join(dir, 'admin', 'app.js');
|
const customAdminConfigFilePath = path.join(dir, 'src', 'admin', 'app.js');
|
||||||
|
|
||||||
if (fs.existsSync(customAdminConfigFilePath)) {
|
if (fs.existsSync(customAdminConfigFilePath)) {
|
||||||
await fs.copy(customAdminConfigFilePath, path.resolve(cacheDir, 'admin', 'src', 'app.js'));
|
await fs.copy(customAdminConfigFilePath, path.resolve(cacheDir, 'admin', 'src', 'app.js'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user