Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the commands used to create files and directories #26

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

braden337
Copy link
Contributor

As explained in #25

You can create folders and subfolders and touch deeper files while not jumping around cding into directories by doing this:

# from your mini-framework
mkdir base base/vars base/helpers theme regions modules components pages;
touch base/_reset.scss base/vars/_color.scss .......... pages/_contact.scss _to-do.scss;

@braden337
Copy link
Contributor Author

Input:

@import "utils/variables";
@import "utils/functions";
@import "utils/mixins";
@import "utils/placeholders";

@import "base/reset";
@import "base/typography";

@import "layout/navigation";
@import "layout/grid";
@import "layout/header";
@import "layout/footer";
@import "layout/sidebar";
@import "layout/forms";

@import "components/buttons";
@import "components/carousel";
@import "components/cover";
@import "components/dropdown";

@import "pages/home";
@import "pages/contact";

@import "themes/theme";
@import "themes/admin";

Default Output:

mkdir base/ components/ layout/ pages/ themes/ utils/; touch base/_reset.scss base/_typography.scss components/_buttons.scss components/_carousel.scss components/_cover.scss components/_dropdown.scss layout/_footer.scss layout/_forms.scss layout/_grid.scss layout/_header.scss layout/_navigation.scss layout/_sidebar.scss pages/_contact.scss pages/_home.scss themes/_admin.scss themes/_theme.scss utils/_functions.scss utils/_mixins.scss utils/_placeholders.scss utils/_variables.scss;

Run the command and you get:

result

@braden337
Copy link
Contributor Author

Things to do tonight:

  • remove the last slash from the end of folder names (plus one in substr())

so it's like:

mkdir base components layout pages themes utils;

instead of:

mkdir base/ components/ layout/ pages/ themes/ utils/;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant