Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Mar 25, 2021
0 parents commit b441257
Show file tree
Hide file tree
Showing 59 changed files with 11,155 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
["@shopify/babel-preset/web", {
"browsers": [
"last 3 versions"
],
"modules": false
}]
],
"plugins": [
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import"
]
}
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/assets/static/
dist/
node_modules/
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": [
"plugin:shopify/esnext",
"prettier"
],
"env": {
"jest": true,
"browser": true
},
"rules": {
"babel/no-invalid-this": 0,
"import/no-anonymous-default-export": 0,
"import/no-unresolved": ["error", {"ignore": ["^jquery"]}],
"no-alert": 0,
"no-console": 0,
"no-new": 0,
"node/shebang": 0
},
"globals": {
"document": true,
"window": true,
"Shopify": true,
"theme": true
}
}
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Vendor
node_modules

# IDE files
.idea
.history

# Env settings
packer.env.json
config.json
config.yml

# Webpack assets and autogenerated files
/dist
/src/snippets/style-tags.liquid
/src/snippets/script-tags.liquid
/src/assets/template.*
/src/assets/layout.*
/src/assets/vendors@*
Empty file added .prettierignore
Empty file.
Empty file added .prettierrc.json
Empty file.
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/
node_modules/
styles/vendor
styles/tools
24 changes: 24 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"plugins": [
"stylelint-scss",
],
"extends": [
"stylelint-config-recommended-scss",
"stylelint-config-shopify",
"stylelint-prettier/recommended",
"stylelint-config-prettier"
],
"rules": {
"color-no-hex": null,
"indentation": 2,
"max-nesting-depth": 2,
"max-empty-lines": 1,
"declaration-no-important": true,
"selector-class-pattern": null,
"selector-no-qualifying-type": null,
"selector-max-type": null,
"no-empty-source": null,
"no-empty-first-line": true,
"scss/selector-no-redundant-nesting-selector": true,
}
}
15 changes: 15 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"types": [
{"type":"feat","section":":rocket: Features"},
{"type":"fix","section":":bug: Bug Fixes"},
{"type":"docs","section":":memo: Documentation"},
{"type":"wrench","section":":wrench: Config"},
{"type":"test","section":"Tests", "hidden": false},
{"type":"build","section":":memo: Build System", "hidden": false},
{"type":"ci","hidden":true},
{"type":"chore","hidden":true}
],
"skip" : {

}
}
69 changes: 69 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## <small>1.0.9 (2021-01-12)</small>

