GithubHelp home page GithubHelp logo

ga-wdi-boston / browser-template-archived Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 132.0 383 KB

CLICK HERE BEFORE YOU USE THIS TEMPLATE: http://i.imgur.com/UmjLrOc.gif

License: Other

JavaScript 87.09% HTML 11.71% CSS 1.20%

browser-template-archived's People

Contributors

cwilbur avatar jrhorn424 avatar micfin avatar payne-chris-r avatar realweeks avatar tdyer avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

browser-template-archived's Issues

Add jpg and png files to webpack

Where webpack tests for ttf | eot | svg files, it doesn't look for other image files. Add jpg | png after svg to include these file types when grunt serve/build is run.

Change to more conventional repository structure

In order to ease deployment, I suggest moving all files into a src or app directory, and then building to a dist directory. Additionally, using a tmp folder for deployment to github pages allows us to copy files to the gh-pages branch without using a .gitignore.

Add testing harness

Jasmine tests work on the node side, but we need browser tests on the client side. We'll need to integrate webpack into the testing pipeline somehow...

Add `grunt deploy` task

  • grunt build to dist directory (directory tracked in #21; dist is untracked and useful for local testing)
  • grunt deploy copies dist to tmp (tmp must be untracked)
  • git checkout gh-pages
  • grunt clean (git clean everything; not yet written)
  • copy tmp to current working directory
  • add all and commit with a release number
  • git checkout last branch

maps issue

Ethan was attempting to look for a defined variable, he put a debugger in right after and it was show as not defined. Web pack was uglyifying. Console.log work, breakpoint worked, but debugger didn't work. Doesn't work in chrome, works in safari, not in chrome canary.... Chrome bug?

Livereload without script tag

In grunt/webpack-dev-server-.js:

// enable live reload without a script tag
webpackConfig.entry.vendor.unshift("webpack-dev-server/client?http://localhost:8080");

Allow spaces in method shorthand syntax

Currently:

var y = {
-    fn () {    // BAD
+    fn() {     // GOOD
       return 42;
    }
}

I prefer the space (as does Ember), but I don't mind if it is missing. Change to .jscsrc, please add alphabetically by key:

+   "disallowSpaceAfterObjectKeys": {
+    "allExcept": ["method"] 
+  },

Webpack dev server and vendor bundle sadness

The fix for #23 caused an issue because I misunderstood how grunt configuration worked. I'm mutating the webpack config from the dev server config, and since all configs are parsed before any task runs, the mutation present in dev server config affects the webpack build process.

The result is that the dev server client code is bundled into vendor.bundle.js. Sadness ensues for deployed apps.

Ensure loading of minimal js, etc.

So, <library>.min.js or <library>.min.css or in the case of handlebars, handlebars.runtime.min.js (I think).

Others?

Test this to make sure it works before committing.

Update to use mocha for testing

Make more parallel with node-template.

Explore options for browser running tests (phantomjs, chrome, safari, firefox, others)

Add `.nojekyll` file to root of repository.

Re: GitHub Pages seems to be excluding files with "vendor" in the name

Hey Antony,

Thanks for reaching out! We've recently updated to Jekyll v3.3, which ignores vendored files by default. To include your vendored files in your build, you'll have to add this to your _config.yml file:

include:
  - vendor

Alternatively, if you're not using Jekyll, you can add a .nojekyll to the root of your repository to disable Jekyll completely during your site build, so those files won't be ignored.

Could you give that a try and let me know if that works?

Cheers,
Antonio
GitHub Support

Deploying a webpack built app with "vendor.bundle.js" or "vendor.js" stopped working sometime yesterday.

Renaming the file to a name without "vendor", I tried "bob.js" and "dependencies.js", worked fine.

Switch to webpack? (frontend-templates#4)

Browserify works just fine when downloading JS via npm. But, we should have a way of bundling stylesheets as well. I'm open to other options aside from webpack.

Ideally, these tools would:

  • Use manifest files (less important) to manage dependency orders, similar to rails pipeline
  • Be compatible with a watcher that would seamlessly recompile assets in the background

Actually, duojs is really exciting and very simple alternative to browserify, atomify, and webpack. For future iterations, the templates should utilize duojs.

For now, I'll replace browserify with atomify, since the latter behaves as the former, but also allows for css includes.


Webpack has what we need (for now). 😄

just a friend

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.