gabrielgio.me @ efeff0b95653056677bdf6fecc3064bc813b555a

 1## Welcome to the SRC folder for the Gohugo Ananke Theme.
 2
 3The contents of this folder are used to generate CSS and javascript. You may never have to touch anything here,  unless you want to more deeply customize your styles.
 4
 5## Tools
 6
 7### Yarn
 8
 9We use [Yarn](https://yarnpkg.com) for package managment (instead of NPM) because it's fast and generates a lock file to make dependency management more consistent. The theme's `.gitignore` file should be kept intact to make sure that all files in the `node_modules` folder are not pushed to the repository.
10
11### Webpack
12
13We use Webpack to manage our asset pipeline. Arguably, Webpack is overkill for this use-case, but we're using it here because once it's set up (which we've done for you), it's really easy to use. If you want to use an external script, just add it via Yarn, and reference it in main.js. You'll find instructions in the js/main.js file.
14
15### PostCSS
16PostCSS is just CSS. You'll find `postcss.config.js` in the css folder. There you'll find that we're using [`postcss-import`](https://github.com/postcss/postcss-import) which allows us import css files directly from the node_modules folder, [`postcss-cssnext`](http://cssnext.io/features/) which gives us the power to use upcoming CSS features today. If you miss Sass you can find PostCss modules for those capabilities, too.
17
18
19### Tachyons
20
21This theme uses the [Tachyons CSS Library](http://tachyons.io/). It's about 15kb gzipped, highly modular, and each class is atomic so you never have to worry about overwriting your styles. It's a great library for themes because you can make most all the style changes you need right in your layouts.
22
23## How to Use
24
25You'll find the commands to run in `src/package.json`.
26
27For development, you'll need Node and Yarn installed:
28
29```
30$ cd themes/gohugo-theme-ananke/src/
31
32$ yarn install
33
34$ npm start
35
36```
37This will process both the postcss and scripts.
38
39For production, instead of `npm start`, run `npm run build:production,` which will output minified versions of your files.