Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed May 12, 2021
1 parent ce15faf commit 6fd8f7a
Show file tree
Hide file tree
Showing 91 changed files with 7,641 additions and 4 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
with:
node-version: 12
node-version: 14
registry-url: https://registry.npmjs.org
- id: check
uses: EndBug/version-check@v1
with:
file-url: https://unpkg.com/daisyui@latest/package.json
static-checking: localIsNew
- run: npm install

- name: Install dependencies
run: npm install

- name: build
run: npm run build
- name: publish

- name: Publish
run: npm publish
if: steps.check.outputs.changed == 'true'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: cd to docs
run: cd src/docs

# - name: Wait 2 minutes for npm publish
# uses: jakejarvis/wait-action@master
# with:
# time: '2m'

- name: Install dependencies
run: npm install

- name: Generate
run: npm run deploy

- name: Deploy docs to github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/docs/dist
cname: daisyui.com
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
dist
yarn.lock
package-lock.json
/package-lock.json
.next
13 changes: 13 additions & 0 deletions src/docs/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions src/docs/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DAISYUI_VERSION='0.26.0'
93 changes: 93 additions & 0 deletions src/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# .env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp


assets/css/style.css
Loading

0 comments on commit 6fd8f7a

Please sign in to comment.