* config: .versionrc file added ([f594230](https://github.com/hayes0724/packer-blank-theme/commit/f594230))
* Bump ini from 1.3.5 to 1.3.7 ([aa7e199](https://github.com/hayes0724/packer-blank-theme/commit/aa7e199))
* Fix missing double quote in layout/theme.liquid ([db9cc6d](https://github.com/hayes0724/packer-blank-theme/commit/db9cc6d))
* Update name to use "theme_info" object ([9914c4b](https://github.com/hayes0724/packer-blank-theme/commit/9914c4b))



## <small>1.0.8 (2020-12-11)</small>

* chore: updated ignored files ([16a068b](https://github.com/hayes0724/packer-blank-theme/commit/16a068b))
* feat: body class set to template name and suffix ([f995581](https://github.com/hayes0724/packer-blank-theme/commit/f995581))
* docs: changelog added ([9130636](https://github.com/hayes0724/packer-blank-theme/commit/9130636))



## <small>1.0.7 (2020-10-05)</small>

* feat: new config files: `packer.config.js` and `packer.env.json` ([9864655](https://github.com/hayes0724/packer-blank-theme/commit/9864655))



## <small>1.0.6 (2020-09-30)</small>

* updated configurations and packages ([8471cf4](https://github.com/hayes0724/packer-blank-theme/commit/8471cf4))



## <small>1.0.5 (2020-09-28)</small>

* entrypoint templates ([789a7b5](https://github.com/hayes0724/packer-blank-theme/commit/789a7b5))



## <small>1.0.4 (2020-09-28)</small>

* .babelrc updated ([18b8d04](https://github.com/hayes0724/packer-blank-theme/commit/18b8d04))



## <small>1.0.3 (2020-09-28)</small>

* analyze command added ([229df21](https://github.com/hayes0724/packer-blank-theme/commit/229df21))



## <small>1.0.2 (2020-09-23)</small>

* Updated babel plugins ([3503673](https://github.com/hayes0724/packer-blank-theme/commit/3503673))



## <small>1.0.1 (2020-07-15)</small>

* fixed typo in scripts ([1915ce0](https://github.com/hayes0724/packer-blank-theme/commit/1915ce0))
* npm scripts updated ([39a18a3](https://github.com/hayes0724/packer-blank-theme/commit/39a18a3))
* updated package.json scripts ([6c84a79](https://github.com/hayes0724/packer-blank-theme/commit/6c84a79))
* webpack merge files ([f701484](https://github.com/hayes0724/packer-blank-theme/commit/f701484))



## 1.0.0 (2020-06-19)

* first commit ([a4c90f3](https://github.com/hayes0724/packer-blank-theme/commit/a4c90f3))
* Initial commit ([efffbf6](https://github.com/hayes0724/packer-blank-theme/commit/efffbf6))



21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Eric Hayes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Packer Blank Theme
An empty theme with the minimum requirements to upload to Shopify.
10 changes: 10 additions & 0 deletions dev.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Modify default webpack dev config using this file
const mergeDev = {
module: {
rules: [

],
}
}

module.exports = mergeDev
71 changes: 71 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "packer-blank-tailwind",
"version": "1.0.0",
"description": "Blank tailwind based starting point with all the required files to upload to Shopify using Packer",
"main": "index.js",
"keywords": [
"shopify",
"theme",
"tailwind",
"tailwindcss",
"babel",
"eslint",
"stylelint",
"packer",
"shopify packer"
],
"browserslist": [
"defaults"
],
"repository": {
"type": "git",
"url": "https://github.com/hayes0724/packer-blank-tailwind.git"
},
"scripts": {
"start": "packer start",
"watch": "packer start --skipFirstDeploy",
"build": "packer build",
"analyze": "packer build --analyze",
"deploy": "packer build && packer deploy",
"download": "packer download",
"zip": "packer build && packer zip",
"lint": "packer lint",
"format": "packer format"
},
"author": "Hayes Marketing Inc",
"license": "MIT",
"dependencies": {
"tailwindcss": "1.9.6"
},
"devDependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-async-to-generator": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.10.5",
"@hayes0724/shopify-packer": "^2.0.4",
"@shopify/babel-preset": "^23.1.0",
"cssnano": "^4.1.10",
"cssnano-preset-advanced": "^4.0.7",
"cssnano-preset-default": "^4.0.7",
"eslint-plugin-shopify": "^35.1.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.0.5",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-config-shopify": "^7.4.0",
"stylelint-scss": "^3.18.0"
},
"changelog": {
"repo": "@hayes0724/packer-blank-tailwind",
"labels": {
"feat": ":rocket: Feature",
"fix": ":bug: Bug Fix",
"docs": ":memo: Documentation",
"test": ":memo: Tests",
"build": ":memo: Build",
"refactor": ":memo: Refactor",
"style": ":memo: Style",
"internal": ":house: Internal",
"config": ":wrench Config"
},
"cacheDir": ".changelog"
}
}
7 changes: 7 additions & 0 deletions packer.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Override default packer settings and config using this file
module.exports = {
// Add a reload delay before refreshing browser in ms, Shopify may need several seconds
'network.reload': 0,
// Add additional entrypoint
'entrypoints': {},
}
18 changes: 18 additions & 0 deletions packer.env.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"development": {
"id": "",
"password": "",
"store": "",
"ignore": [
"settings_data.json"
]
},
"live": {
"id": "live",
"password": "",
"store": "",
"ignore": [
"settings_data.json"
]
}
}
9 changes: 9 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
plugins: [
require('tailwindcss'),
require('postcss-preset-env'),
require('cssnano')({
preset: 'advanced',
})
]
}
10 changes: 10 additions & 0 deletions prod.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Modify default webpack production config using this file
const mergeProd = {
module: {
rules: [

],
}
}

module.exports = mergeProd
Empty file added src/assets/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions src/config/settings_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"current": "Default",
"presets": {
"Default": {}
}
}
10 changes: 10 additions & 0 deletions src/config/settings_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"name": "theme_info",
"theme_name": "Packer blank theme",
"theme_version": "1.0.9",
"theme_author": "Eric Hayes",
"theme_documentation_url": "https://github.com/hayes0724/packer-blank-theme",
"theme_support_url": "https://github.com/hayes0724/packer-blank-theme/issues"
}
]
23 changes: 23 additions & 0 deletions src/layout/theme.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="{{ shop.locale }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="">
<link rel="canonical" href="{{ canonical_url }}">

<title>{{ shop.name }}</title>

<meta name="description" content="">

{% render 'style-tags', layout: 'theme' %}
{% render 'script-tags', layout: 'theme' %}

{{ content_for_header }}
</head>

<body data-template="{{ template.name }}" data-template-suffix="{{ template.suffix }}">
{{ content_for_layout }}
</body>
</html>
1 change: 1 addition & 0 deletions src/locales/en.default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit b441257

Please sign in to comment.