Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added +extcore+ as a javascript option in project generator
- Loading branch information
Showing
7 changed files
with
40 additions
and
4 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
15 changes: 15 additions & 0 deletions
15
padrino-gen/lib/padrino-gen/generators/components/scripts/extcore_gen.rb
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,15 @@ | ||
module Padrino | ||
module Generators | ||
module Components | ||
module Scripts | ||
|
||
module ExtcoreGen | ||
def setup_script | ||
copy_file('templates/scripts/ext-core.js', destination_root("/public/javascripts/ext-core.js")) | ||
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here") | ||
end | ||
end # ExtCoreGen | ||
end # Scripts | ||
end # Components | ||
end # Generators | ||
end # Padrino |
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
8 changes: 8 additions & 0 deletions
8
padrino-gen/lib/padrino-gen/generators/templates/scripts/ext-core.js
Large diffs are not rendered by default.
Oops, something went wrong.
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