-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split classes out to separate files for easier authoring, merge using…
… shell script, lint JS
- Loading branch information
1 parent
3307562
commit c0285a4
Showing
10 changed files
with
1,155 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
#!/bin/bash | ||
|
||
# File: ./build-scripts/merge-js.sh | ||
# Allows classes to be authored in separate files but merged into frontend.js | ||
# for linting and transpiling to frontend-es5.js via wpdtrt-npm-scripts. | ||
# This script can be run via npm run merge:js | ||
# | ||
# Note: | ||
# chmod a+x = Change access permissions of this file, to 'e[x]ecutable' for '[a]ll users' | ||
# | ||
# Example: | ||
# --- | ||
# chmod a+x build-scripts/*.sh | ||
# --- | ||
|
||
# e: exit the script if any statement returns a non-true return value | ||
# v: print shell input lines as they are read (including all comments!) | ||
set -e | ||
|
||
cat ./js/classes/_config.js ./js/classes/*.js ./js/init.js > ./js/frontend.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable max-classes-per-file */ | ||
/* eslint-disable no-redeclare */ |
Oops, something went wrong.