Comments (7)
Perhaps we should include these by default:
assets/static/favicon.ico
- the
assets
task, configured to copyassets/static/**/*
todist
from drizzle.
This relates to #40
from drizzle.
No one seems to feel strongly about where this lives. If this gets too big, this doesn't necessarily need to make it into 1.0
from drizzle.
Okay, I think I finally have an opinion on this. I wanted to share my "plan of attack" with @erikjung and @mrgerardorodriguez first before proceeding.
Directory Structure
I'm going to set aside for a moment the question of "is assets/
the right place for styles, scripts and/or images we plan on processing or compiling in some way?" That's a decent question, and I have opinions about it, but I realized it was getting in my way in terms of actually getting things done, so we should open a separate issue for discussion if we want to tackle that.
But in a perfect world, where would the static assets live?
For me, that's easy: ./src/static
. It's simple. It's descriptive. It's pretty common. And unlike "assets," I feel like it implies that no processing will occur on those items. The definition of "static" is "lacking in movement, action or change." It's perfect.
I don't think it should live higher up in the structure than ./src
. To me, ./src
should really be where I live as a designer-developer. I want those files in there.
Gulp task
As noted in cloudfour/core-gulp-tasks#26, the "assets" task is kind of a mess. To recap:
- We have a directory called
./src/assets
that, by default, contains only CSS and JavaScript. - We have a task called
assets
that does not do anything with CSS or JavaScript. - Said task includes
imagemin
, which is the largest dependency in the whole project. - We do not currently use the image optimization in any of our projects.
I would like to replace that task with a task called static
. It'll copy files from one directory to another directory. That's it.
If we ever want an image-processing task again, we should give it a name like images
to match our css
and js
tasks.
Plan of Attack
If all of that sounds good, the next steps would be to...
- cloudfour/core-gulp-tasks#26
- Rename
assets
task tostatic
- Remove image optimization stuff, including
package.json
dependencies - Update tests
- Bump package version
- Rename
- #33 #40
- Update
core-gulp-tasks
dependency - Add
src/static/favicon.ico
(good temp icon here) - Register and configure
static
task by default
- Update
But first...
Does all of that make sense?
from drizzle.
Works for me!
from drizzle.
Can we just call the task copy
instead of static
since it could in theory be used on any directory?
Otherwise,
from drizzle.
Can we just call the task
copy
instead of static since it could in theory be used on any directory?
Sure, totally fine by me.
from drizzle.
Related Issues (20)
- Standalone pages HOT 2
- Fresh build breaks due to outdated dependencies HOT 6
- The nav is broken HOT 2
- Use postcss-preset-env
- Make sure "e" isn't cut off on Drizzle logo
- Invalid name: "@cloudfour/hbs-helpers" HOT 5
- Unable to put new folders into pattern folder HOT 1
- Back-end Integrations HOT 18
- Notes property not working when defined via pattern collection HOT 1
- notice new/deleted files and update the browser HOT 1
- Handlebars Partial blocks don't work for Patterns HOT 12
- gracefully recover from errors in gulp chain HOT 1
- Could npm build errors get reported to the Drizzle UI somehow? HOT 1
- Adding arbitrary code samples to patterns HOT 2
- Using baseurl in patterns HOT 3
- Global variables not being complied in dist HOT 5
- Add .DS_Store to .gitignore HOT 1
- Discuss dev dependency gulp-gh-pages HOT 9
- Fix awkward size/positioning of drizzle logo in drizzle-Nav-header
- Frame-thumb max-width should be none
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drizzle.