-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename project from "Project-X" to "Alpine"
- Loading branch information
1 parent
ce66835
commit c7c1209
Showing
23 changed files
with
282 additions
and
175 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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Project X | ||
# Alpine.js | ||
|
||
Project X offers you the reactive and declarative nature of big frameworks like Vue or React at a much lower cost. | ||
Alpine.js offers you the reactive and declarative nature of big frameworks like Vue or React at a much lower cost. | ||
|
||
You get to keep your DOM, and sprinkle in behavior as you see fit. | ||
|
||
Think of it like [Tailwind](https://tailwindcss.com/) for JavaScript. | ||
|
||
> Note: This tool's syntax is almost entirely borrowed from [Vue.js](https://vuejs.org/). I am forever grateful for the gift that it is to the web. | ||
> Note: This tool's syntax is almost entirely borrowed from [Vue.js](https://vuejs.org/)(and by extension [Angular](https://angularjs.org/)). I am forever grateful for the gift they are to the web. | ||
## Install | ||
Add the following script to the end of your `<head>` section. | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/calebporzio/[email protected]/dist/project-x.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script> | ||
``` | ||
|
||
## Use | ||
|
@@ -219,7 +219,7 @@ This is a helpful alternative to setting ids and using `document.querySelector` | |
### `x-cloak` | ||
**Example:** `<div x-data="{}" x-cloak></div>` | ||
|
||
`x-cloak` attributes are removed from elements when Project-X initializes. This is useful for hiding pre-initialized DOM. It's typical to add the following global style for this to work: | ||
`x-cloak` attributes are removed from elements when Alpine initializes. This is useful for hiding pre-initialized DOM. It's typical to add the following global style for this to work: | ||
|
||
```html | ||
<style> | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"/project-x.js": "/project-x.js?id=ec509918933bb1813fd2", | ||
"/project-x.min.js": "/project-x.min.js?id=8bba743308e09dcd7d20" | ||
"/alpine.min.js": "/alpine.min.js?id=7adbda4e32b0fe66797a", | ||
"/alpine.js": "/alpine.js?id=6aaefe3b77e1795daab9" | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
[x-cloak] { display: none; } | ||
</style> | ||
|
||
<script src="https://cdn.jsdelivr.net/gh/calebporzio/[email protected]/dist/project-x.min.js" defer></script> | ||
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script> | ||
</head> | ||
<body> | ||
<table> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.
c7c1209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...And THIS is how you change a name!