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

Create npm module for easy installation by others. #19

Closed
13 tasks done
guylepage3 opened this issue Nov 16, 2018 · 2 comments
Closed
13 tasks done

Create npm module for easy installation by others. #19

guylepage3 opened this issue Nov 16, 2018 · 2 comments
Assignees
Labels
coding General coding item(s) and issue(s) enhancement Product and project enhancement item(s)

Comments

@guylepage3
Copy link
Owner

guylepage3 commented Nov 16, 2018

Description
Create npm module for easy installation by others.

Tasks

  • Devise structure of module
  • Create npm (Node.js) module
    • Set up package.json file.
    • Rename Custom.scss to meta.scss
    • Move meta.scss into new scss/ directory in root.
    • Update import path of meta.scss through out the app.
      • Unable to import outside of src #20 Export scss to scss directory in root. React prevents import outside of the src folder. We could eject the app but then implementing cretae-react-app updates would be very complex.
    • Set up .npmignore file. npmjs.com > Keeping files out of your package
      • OR -
    • Create new script under scripts in package.json that;
      • Create a scss/ directory in root
      • Replace meta.scss from ./src/styles/ and place in ./scss/ directory
    • Set files to be included into the published npm package.
    • Create an create an npm Org.
      • @unimeta which is an acronym for "Universe Meta".
    • Publish scoped package
    • Test install by installing it into new create-react-app.

Next

@guylepage3 guylepage3 added enhancement Product and project enhancement item(s) coding General coding item(s) and issue(s) labels Nov 16, 2018
@guylepage3 guylepage3 self-assigned this Nov 16, 2018
@guylepage3
Copy link
Owner Author

guylepage3 commented Nov 16, 2018

NOTE: Updated the structure to be more simplified for first iteration of npm. See next iteration here

Structure of module

For this first iteration we will be restrictive in that it will require that the project/app Meta is being utilized on, uses, React.js, Sass and Bootstrap. We will modify this to be much more open in further versions.

Goal is to publish only a meta-framework/ directory with the following;

meta
├── LICENSE
├── package.json
├── README.md
└── scss/
   └── meta.scss

*NOTE: meta.scss will be broken up into many files such as colors.scss, buttons.scss, typography.scss, etc. as the framework grows.

Flow for v1

  • Developer reads through install instructions.
  • Executes typical "Bootstrap" installation process.
  • Installs Meta.
    • Meta v1 is basically just a Sass file that overrides Bootstrap.
  • Developer simply applies traditional classes from Bootstrap model to their project.

guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 18, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
guylepage3 added a commit that referenced this issue Nov 19, 2018
Signed-off-by: Guy Lepage <guylepage3@gmail.com>
@guylepage3
Copy link
Owner Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coding General coding item(s) and issue(s) enhancement Product and project enhancement item(s)
Projects
None yet
Development

No branches or pull requests

1 participant