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

Separate Core files from static assets resources #272

Closed
mateusvahl opened this issue Feb 27, 2016 · 1 comment
Closed

Separate Core files from static assets resources #272

mateusvahl opened this issue Feb 27, 2016 · 1 comment

Comments

@mateusvahl
Copy link

Current pattern lab node is essentially the builder and test folders.

  • if I wanna to start an new project I get folders related to Pattern Lab Node, examples "test, builder, .github".
  • If I add my own dependecies it get mixed with pattern lab node, since it shares package.json.
  • If I wanna to update the project to a new Pattern Lab version I need know exactly which folder or file needs to be replaced or merged.

Proposal

Separate the Pattern Lab core fom assets files: everything that is not directed related to the project core goes to an folder blueprint, example of project structure:

  ├ builder
  ├ tests
  ├ blueprint
  ├── core/styleguide
  ├──── other folders and files...
  ├── source
  ├──── other folders and files...
  ├── Gruntfile.js
  ├── config.json
  ├── gulpfile.js
  ├── package.gulp.json
  ├── package.json

How will be using it:

Installing
$ npm install -g patternlab-node

Generate the project at first time
$ patternlab-node generate myproject --gulp

  Generating Pattern Lab...
       ├ myproject
       ├── core
       ├──── other folders...
       ├── source
       ├──── other folders...
       ├── config.json
       ├── gulpfile.js
       ├── package.json

Running gulp or grunt server

$ patternlab-node run

Pattern lab is running on http://localhost:3000/

Questions

  1. How create an global module?
    At package.json we add the follow key:
"bin": {                                                                                                                                                                                                                                                                                               
  "pattern-lab": "./some-script-to-pattern-lab.js"                                                                                                                                      
}, 

run: npm install -g

  1. How create an new pattern lab project?
    run: patternlab-node generate myproject --gulp will basic copy the content of the blueprint folder.

let me know if I was not clear,
Thanks :)

@mateusvahl mateusvahl changed the title Separate Pattern lab node from static generated resources Separate Core files from static assets resources Feb 27, 2016
@bmuenzenmeyer
Copy link
Member

Hey @Mateuspv

Have you checked out this on the wiki? I think it addresses your core desires.

In addition to that - the file system will be undergoing some changes in the future - but it will align with the PHP version per #133 and https://github.com/pattern-lab/patternlab-node/wiki/Proposed-filesystem-restructure

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

No branches or pull requests

2 participants