File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,17 +17,11 @@ jobs:
1717
1818 - run : npm install
1919
20- - run : npm run build
21-
22- - name : Copy files
23- run : |
24- mkdir _site
25- cp -r pages _site
26- cp -r dist _site
20+ - run : npm run buildSite
2721
2822 - name : Fix permissions
2923 run : |
30- chmod -c -R +rX "_site /" | while read line; do
24+ chmod -c -R +rX "pages /" | while read line; do
3125 echo "::warning title=Invalid file permissions automatically fixed::$line"
3226 done
3327
Original file line number Diff line number Diff line change 11node_modules /
22dist /
3- _site /
3+ pages / hotkey
Original file line number Diff line number Diff line change 1414 "clean" : " rm -rf dist" ,
1515 "prebuild" : " npm run clean && npm run lint && mkdir dist" ,
1616 "pretest" : " npm run build" ,
17- "prepublishOnly" : " npm run build"
17+ "prepublishOnly" : " npm run build" ,
18+ "buildSite" : " npm run build && mkdir -p pages/hotkey && cp -r dist/* pages/hotkey"
1819 },
1920 "files" : [
2021 " dist" ,
Original file line number Diff line number Diff line change 1717 < a href ="#ok " data-hotkey ="o k "> Press < kbd > o k</ kbd > click this link</ a >
1818
1919 < script type ="module ">
20- import { install } from '../dist /index.js'
20+ import { install } from './hotkey /index.js'
2121
2222 for ( const el of document . querySelectorAll ( '[data-hotkey]' ) ) {
2323 install ( el )
Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ <h1 id="app-name">Hotkey Code</h1>
4646 </ div >
4747
4848 < script type ="module ">
49- import { eventToHotkeyString } from '../dist /index.js'
50- import { SEQUENCE_DELIMITER , SequenceTracker } from '../dist /sequence.js'
49+ import { eventToHotkeyString } from './hotkey /index.js'
50+ import { SEQUENCE_DELIMITER , SequenceTracker } from './hotkey /sequence.js'
5151
5252 const hotkeyCodeElement = document . getElementById ( 'hotkey-code' )
5353 const sequenceStatusElement = document . getElementById ( 'sequence-status' )
5454 const resetButtonElement = document . getElementById ( 'reset-button' )
5555
56- const SequenceTracker = new SequenceTracker ( {
56+ const sequenceTracker = new SequenceTracker ( {
5757 onReset ( ) {
5858 sequenceStatusElement . hidden = true
5959 }
You can’t perform that action at this time.
0 commit comments