-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): add basic build impl with minimum config
- Loading branch information
1 parent
d9c2e9b
commit 9324551
Showing
102 changed files
with
1,886 additions
and
127 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
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 |
---|---|---|
@@ -1,3 +1,40 @@ | ||
import { JsonObject } from '@angular-devkit/core'; | ||
|
||
export interface BuildBuilderSchema extends JsonObject {} // eslint-disable-line | ||
export interface AssetObj { | ||
input: string; | ||
output: string; | ||
glob: string; | ||
ignore?: string; | ||
} | ||
|
||
export type Asset = string | AssetObj; | ||
export interface BuildBuilderOptions extends JsonObject { | ||
outputPath: string; | ||
tsConfig: string; | ||
themekitConfig: string; | ||
|
||
watch?: boolean; | ||
sourceMap?: boolean | SourceMapOptions; | ||
optimization?: boolean | OptimizationOptions; | ||
showCircularDependencies?: boolean; | ||
memoryLimit?: number; | ||
poll?: number; | ||
|
||
fileReplacements?: FileReplacement[]; | ||
assets?: Array<Asset>; | ||
|
||
progress?: boolean; | ||
statsJson?: boolean; | ||
extractLicenses?: boolean; | ||
verbose?: boolean; | ||
|
||
webpackConfig?: string; | ||
|
||
root?: string; | ||
sourceRoot?: Path; | ||
} | ||
|
||
export interface FileReplacement { | ||
replace: string; | ||
with: string; | ||
} |
1 change: 0 additions & 1 deletion
1
packages/nx-shopify/src/schematics/nx-shopify/files/src/index.ts.template
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
packages/nx-shopify/src/schematics/nx-shopify/schematic.ts
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/nx-shopify/src/schematics/theme/files/__dot__gitignore.template
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,4 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# Shopify config file | ||
config.yml |
11 changes: 11 additions & 0 deletions
11
packages/nx-shopify/src/schematics/theme/files/config.yml.template
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,11 @@ | ||
# See https://shopify.github.io/themekit/configuration/ for more about this config file. | ||
|
||
development: | ||
password: <your_password> | ||
theme_id: "<your_theme_id>" | ||
store: <you_store_name>.myshopify.com | ||
|
||
production: | ||
password: <your_password> | ||
theme_id: "<your_theme_id>" | ||
store: <you_store_name>.myshopify.com |
17 changes: 17 additions & 0 deletions
17
packages/nx-shopify/src/schematics/theme/files/package.json.template
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,17 @@ | ||
{ | ||
"name": "nx-shopify-src-structure", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"tsc": "tsc -p tsconfig.app.json", | ||
"webpack": "webpack" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"typescript": "^3.9.7", | ||
"webpack": "^4.44.2" | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions
6
packages/nx-shopify/src/schematics/theme/files/src/config/settings_data.json.template
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,6 @@ | ||
{ | ||
"current": "Default", | ||
"presets": { | ||
"Default": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/nx-shopify/src/schematics/theme/files/src/config/settings_schema.json.template
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,10 @@ | ||
[ | ||
{ | ||
"name": "theme_info", | ||
"theme_name": "__className__", | ||
"theme_version": "1.0.0", | ||
"theme_author": "Shopify", | ||
"theme_documentation_url": "https://github.com/trafilea/nx-shopify", | ||
"theme_support_url": "https://github.com/trafilea/nx-shopify/issues" | ||
} | ||
] |
3 changes: 3 additions & 0 deletions
3
packages/nx-shopify/src/schematics/theme/files/src/environments/environment.prod.ts.template
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 @@ | ||
export const environment = { | ||
production: true, | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/nx-shopify/src/schematics/theme/files/src/environments/environment.ts.template
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 @@ | ||
export const environment = { | ||
production: false, | ||
}; |
8 changes: 8 additions & 0 deletions
8
packages/nx-shopify/src/schematics/theme/files/src/locales/en.default.json.template
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,8 @@ | ||
{ | ||
"general": { | ||
"404": { | ||
"title": "Not found", | ||
"subtext_html": "The page you were looking for does not exist" | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
packages/nx-shopify/src/schematics/theme/files/src/theme/layout/theme.liquid.template
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 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>{{ page_title }}</title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="description" content="{{ page_description | escape }}"> | ||
<link rel="canonical" href="{{ canonical_url }}"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> | ||
{{ content_for_header }} <!-- Header hook for plugins --> | ||
</head> | ||
<body> | ||
|
||
{% section 'header' %} | ||
|
||
{% for link in linklists.main-menu.links %} | ||
{% assign child_list_handle = link.title | handleize %} | ||
{% if linklists[child_list_handle].links != blank %} | ||
<a href="{{ link.url }}">{{ link.title }}</a> | ||
[{% for childlink in linklists[child_list_handle].links %} | ||
<a href="{{ childlink.url }}">{{ childlink.title | escape }}</a> | ||
{% endfor %}] | ||
{% else %} | ||
<a href="{{ link.url }}">{{ link.title }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<a href="/cart">cart</a> | ||
|
||
{% if shop.customer_accounts_enabled %} | ||
{% if customer %} | ||
<a href="/account">account</a> | ||
{{ 'log out' | customer_logout_link }} | ||
{% else %} | ||
{{ 'log in ' | customer_login_link }} | ||
{{ 'register' | customer_register_link }} | ||
{% endif %} | ||
{% endif %} | ||
|
||
<main role="main"> | ||
{{ content_for_layout }} | ||
</main> | ||
|
||
{% section 'footer' %} | ||
</body> | ||
</html> |
Empty file.
1 change: 1 addition & 0 deletions
1
packages/nx-shopify/src/schematics/theme/files/src/theme/layout/theme.ts.template
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 @@ | ||
console.log('Hello from theme.ts! :)'); |
Oops, something went wrong.