Giter Site home page Giter Site logo

jaydenseric / barebones Goto Github PK

View Code? Open in Web Editor NEW
125.0 125.0 6.0 829 KB

A barebones boilerplate for getting started on a bespoke front end.

CSS 31.44% HTML 28.11% JavaScript 35.87% Shell 4.58%
babel cssnext eslint postcss stylelint webpack2 yarn

barebones's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

barebones's Issues

package.json upgrade

HI @jaydenseric, I noticed you upgraded some components in package.json.

To do the upgrade, could you please confirm: do I update the version numbers like you have in package.json, then simply run npm install?

Use Yarn

Yarn is super awesome for managing dependencies and should be used for faster and more "deterministic" installs.

Gulp build fails when there are no font icons.

Deleting the single default icon before a first build causes a Sass compilation error.

The _icons.scss partial is only generated when there is at least one icon to trigger the codepoints event in the icons task.

Removing all icon SVGs following a previously successful build does not remove config from the partial.

A solution would be to add a first step to the icons task that checks if any exist. If yes, the current process occurs. If no, the _icons.scss partial is created or updated empty.

How to Incorporate Bourbon?

Hello - if I wanted to incorporate, say, Bourbon.io or its various sub-modules like Neat / Bitters, or, Typeplate, would I add their files into the scss folder and link them into main.scss?

Sorry for the newbie question. I'm new to Sass and found @jaydenseric 's site informative.

Sincerely,
Rick

Upgrade to Webpack v2

Webpack v2 is just days away from releasing โ€“ we have been waiting for the official release before upgrading it again here. For a while Barebones utilized a very early pre-release version of v2 and had to downgrade due to bugs and deficient documentation for users wanting to tweak the config.

cssrecipes

Hi @jaydenseric, I wanted to test incorporating cssrecipes from https://github.com/cssrecipes, since they are by the same author of postcss-cssnext.

I used npm install to install the tooltip one, and then added its css to the gulpfile.js like in this gist:

https://gist.github.com/RickCogley/b53ec3d723cbbb10814d

Could you say what's best practice for adding this kind of component? After I edited the gulpfile.js to add the cssrecipe's index.css to the list, gulp does put the styles into the output file bundle.css.

Am I taking the right approach?

By the way, this tooltip works in Chrome, but not Safari. Both latest on Mac OS X El Capitan.

Make readme version badge dynamic

The version number in the readme badge is currently hardcoded and must be manually incremented. It is far better to replace it with this dynamic one that scrapes the latest Github release:

https://img.shields.io/github/release/jaydenseric/Barebones.svg?style=flat-square

support for more font format

The template just generate only woff base64 code in scss file. How to define the template that make it support for more font format and generate svg ttf eot base64 in scss file? Thanks

Issue with browserlist

Node Version: v7.0.0
NPM Version: v4.1.1

When running yarn run build:watch Webpack fails with the following error:

Child extract-text-webpack-plugin:
        + 1 hidden modules
    
    ERROR in ./~/css-loader?sourceMap&-autoprefixer&importLoaders=1!./~/postcss-loader!./components/app/index.css
    Module build failed: BrowserslistError: Unknown version 0 of and_chr
        at error (/Applications/MAMP/htdocs/Site/node_modules/browserslist/index.js:29:11)
        at Function.select (/Applications/MAMP/htdocs/Site/node_modules/browserslist/index.js:555:21)
        at /Applications/MAMP/htdocs/Site/node_modules/browserslist/index.js:180:41
        at Array.forEach (native)
        at browserslist (/Applications/MAMP/htdocs/Site/node_modules/browserslist/index.js:169:13)
        at isSupported (/Applications/MAMP/htdocs/Site/node_modules/caniuse-api/dist/index.js:75:10)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/lib/ensureCompatibility.js:87:66
        at /Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/selectors/container.js:170:26
        at Selector.each (/Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/selectors/container.js:153:22)
        at Selector.walk (/Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/selectors/container.js:169:21)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/selectors/container.js:173:31
        at Root.each (/Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/selectors/container.js:153:22)
        at Root.walk (/Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/selectors/container.js:169:21)
        at Processor.func (/Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/lib/ensureCompatibility.js:80:17)
        at Processor.process (/Applications/MAMP/htdocs/Site/node_modules/postcss-selector-parser/dist/processor.js:34:14)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/lib/ensureCompatibility.js:121:12
        at Array.every (native)
        at ensureCompatibility (/Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/lib/ensureCompatibility.js:77:22)
        at canMerge (/Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/index.js:74:44)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/index.js:222:24
        at /Applications/MAMP/htdocs/Site/node_modules/postcss/lib/container.js:241:28
        at /Applications/MAMP/htdocs/Site/node_modules/postcss/lib/container.js:148:26
        at Root.each (/Applications/MAMP/htdocs/Site/node_modules/postcss/lib/container.js:114:22)
        at Root.walk (/Applications/MAMP/htdocs/Site/node_modules/postcss/lib/container.js:147:21)
        at Root.walkRules (/Applications/MAMP/htdocs/Site/node_modules/postcss/lib/container.js:239:25)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss-merge-rules/dist/index.js:274:13
        at LazyResult.run (/Applications/MAMP/htdocs/Site/node_modules/postcss/lib/lazy-result.js:276:20)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss/lib/lazy-result.js:190:37
        at LazyResult.asyncTick (/Applications/MAMP/htdocs/Site/node_modules/postcss/lib/lazy-result.js:204:15)
        at /Applications/MAMP/htdocs/Site/node_modules/postcss/lib/lazy-result.js:202:27

If I remove "in AU" in the browserlist so it just reads "> 2%" everything compiles fine.

Thank you

Hi Jayden - just wanted to say thank you for your help. I launched my site refresh today.

http://rick.cogley.info/colophon/

I linked you in the colophon, but please let me know if you'd rather I link a different url from this repo. I'm happy to do so.

Kind regards,
Rick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.