Skip to content

Commit fddd00a

Browse files
committed
Add example code for 3.2
1 parent 49f9d38 commit fddd00a

File tree

23 files changed

+11871
-0
lines changed

23 files changed

+11871
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 3.1 Laying out the elements with Flexbox
2+
3+
This lesson is built as a simple [Vue CLI](https://cli.vuejs.org/) app to better represent how a real-world project might be set up.
4+
5+
To get started, `cd` into this subfolder and run `npm install` to install the dependencies.
6+
7+
Use `npm run serve` to start the development server, or `npm run build` to compile the production assets to the `dist` folder.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

03-building-a-responsive-navbar/02-toggling-the-nav-links-on-mobile/package-lock.json

Lines changed: 11621 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "my-tailwind-project",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"dependencies": {
11+
"@fullhuman/postcss-purgecss": "^1.2.0",
12+
"autoprefixer": "^9.6.1",
13+
"core-js": "^2.6.5",
14+
"tailwindcss": "^1.1.0",
15+
"vue": "^2.6.10"
16+
},
17+
"devDependencies": {
18+
"@vue/cli-plugin-babel": "^3.9.0",
19+
"@vue/cli-plugin-eslint": "^3.9.0",
20+
"@vue/cli-service": "^3.9.0",
21+
"babel-eslint": "^10.0.1",
22+
"eslint": "^5.16.0",
23+
"eslint-plugin-vue": "^5.0.0",
24+
"vue-template-compiler": "^2.6.10"
25+
},
26+
"eslintConfig": {
27+
"root": true,
28+
"env": {
29+
"node": true
30+
},
31+
"extends": [
32+
"plugin:vue/essential",
33+
"eslint:recommended"
34+
],
35+
"rules": {},
36+
"parserOptions": {
37+
"parser": "babel-eslint"
38+
}
39+
},
40+
"browserslist": [
41+
"> 1%",
42+
"last 2 versions"
43+
]
44+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
plugins: [
3+
require('tailwindcss'),
4+
require('autoprefixer'),
5+
process.env.NODE_ENV === 'production' && require('@fullhuman/postcss-purgecss')({
6+
content: [
7+
'./src/**/*.vue',
8+
'./public/index.html',
9+
],
10+
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
11+
})
12+
]
13+
}
Binary file not shown.
639 KB
Loading
443 KB
Loading
391 KB
Loading

0 commit comments

Comments
 (0)