Skip to content

Commit a6e7015

Browse files
authored
Move to a Metalsmith based static generated site with new design (#62)
* clean up for metalsmith PoC * metalsmith PoC * add basic nutjuck * remove handlebars * structure layouts and component folders * create an event from a fake file (stubbed api) * use yarn * Add README.md * Add sass support * Remove build folder from repo * Reestrucutre folders * Base scss structure * Add basic next events layout * Show upcoming events * Show time in Madrid timezone * Add basic event page and navigation * Use variables for margins * Add event details * Add editor config * Improve readability * Add actions to event buttons * Fixes 53. Add title & description for opengraph * Add links to footer * Basic new event form * Add navigation to new event form * Add html5 required validation * Fix typos in readme * prepare repo to hold js files * Fix routes * Add date, time inputs and css validation * Fix empty event hashtag image * Submit new event form to api, show notifications * Serve logo from assets * Read correct env variable for api root * Add media queries * Able to consume https apis * Fix datetime format * Fix timezone * Sanitize markdowns to avoid simple xss * Improve page titles * Basic job listing, detail and form * Add style to job detail * Add job links to footer * Add freshness info to jobs * Add files via upload * Add font * Add link base style * Add style to event image hover * Add more styles * Add selection style * Send new job * Refactor production build * Add css, js fingerprint * Add favicon * Refactor build file * Refactor, move api version to api root * Add Content Security Policy. Fix some favicons * Improve styles for menu, buttons. Add CoC to new conference * Randomize nonce * Add rss to jobs and events * Add company name to rss item title. Refactor * Fix event img size in mobile * Make next event clickable area bigger * Force code blocks to repect column rule * Use api through its dns * Make event page more like job page * Remove hr from footer * Remove hr from job board * Extend contribution guide * Add info in contribution guide on how to launch the site using Python 3 * Configure ESLint and Prettier Format all files, resolve all linting errors and configure a lint workflow for GitHub Actions. * Use VLCTechHub API v2 * Use two-phase publishing workflow with API v2 * Add license text
1 parent 28bb742 commit a6e7015

File tree

246 files changed

+6106
-5749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+6106
-5749
lines changed

.bowerrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.editorconfig

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
root = true
66

7-
87
[*]
98
end_of_line = lf
109
charset = utf-8
@@ -13,22 +12,8 @@ insert_final_newline = true
1312
indent_style = space
1413
indent_size = 2
1514

16-
[*.js]
17-
indent_style = space
18-
indent_size = 2
19-
20-
[*.hbs]
15+
[*.njk]
2116
insert_final_newline = false
22-
indent_style = space
23-
indent_size = 2
24-
25-
[*.css]
26-
indent_style = space
27-
indent_size = 2
28-
29-
[*.html]
30-
indent_style = space
31-
indent_size = 2
3217

3318
[*.{diff,md}]
3419
trim_trailing_whitespace = false

.ember-cli

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/bin/
2+
/dist/
3+
/tmp/
4+
/node-modules/

.eslintrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"env": {
4+
"es6": true,
5+
"node": true,
6+
"browser": true
7+
},
8+
"globals": {
9+
"Site": "readonly"
10+
},
11+
"parserOptions": {
12+
"ecmaVersion": 2018
13+
},
14+
"rules": {
15+
"indent": ["error", 2],
16+
"linebreak-style": ["error", "unix"],
17+
"quotes": ["error", "single"],
18+
"semi": ["error", "never"],
19+
"no-console": "off"
20+
}
21+
}

.github/workflows/lint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
ESLint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout source code
10+
uses: actions/checkout@v1
11+
- name: Set up Node 10.x
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 10.x
15+
- name: Set up ESLint
16+
run: npm install --global eslint
17+
- name: Run ESLint checks
18+
run: eslint .
19+
20+
Prettier:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout source code
24+
uses: actions/checkout@v1
25+
- name: Setup up Node 10.x
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: 10.x
29+
- name: Set up Prettier
30+
run: npm install --global prettier
31+
- name: Run Prettier checks
32+
run: prettier -c "**/*.{md,scss,js,json}"

.github/workflows/site-refresh.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,29 @@ name: Refresh site in Surge
22

33
on:
44
schedule:
5-
- cron: '*/15 * * * *'
5+
- cron: "*/15 * * * *"
66
jobs:
77
refresh:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
10+
- name: Checkout source code
11+
uses: actions/checkout@v1
12+
- name: Set up Node 10.x
13+
uses: actions/setup-node@v1
1114
with:
12-
ref: metalsmith
13-
- uses: actions/setup-node@v1
14-
with:
15-
node-version: 12
16-
- run: yarn install
17-
- run: yarn run build
15+
node-version: 10.x
16+
- name: Set up dependencies
17+
run: yarn install
18+
- name: Build site
19+
run: yarn run build
1820
env:
1921
NODE_ENV: production
20-
- run: npx surge --project $GITHUB_WORKSPACE/dist --domain vlctechhub-revamp.surge.sh
22+
- name: Publish site to Surge
23+
run: npx surge --project $GITHUB_WORKSPACE/dist --domain vlctechhub.org
2124
env:
22-
SURGE_LOGIN: ${{secrets.SURGE_LOGIN}}
25+
SURGE_LOGIN: ${{secrets.SURGE_LOGIN}}
2326
SURGE_TOKEN: ${{secrets.SURGE_TOKEN}}
27+
- name: Report published items
28+
run: yarn run report-published
29+
env:
30+
NODE_ENV: production

.gitignore

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist
5-
/tmp
4+
/tmp/
5+
/dist/
66

77
# dependencies
8-
/node_modules
9-
/bower_components
8+
/node_modules/
109

1110
# misc
1211
/.sass-cache
13-
/connect.lock
14-
/coverage/*
15-
/libpeerconnection.log
16-
npm-debug.log*
17-
testem.log
12+
/testem.log
13+
/yarn-error.log
14+

.jshintrc

Lines changed: 0 additions & 32 deletions
This file was deleted.

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/bin/
2+
/dist/
3+
/tmp/
4+
/node-modules/

0 commit comments

Comments
 (0)