hamburg-freifunk-wp-theme/README.md

49 lines
934 B
Markdown
Raw Normal View History

2019-03-07 17:58:43 +01:00
# hamburg-freifunk-wp-theme (2019)
Wordpress Theme for the Website of Freifunk Hamburg, https://hamburg.freifunk.net with FoundationPress + Foundation 6 Sites
## Installation
2018-08-13 19:48:45 +02:00
2019-02-08 19:25:43 +01:00
FoundationPress relies to not-up-to-date dependencies, works with node.js ~6, use n to install older version node.js
2018-10-30 18:12:15 +01:00
2019-03-07 17:58:43 +01:00
`$ n 6`
2018-10-30 18:12:15 +01:00
2019-03-07 17:58:43 +01:00
Install gulp
2019-03-07 17:58:43 +01:00
`$ sudo npm -g install gulp`
2019-03-07 17:58:43 +01:00
Install node modules
2019-03-07 17:58:43 +01:00
`$ npm install`
2019-03-07 17:58:43 +01:00
If there is a problem with babel versions, like
`
babel-loader@8 requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'.
`
2019-03-07 17:58:43 +01:00
...try...
2019-03-07 17:58:43 +01:00
`$ npm install --save-dev babel-loader@7`
2019-03-07 17:58:43 +01:00
Keep dependencies updated
2019-03-07 17:58:43 +01:00
`$ ncu`
2019-03-07 17:58:43 +01:00
`$ ncu -u`
2018-10-30 18:12:15 +01:00
2019-03-07 17:58:43 +01:00
(Install ncu with `$ npm install -g npm-check-updates`)
2018-10-30 18:12:15 +01:00
2019-03-07 17:58:43 +01:00
## Development
2018-10-30 18:12:15 +01:00
2019-03-07 17:58:43 +01:00
During design/development, render SCSS etc:
2018-10-30 18:12:15 +01:00
2019-03-07 17:58:43 +01:00
`$ npm start`
2019-02-08 19:25:43 +01:00
2019-03-07 17:58:43 +01:00
## Depliy
2019-02-19 20:38:22 +01:00
2019-03-07 17:58:43 +01:00
Render and pack for deployment
2019-02-19 20:38:22 +01:00
2019-03-07 17:58:43 +01:00
`$ npm run package`
2019-02-19 20:38:22 +01:00
2019-03-07 17:58:43 +01:00
(zip file will be located in packaged folder)