-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from nimblehq/release/5.6.0
Release/5.6.0
- Loading branch information
Showing
19 changed files
with
152 additions
and
64 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.iml | ||
out | ||
gen | ||
.vscode |
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
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
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ | |
<<~PROCFILE | ||
js: yarn build --watch | ||
css: yarn build:css --watch | ||
postcss: yarn build:postcss --watch | ||
PROCFILE | ||
end |
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 |
---|---|---|
|
@@ -11,18 +11,26 @@ | |
JSON | ||
end | ||
|
||
unless File.exist?('postcss.config.js') | ||
create_file 'postcss.config.js', | ||
<<~POSTCSS | ||
module.exports = { | ||
plugins: [ | ||
require('autoprefixer'), | ||
] | ||
} | ||
POSTCSS | ||
end | ||
|
||
# Install dependencies | ||
run 'yarn add [email protected]' | ||
run 'yarn add sass' | ||
run 'yarn add esbuild' | ||
run 'yarn add postcss postcss-cli autoprefixer' | ||
|
||
run 'yarn add --dev @nimblehq/[email protected]' | ||
run 'yarn add --dev stylelint' | ||
run 'yarn add --dev @nimblehq/stylelint-config-nimble' | ||
# TODO: Check again after removing Webpacker, need to use version 8 | ||
# https://github.com/bjankord/stylelint-config-sass-guidelines/issues/203#issuecomment-955620774 | ||
run 'yarn add --dev [email protected]' | ||
|
||
# Setup scripts | ||
run 'npm set-script eslint "eslint . --color"' | ||
run 'npm set-script eslint:fix "eslint . --color --fix"' | ||
|
@@ -33,13 +41,25 @@ | |
|
||
source_stylesheet = 'app/assets/stylesheets/application.scss' | ||
bundled_stylesheet = 'app/assets/builds/application.css' | ||
bundled_stylesheet_options = [ | ||
bundled_stylesheet_base_options = [ | ||
'--no-source-map', | ||
'--load-path=node_modules' | ||
] | ||
production_bundled_stylesheet_options = bundled_stylesheet_base_options + [ | ||
'--style=compressed' | ||
] | ||
|
||
run %(npm set-script build "node app/javascript/build.js") | ||
run %( | ||
npm set-script build:css-production \ | ||
"sass #{source_stylesheet} #{bundled_stylesheet} #{(production_bundled_stylesheet_options).join(' ')}" | ||
) | ||
run %( | ||
npm set-script build:css \ | ||
"sass #{source_stylesheet} #{bundled_stylesheet} #{bundled_stylesheet_options.join(' ')}" | ||
"sass #{source_stylesheet} #{bundled_stylesheet} #{bundled_stylesheet_base_options.join(' ')}" | ||
) | ||
run %(npm set-script postcss "postcss public/assets/*.css --dir public/assets --config ./") | ||
run %( | ||
npm set-script build:postcss \ | ||
"postcss app/assets/builds/*.css --dir app/assets/builds --config ./", | ||
) |
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
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,27 @@ | ||
include .env | ||
|
||
.PHONY: dev env/setup env/teardown codebase codebase/fix | ||
|
||
dev: | ||
make install-dependencies | ||
make env/setup | ||
./bin/dev | ||
|
||
env/setup: | ||
./bin/envsetup.sh | ||
rails db:prepare | ||
|
||
env/teardown: # this command will delete data | ||
./bin/envteardown.sh | ||
|
||
install-dependencies: | ||
bundle install | ||
yarn install | ||
|
||
codebase: | ||
rubocop | ||
yarn codebase | ||
|
||
codebase/fix: | ||
rubocop -a | ||
yarn codebase:fix |
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
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker compose -f docker-compose.dev.yml down |
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
Oops, something went wrong.