Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Tests

on:
pull_request:
branches: [master]

on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm test
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm ci
- run: npm test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
.DS_Store
.gitignore
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

44 changes: 0 additions & 44 deletions CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion _src/iconset-bright_and_basic_icons.json

This file was deleted.

1 change: 0 additions & 1 deletion _src/iconset-satellite_icons.json

This file was deleted.

1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default} from 'eslint-config-mourner';
30 changes: 11 additions & 19 deletions generate_icons_table.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
var icons = require('maki/layouts/streets');
import icons from 'maki/layouts/streets.json' with {type: 'json'};

console.log('<table>')
for (var i in icons) {
console.log(
'<tr>',
`<th colspan="4">${i}</th>`,
'</tr>'
);
const base = 'https://raw.githubusercontent.com/mapbox/mapbox-gl-styles/master/sprites/bright-v9/_svg';

for (var j in icons[i]) {
var icon = icons[i][j];
console.log(
'<tr>',
`<td><img src="https://cdn.rawgit.com/mapbox/mapbox-gl-styles/master/sprites/bright-v9/_svg/${icon}-11.svg"></td>`,
`<td><code>${icon}-11</code></td>`,
`<td><img src="https://cdn.rawgit.com/mapbox/mapbox-gl-styles/master/sprites/bright-v9/_svg/${icon}-15.svg"></td>`,
`<td><code>${icon}-15</code></td>`,
'</tr>'
);
console.log('<table>');
for (const [category, list] of Object.entries(icons)) {
console.log(`<tr><th colspan="4">${category}</th></tr>`);
for (const icon of list) {
console.log(`<tr>
<td><img src="${base}/${icon}-11.svg"></td><td><code>${icon}-11</code></td>
<td><img src="${base}/${icon}-15.svg"></td><td><code>${icon}-15</code></td>
</tr>`);
}
}
console.log('</table>')
console.log('</table>');
Loading
Loading