-
-
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.
v2.0.0 - Complete overhaul with compiling and linting (#6)
* v2.0.0 - Complete overhaul with compiling and linting * Massive progress commit * Progress commit * Add compile to build, change name for NPM
- Loading branch information
1 parent
58292b4
commit 875e4e6
Showing
69 changed files
with
13,444 additions
and
1,201 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"jquery": true | ||
}, | ||
"extends": [ | ||
"standard" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"rules": {} | ||
} |
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 @@ | ||
github: [Justintime50] |
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,33 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run CSS lint | ||
run: npm run lint-css | ||
- name: Run JS lint | ||
run: npm run lint-js | ||
compile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Compile assets | ||
run: npm run compile |
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,24 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Publish to NPM | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.idea | ||
.DS_Store | ||
*.css | ||
*.css.map | ||
node_modules |
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,3 @@ | ||
{ | ||
"extends": "stylelint-config-standard" | ||
} |
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 |
---|---|---|
@@ -1,5 +1,25 @@ | ||
# CHANGELOG | ||
|
||
## v2.0.0 (2021-06-03) | ||
|
||
* Pineapple CSS is now completely `SCSS` and gets compiled upon release to a beautified and minified version along with source maps | ||
* Pineapple JS is now compile to a beautified and minified version along with source maps | ||
* Introduced linters and linted the entire project fixing hundreds of errors and best practices | ||
* Cut out a lot of fluff in the JS of the library | ||
* Added much needed inline comments and additional documentation on how to use the library and what each piece does | ||
* Cleaned up themes, removed unneeded assets, and now use `SCSS` for theme CSS, compiled just like the library | ||
* Unified color palette by using SCSS variables and less variations of each color | ||
* Fixed various bugs related to Javascript functions and CSS including: | ||
* Years long bug where smooth-scrolling would scroll to the right location but then jump back to the anchor point (without the offset) | ||
* Smooth scrolling buttons now actually scroll instead of jumping | ||
* Pineapple no longer sets the `.navbar` background-color to initial | ||
* Dozens of other small bugs throughout the JS and CSS | ||
* Changed `.pa-loaderDiv` to `.pa-loader-div` to match the style of dash notation for all classes | ||
|
||
## v1.0.0 (2020) | ||
|
||
* Stable release | ||
|
||
## v0.1.0 (2017) | ||
|
||
* Initial release, compatible with Bootstrap 3 |
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,46 @@ | ||
#!/bin/bash | ||
|
||
# Compiles the Pineapple SCSS to CSS | ||
|
||
main() { | ||
echo "Compiling Pineapple assets..." | ||
compile_readable_css | ||
compile_minified_css | ||
compile_readable_js | ||
compile_minified_js | ||
echo "Script complete!" | ||
} | ||
|
||
compile_readable_css() { | ||
# Pineapple | ||
./node_modules/.bin/node-sass pineapple/scss/pineapple.scss pineapple/dist/css/pineapple.css --output-style expanded --source-map true | ||
./node_modules/.bin/node-sass pineapple/scss/pineapple-styles.scss pineapple/dist/css/pineapple-styles.css --output-style expanded --source-map true | ||
./node_modules/.bin/node-sass pineapple/scss/pineapple-utilities.scss pineapple/dist/css/pineapple-utilities.css --output-style expanded --source-map true | ||
|
||
# Templates | ||
./node_modules/.bin/node-sass templates/coming-soon/coming-soon.scss templates/coming-soon/assets/css/coming-soon.css --output-style expanded --source-map true | ||
./node_modules/.bin/node-sass templates/waterfall/waterfall.scss templates/waterfall/assets/css/waterfall.css --output-style expanded --source-map true | ||
} | ||
|
||
compile_minified_css() { | ||
# Pineapple | ||
./node_modules/.bin/node-sass pineapple/scss/pineapple.scss pineapple/dist/css/pineapple.min.css --output-style compressed --source-map true | ||
./node_modules/.bin/node-sass pineapple/scss/pineapple-styles.scss pineapple/dist/css/pineapple-styles.min.css --output-style compressed --source-map true | ||
./node_modules/.bin/node-sass pineapple/scss/pineapple-utilities.scss pineapple/dist/css/pineapple-utilities.min.css --output-style compressed --source-map true | ||
|
||
# Templates | ||
./node_modules/.bin/node-sass templates/coming-soon/coming-soon.scss templates/coming-soon/assets/css/coming-soon.min.css --output-style compressed --source-map true | ||
./node_modules/.bin/node-sass templates/waterfall/waterfall.scss templates/waterfall/assets/css/waterfall.min.css --output-style compressed --source-map true | ||
} | ||
|
||
compile_readable_js() { | ||
./node_modules/.bin/uglifyjs pineapple/js/pineapple.js --beautify --no-annotations --source-map --verbose --output pineapple/dist/js/pineapple.js | ||
echo "Readable JS step complete" | ||
} | ||
|
||
compile_minified_js() { | ||
./node_modules/.bin/uglifyjs pineapple/js/pineapple.js --source-map --verbose --output pineapple/dist/js/pineapple.min.js | ||
echo "Compressed JS step complete" | ||
} | ||
|
||
main |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.