1
0
mirror of https://github.com/typemill/typemill.git synced 2025-01-17 05:18:19 +01:00

start command for developers

This commit is contained in:
Mysteriedev 2022-03-06 15:58:49 +01:00
parent 3dd727302b
commit 40b831a3f0
3 changed files with 38 additions and 12 deletions

3
cypress.json Normal file
View File

@ -0,0 +1,3 @@
{
"baseUrl": "http://localhost/EDIT_THIS_URL_FOR_YOUR_LOCAL_SETUP"
}

View File

@ -19,16 +19,20 @@ const fs = require("fs");
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
on("task", {
resetSetup() {
fs.rmSync("settings/users", { recursive: true, force: true });
fs.rmSync("settings/settings.yaml");
fs.copyFileSync(
"cypress/fixtures/01_setup/default-settings.yaml",
"settings/settings.yaml"
);
on("task", {
resetSetup() {
const users = "settings/users";
const settings = "settings/settings.yaml";
if (fs.existsSync(settings) && fs.existsSync(users)) {
fs.rmSync(users, { recursive: true, force: true });
fs.rmSync(settings);
fs.copyFileSync(
"cypress/fixtures/01_setup/default-settings.yaml",
"settings/settings.yaml"
);
}
return null;
},
});
};
return null;
},
});
};

19
package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "typemill",
"version": "1.0.0",
"description": "TYPEMILL is a lightweight flat file cms for micro-publishers. You can use it for documentations, manuals, special interest websites, and any other information-driven web-project. You can also enhance Typemill with plugins and generate professional e-books in pdf-format with it. The website http://typemill.net runs with Typemill.",
"main": "index.js",
"scripts": {
"e2e": "composer update && cypress open --project ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/typemill/typemill.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/typemill/typemill/issues"
},
"homepage": "https://github.com/typemill/typemill#readme"
}