Skip to content

Commit 4aa56fa

Browse files
committed
Initial commit
0 parents  commit 4aa56fa

File tree

107 files changed

+6922
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+6922
-0
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Cloud Four
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Mozilla Design System
2+
3+
A modular design system for Mozilla websites.
4+
5+
## Quick Start
6+
7+
This pattern library is based on [Drizzle](https://github.com/cloudfour/drizzle/), which is itself based on [Fabricator](https://fbrctr.github.io/). It's essentially a Node-based static site generator, and uses [Gulp](https://gulpjs.com/) as a task runner for local development.
8+
9+
0. Ensure you have [Node.js](https://nodejs.org/) installed.
10+
1. Clone this repository.
11+
2. Run `npm start` in the resulting directory.
12+
13+
This will install dependencies, build the site, and start the development server at <http://localhost:3000>.
14+
15+
See the docs for more.
16+
17+
## Documentation
18+
19+
- [Getting Started](docs#getting-started)
20+
- [Project Structure](docs#project-structure)
21+
- [Gulp Tasks](docs#tasks)
22+
23+

browserslist

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Update as needed once browser support is determined.
2+
# See: https://github.com/ai/browserslist#config-file
3+
4+
Last 1 version

config.js

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
'use strict';
2+
3+
module.exports = {
4+
'css:pebbles': {
5+
src: './src/assets/css/pebbles/*.css',
6+
dest: './dist/assets/css/pebbles',
7+
name: 'css:pebbles'
8+
},
9+
10+
'css:system': {
11+
src: './src/assets/css/system/*.css',
12+
dest: './dist/assets/css/system',
13+
name: 'css:system'
14+
},
15+
16+
// 'css:drizzle': {
17+
// src: './src/assets/**/drizzle.css',
18+
// dest: './dist/assets',
19+
// prefix: 'drizzle-',
20+
// name: 'css:drizzle'
21+
// },
22+
23+
copy: {
24+
src: './src/static/**/*',
25+
dest: './dist/static'
26+
},
27+
28+
js: {
29+
plugins: {
30+
webpack: {
31+
entry: {
32+
// Drizzle UI scripts
33+
// 'drizzle/scripts/drizzle':
34+
// './src/assets/drizzle/scripts/drizzle.js',
35+
// Common toolkit scripts
36+
// 'toolkit/scripts/toolkit':
37+
// './src/assets/toolkit/scripts/toolkit.js'
38+
},
39+
output: {
40+
path: './dist/assets',
41+
filename: '[name].js'
42+
},
43+
module: {
44+
loaders: [
45+
{
46+
test: /\.js$/,
47+
loaders: ['babel-loader']
48+
}
49+
]
50+
},
51+
externals: {}
52+
}
53+
}
54+
},
55+
56+
serve: {
57+
plugins: {
58+
browserSync: {
59+
open: false,
60+
notify: false,
61+
files: ['./dist/**/*'],
62+
server: { baseDir: './dist' }
63+
}
64+
}
65+
},
66+
67+
watch: {
68+
watchers: [
69+
{
70+
match: ['./src/static/**/*'],
71+
tasks: ['copy']
72+
},
73+
{
74+
match: ['./src/assets/**/*.css'],
75+
tasks: ['css']
76+
},
77+
{
78+
match: ['./src/assets/**/*.js'],
79+
tasks: ['js']
80+
},
81+
{
82+
match: [
83+
'./src/**/*.hbs',
84+
'./src/data/**/*'
85+
],
86+
tasks: ['drizzle']
87+
}
88+
]
89+
},
90+
91+
drizzle: {
92+
beautifier: {
93+
/* eslint-disable camelcase */
94+
indent_char: ' ',
95+
indent_size: 2,
96+
indent_with_tabs: false,
97+
max_preserve_newlines: 1,
98+
wrap_line_length: 0,
99+
unformatted:
100+
`a abbr acronym address b bdo big cite code col del dfn dt em font
101+
h1 h2 h3 h4 h5 h6 i img ins kbd mark pre q s samp small span
102+
strike strong sub sup tt u var`.split(' ')
103+
/* eslint-enable camelcase */
104+
},
105+
src: {
106+
patterns: {
107+
basedir: './src/patterns',
108+
glob: './src/patterns/**/*.hbs'
109+
},
110+
templates: {
111+
basedir: './src/templates',
112+
glob: './src/templates/**/*.hbs'
113+
}
114+
},
115+
dest: {
116+
pages: './dist',
117+
patterns: './dist/patterns'
118+
},
119+
fieldParsers: {
120+
notes: 'markdown'
121+
}
122+
}
123+
};

0 commit comments

Comments
 (0)