Add snippets to ‘oni-css’
This commit is contained in:
parent
5bb510e659
commit
ec7dc0b32e
5 changed files with 48 additions and 2 deletions
|
@ -16,6 +16,16 @@ package-oni-conf:
|
||||||
paths:
|
paths:
|
||||||
- oni-conf/dist/
|
- oni-conf/dist/
|
||||||
|
|
||||||
|
package-oni-css:
|
||||||
|
stage: pre-package-multifile
|
||||||
|
before_script:
|
||||||
|
- rm -rf oni-css/dist
|
||||||
|
script:
|
||||||
|
- cask --path oni-css package
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- oni-css/dist/
|
||||||
|
|
||||||
test-oni-alert:
|
test-oni-alert:
|
||||||
stage: test
|
stage: test
|
||||||
script: make test-oni-alert
|
script: make test-oni-alert
|
||||||
|
@ -33,6 +43,9 @@ test-oni-conf:
|
||||||
|
|
||||||
test-oni-css:
|
test-oni-css:
|
||||||
stage: test
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- package-oni-css
|
||||||
|
needs: [package-oni-css]
|
||||||
script: make test-oni-css
|
script: make test-oni-css
|
||||||
|
|
||||||
test-oni-grep:
|
test-oni-grep:
|
||||||
|
@ -51,6 +64,7 @@ package:
|
||||||
stage: package
|
stage: package
|
||||||
dependencies:
|
dependencies:
|
||||||
- package-oni-conf
|
- package-oni-conf
|
||||||
|
- package-oni-css
|
||||||
before_script:
|
before_script:
|
||||||
- rm -rf bin/
|
- rm -rf bin/
|
||||||
- mkdir bin/
|
- mkdir bin/
|
||||||
|
|
18
GNUmakefile
18
GNUmakefile
|
@ -16,6 +16,12 @@ package-oni-conf:
|
||||||
--funcall package-initialize \
|
--funcall package-initialize \
|
||||||
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))"
|
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))"
|
||||||
|
|
||||||
|
package-oni-css:
|
||||||
|
emacs --batch \
|
||||||
|
--load oni-package.el \
|
||||||
|
--funcall package-initialize \
|
||||||
|
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-css/dist/*.tar\") #'string>)))"
|
||||||
|
|
||||||
install-%:
|
install-%:
|
||||||
emacs --batch \
|
emacs --batch \
|
||||||
--load oni-package.el \
|
--load oni-package.el \
|
||||||
|
@ -32,6 +38,14 @@ install-oni-conf:
|
||||||
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
||||||
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))" \
|
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))" \
|
||||||
|
|
||||||
|
install-oni-css:
|
||||||
|
emacs --batch \
|
||||||
|
--load oni-package.el \
|
||||||
|
--funcall package-initialize \
|
||||||
|
--eval '(package-refresh-contents)' \
|
||||||
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
||||||
|
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-css/dist/*.tar\") #'string>)))" \
|
||||||
|
|
||||||
test-%: install-%
|
test-%: install-%
|
||||||
emacs --batch \
|
emacs --batch \
|
||||||
--load oni-package.el \
|
--load oni-package.el \
|
||||||
|
@ -41,10 +55,10 @@ test-%: install-%
|
||||||
--eval "(setq ert-batch-backtrace-right-margin nil)" \
|
--eval "(setq ert-batch-backtrace-right-margin nil)" \
|
||||||
--funcall ert-run-tests-batch-and-exit
|
--funcall ert-run-tests-batch-and-exit
|
||||||
|
|
||||||
test-oni-css: DEPS := oni-company oni-fci
|
|
||||||
test-oni-bookmark: DEPS := oni-data-dir
|
test-oni-bookmark: DEPS := oni-data-dir
|
||||||
test-oni-php: DEPS := oni-flycheck oni-company oni-fci
|
|
||||||
test-oni-conf: DEPS := oni-yasnippet
|
test-oni-conf: DEPS := oni-yasnippet
|
||||||
|
test-oni-css: DEPS := oni-company oni-fci
|
||||||
|
test-oni-php: DEPS := oni-flycheck oni-company oni-fci
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fv $(FILES)
|
rm -fv $(FILES)
|
||||||
|
|
13
oni-css/Cask
Normal file
13
oni-css/Cask
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
(source gnu)
|
||||||
|
(source melpa)
|
||||||
|
|
||||||
|
(package-file "./oni-css.el")
|
||||||
|
|
||||||
|
(depends-on "oni-company" :git "../" :files ("oni-company.el"))
|
||||||
|
(depends-on "oni-fci" :git "../" :files ("oni-fci.el"))
|
||||||
|
(depends-on "hydra")
|
||||||
|
(depends-on "rainbow-mode")
|
||||||
|
|
||||||
|
(files
|
||||||
|
"*.el"
|
||||||
|
("snippets" "./snippets/*"))
|
5
oni-css/snippets/css-mode/box-shadow
Normal file
5
oni-css/snippets/css-mode/box-shadow
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet; require-final-newline: nil -*-
|
||||||
|
# name: box-shadow
|
||||||
|
# key: boxshadow
|
||||||
|
# --
|
||||||
|
box-shadow: ${1:offset-x} ${2:offset-y}${3: [blur-radius]}${4: [spread-radius]}${5: [color]};
|
Loading…
Reference in a new issue