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
{{ message }}
This repository was archived by the owner on Jun 1, 2020. It is now read-only.
A browser window should open, if not, open it manually and go to http://localhost:3000/ (or any other URL+PORT that your terminal says). You can start working right now in the code, and all the changes will be visible in the browser just opened.
62
+
A browser webpack server should be ready on http://localhost:8080/ (or any other URL+PORT that your terminal says). You can start working right now in the code, and all the changes will be visible in the browser just opened.
63
63
64
64
## Predefined components
65
65
But first, [What is Atomic Design?](http://bradfrost.com/blog/post/atomic-web-design/)
66
66
67
-
These components are just an idea on how to develop your application following the Atomic Design. Feel free to upgrade/delete
68
-
them in order to do your own app!
67
+
These components are just an idea on how to develop your application following the Atomic Design. Feel free to upgrade/delete them in order to do your own app!
69
68
70
69
#### Atoms (stateless component)
71
70
* Anchor
@@ -94,9 +93,7 @@ them in order to do your own app!
94
93
To create a new component, just create a new folder in the atoms/molecules/organisms/templates folder with the
95
94
name of your component.
96
95
97
-
Create now the React component in the js file. Also create your .scss file and remember to import it in the _style.scss
98
-
of the parent folder (For example, if you're creating a new atom called Checkbox, you should have `atoms/Checkbox/_style.scss`. So in
99
-
the main style file for atoms `atoms/_style.scss` just import your new scss file so it can be imported.
96
+
Create now the React component in the jsx file. Also create your .scss file and remember to import it in the component jsx file using `require`.
100
97
101
98
## NPM Scripts
102
99
This project comes with the following scripts to help you.
@@ -105,33 +102,18 @@ This project comes with the following scripts to help you.
105
102
npm run start
106
103
```
107
104
1. Create CSS and JS bundles from Sass and JS.
108
-
2. Launch a browsersync web server and open default browser.
105
+
2. Launch a web server.
109
106
3. Launch watchers on JS/CSS files.
110
107
111
108
```bash
112
-
npm run build-dev
113
-
```
114
-
1. Build CSS and JS from sources but does not start browsersync server.
115
-
116
-
```bash
117
-
npm run build-prod
109
+
npm run build
118
110
```
119
-
1. Build CSS and JS minified and ready for production but does not start browsersync server.
111
+
1. Build CSS and JS files. With this command, the js will be minified, the bundle version will be used in the html.
120
112
121
113
```bash
122
-
npm run start-server
123
-
```
124
-
1. Run the server serving the `/public` folder using browsersync.
125
-
126
-
```bash
127
-
npm run js-lint
114
+
npm run lint
128
115
```
129
116
1. Launch JS Lint checker.
130
117
131
-
```bash
132
-
npm run sass-lint
133
-
```
134
-
1. Launch SASS Lint checker.
135
-
136
118
## Contributions
137
119
Feel free to create a pull request or create an issue to add features or fix bugs.
0 commit comments