You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asteroids includes a SASS, jQuery and [PUG](https://github.com/pugjs/pug), a super cool template engine.
10
+
Asteroids include SASS, jQuery and [PUG](https://github.com/pugjs/pug), a super cool template engine.
8
11
9
12
## Quickstart
10
-
Install [Node.js](https://nodejs.org/) and [Gulp](https://gulpjs.com) to run this starter kit.
11
-
1. Download or clone the repository (You can download it with Bower: `$ bower install asteroids-kit`)
12
-
2. Install the local dependencies with `$ npm install`
13
-
3. Run the kit with `$ gulp go`
14
13
15
-
## Gulp tasks
16
-
### Launch a webserver for development
17
-
```
18
-
$ gulp go
14
+
Install [Node.js](https://nodejs.org/) and [Gulp4](https://gulpjs.com) to run this starter kit.
15
+
16
+
1. Download or clone the repository
17
+
2. Install the local dependencies with `$ npm i`
18
+
3. Run the kit with `$ npm start`
19
+
20
+
## Tasks
21
+
22
+
### Launch a web server for development
23
+
24
+
```shell
25
+
$ npm start
19
26
```
20
-
Launch a webserver with browserSync to work on your proyect. Several watchers will have their eyes on your PUG/SCSS/JS files to reload your connected browsers when needed.
27
+
28
+
Launch a web server with browserSync to work on your project. Several watchers will have their eyes on your PUG/SCSS/JS files to reload your connected browsers when needed.
21
29
22
30
### Process a production-ready distribution
23
-
```
31
+
32
+
```shell
24
33
$ gulp deploy
25
34
```
35
+
26
36
Delete and reprocess the public folder with optimized versions of your HTML/CSS/JS files.
27
37
28
38
### Compress a production-ready distribution
29
-
```
39
+
40
+
```shell
30
41
$ gulp zipit
31
42
```
32
43
Delete and reprocess the public folder with optimized versions of your HTML/CSS/JS files and compress it in a .zip file.
33
44
45
+
You can customize the name of the ZIP document editing the config.json file ;)
46
+
47
+
Optionally you can add a keyword to this ZIP file:
48
+
49
+
```shell
50
+
$ gulp zipit -b keyword
51
+
```
52
+
It will generate an ignored `DDMMYY-keyword-project-name.zip` file
53
+
54
+
55
+
34
56
## Folder structure
35
-
Our **gulpfile.js** uses a configuraton JSON file to set source and destination files of the project.
57
+
58
+
Our **gulpfile.js** uses a configuration JSON file to set source and destination files of the project.
36
59
Check config.json out and edit what you need.
37
60
38
-
The folder structure looks like:
39
-
```
61
+
The project folder structure looks like this:
62
+
63
+
```txt
40
64
/
41
65
|- _source
42
66
| |- assets
43
67
| | |- icons
44
68
| | |- img
45
-
| | | `- layout
46
69
| | `- js
47
-
| | `- vendor
70
+
| | `- vendor
48
71
| |- js
72
+
| | |- components
49
73
| | `- plugins
50
74
| |- scss
51
75
| | |- components
@@ -59,39 +83,43 @@ The folder structure looks like:
59
83
`- assets
60
84
|- css
61
85
|- img
62
-
| `- layout
63
86
`- js
64
-
`- vendor
65
87
```
66
88
67
-
68
89
## CSS
69
-
Asteroids does not include a CSS reset stylesheet anymore but we have included two awesome tools:
90
+
91
+
Asteroids do not include a CSS reset stylesheet anymore, but we have added two awesome tools:
92
+
70
93
* A **csscomb** JSON file to use with your code editor as your own risk :)
71
-
* The risky [**gulp-combine-mq**](https://www.npmjs.com/package/gulp-combine-mq) package to group ans combine all your mediaqueries.
94
+
* The risky [**gulp-combine-mq**](https://www.npmjs.com/package/gulp-combine-mq) package to group and combine all your media queries.
72
95
73
96
## JS
74
-
**Asteorids** uses JQuery, Modernizr and two JS files, main.js and plugins.js, located before the `</body>` tag. The custom build of Modernizr is loaded in the `<head>` section of the page.
97
+
98
+
**Asteroids** use JQuery, Modernizr and two JS files, main.js, and plugins.js, located before the `</body>` tag. You can find the custom build of Modernizr in the `<head>` section of the page.
0 commit comments