archetype-base 1.0.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b5fb2fdd47923c55c69baffb93d421d1cfedbf44
4
+ data.tar.gz: e827f30a4a40f322ef5bb416afc8278a8fae980e
5
+ SHA512:
6
+ metadata.gz: 63e4245999dc77cf1636bb0846a45043b90a9734d71701bfb465c515364d3ccc1c1a862fe219c56599edbddc365b46a826167d0cefddfa5838cc5026c3d2a6b7
7
+ data.tar.gz: 0c861e5c808b45cfb2388be31d180545390f577c93747dc3e129031c98ef689e56719d782ef32cbff00c652561ff4c521587ece318f76414b8625906d7c1b6b7
data/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ Archetype
2
+ Copyright (c) 2013 LinkedIn Corp. All rights reserved.
3
+ Apache Software License 2.0
4
+
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ module ArchetypeBase
2
+ VERSION = File.read(File.join(File.dirname(__FILE__), "..", "..", "VERSION")).strip
3
+ end
@@ -0,0 +1,9 @@
1
+ require 'archetype'
2
+
3
+ #
4
+ # register as an Archetype extension
5
+ #
6
+ Archetype::Extensions.register(
7
+ File.basename(__FILE__, '.rb'),
8
+ :path => File.expand_path(File.join(File.dirname(__FILE__), ".."))
9
+ )
@@ -0,0 +1,44 @@
1
+ // ensure the core is loaded
2
+ @import "archetype/core";
3
+
4
+ // @category base
5
+
6
+ // sets the base styles for the page (e.g. reset or normalize)
7
+ // @mixin base
8
+ // @param $exclude {List} the list of styles to exclude @see _normalize.scss and _reset.scss
9
+ // @param $method {String} reset method [reset|normalize|h5bp|hybrid]
10
+ // @param $force {Boolean} force reset to invoke; by default base() can only be invoked once, to re-invoke must pass in $force: true
11
+ @mixin base($exclude: $CONFIG_RESET_EXCLUDES, $method: $CONFIG_RESET_METHOD, $force: false) {
12
+
13
+ $unknown-method: "[archetype:base:unknown] the base method `base-#{$method}` does not exist or is not recognized";
14
+
15
+ // ensure the mixin exists before we can call it
16
+ @if mixin-exists('base-#{$method}') {
17
+ // normalize
18
+ @if $method == normalize {
19
+ @include base-normalize($exclude: $exclude);
20
+ }
21
+ // html5 boiler plate
22
+ @else if $method == h5bp {
23
+ @include base-h5bp($exclude: $exclude);
24
+ }
25
+ // hyrbid reset (reset + some normalize)
26
+ @else if $method == hybrid {
27
+ @include base-hybrid($exclude: $exclude);
28
+ }
29
+ // custom (user set)
30
+ @else if $method == custom {
31
+ @include base-custom($exclude: $exclude);
32
+ }
33
+ // default to reset
34
+ @else if $method == reset {
35
+ @include base-reset($exclude: $exclude);
36
+ }
37
+ @else {
38
+ @warn $unknown-method;
39
+ }
40
+ }
41
+ @else {
42
+ @warn $unknown-method;
43
+ }
44
+ }
@@ -0,0 +1,6 @@
1
+ @import "core";
2
+
3
+ @include unless-archetype-module-initalized(archetype/base) {
4
+ /* intializing base/init */
5
+ @include base();
6
+ }
@@ -0,0 +1,4 @@
1
+ description "An Archetype extension that provides hooks into using HTML5 Boilerplate's CSS reset"
2
+
3
+ no_configuration_file!
4
+ skip_compilation!
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: archetype-base
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.alpha.1
5
+ platform: ruby
6
+ authors:
7
+ - Eugene ONeill
8
+ - LinkedIn
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-03-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: archetype
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 1.0.0.alpha.1
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 1.0.0.alpha.1
28
+ description: An Archetype extension for defining the base of your page
29
+ email: oneill.eugene@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/CHANGELOG.md"
35
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/README.md"
36
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/VERSION"
37
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/lib/archetype-base.rb"
38
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/lib/archetype-base/version.rb"
39
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/stylesheets/archetype/_base.scss"
40
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/stylesheets/archetype/base/_core.scss"
41
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/stylesheets/archetype/base/_init.scss"
42
+ - "/Users/eoneill/workspace/archetype/extensions/archetype-base/templates/project/manifest.rb"
43
+ - LICENSE
44
+ homepage: http://www.archetypecss.com/extensions/archetype-base
45
+ licenses:
46
+ - Apache License (2.0)
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.3.1
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.2.2
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: Archetype Base Extension
68
+ test_files: []
69
+ has_rdoc: