Skip to content

Commit

Permalink
Merge pull request #20 from InDIOS/development
Browse files Browse the repository at this point in the history
Bump to version 1.0.0
  • Loading branch information
InDIOS authored Nov 29, 2019
2 parents 0c23e2d + d10a33d commit 96a72bb
Show file tree
Hide file tree
Showing 181 changed files with 17,140 additions and 17,278 deletions.
34 changes: 17 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"env": {
"browser": true,
"commonjs": true,
"amd": true,
"es6": true,
"node": true
"commonjs": true,
"es6": true,
"node": true,
"amd": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"html"
],
},
"plugins": [
"html"
],
"rules": {
"no-const-assign": "error",
"no-this-before-super": "error",
"no-this-before-super": "warn",
"no-undef": "error",
"semi": "warn",
"eqeqeq": [
"warn",
"smart"
],
"no-unreachable": "error",
"no-unused-vars": "warn",
"constructor-super": "warn",
"eqeqeq": ["warn", "smart"],
"semi": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "error"
}
}
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Dependency directories
.vscode/
node_modules/
specs/*
!specs/components
specs/components/*
!specs/components/readme.txt
build/
tests/
test/**/*.js
test/**/*.map
tools/*.js
tools/*.map
test/index.js
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
examples/
src/
test/
specs/
tests/
tools/index.ts
tools/tsconfig.json
package-lock.json
Expand Down
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
language: node_js
node_js:
- "node"
- "13"
- "12"
- "11"
- "10"
- "9"
- "8"
sudo: required
addons:
chrome: stable
install:
- npm i
script:
- npm run build:src
- npm run build:tools
- npm run build
- npm run build:test:components
- npm test
cache:
directories:
Expand Down
98 changes: 33 additions & 65 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,35 @@
{
// Utilizar IntelliSense para aprender acerca de los posibles atributos.
// Mantenga el puntero para ver las descripciones de los existentes atributos
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Tests",
"program": "${workspaceFolder}/test/index.js"
},
{
"type": "node",
"request": "launch",
"name": "Launch Context",
"program": "${workspaceFolder}/src/utilities/context.ts",
"outFiles": [
"${workspaceFolder}/build/**/*.js"
]
},
{
"type": "firefox",
"request": "launch",
"reAttach": true,
"name": "Launch index.html",
"firefoxExecutable": "D:\\INSTALLERS\\Internet\\FirefoxPortable\\App\\Firefox\\firefox.exe",
"file": "${workspaceFolder}/todomvc/dist/index.html"
},
{
"type": "node",
"request": "launch",
"name": "Launch Generator",
"program": "${workspaceFolder}/src/index.ts",
"outFiles": [
"${workspaceFolder}/build/**/*.js"
]
},
{
"type": "node",
"request": "launch",
"name": "Launch CLI",
"program": "${workspaceFolder}/bin/trebor.js",
"cwd": "D:\\OTHERS\\Downloads\\electric-count",
"args": [
"-i",
"electric-count.html",
// "./examples/counter/src/components/counter.html",
// "-o",
// "./examples/counter/src/components/counter.umd.js"
// "-i",
// "./examples/todomvc/src/components/todo.html",
// "-o",
// "./examples/todomvc/src/components/todo.umd.js"
]
},
{
"type": "node",
"request": "launch",
"name": "Launch CSS",
"program": "${workspaceFolder}/src/utilities/cssToJson.ts",
"outFiles": [
"${workspaceFolder}/build/**/*.js"
]
}
]
// Use IntelliSense para saber los atributos posibles.
// Mantenga el puntero para ver las descripciones de los existentes atributos.
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Iniciar parser",
"program": "${workspaceFolder}\\test.js"
},
{
"type": "node",
"request": "launch",
"name": "Iniciar eslint parser",
"program": "${workspaceFolder}\\meriyahEslintParser.js"
},
{
"type": "node",
"request": "launch",
"name": "Iniciar test",
"program": "${workspaceFolder}\\test\\index.ts",
"outFiles": ["${workspaceFolder}\\test\\**/*.js"]
},
{
"type": "node",
"request": "launch",
"name": "Iniciar cli",
"program": "${workspaceFolder}\\bin\\trebor.js",
"cwd": "${workspaceFolder}",
"args": ["-i", "tests/testing.html"]
}
],
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib"
"typescript.tsdk": "node_modules\\typescript\\lib"
}
27 changes: 0 additions & 27 deletions .vscode/tasks.json

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
1.0.0
- Full rewrote of core.
- Component declarations export a class now.
- Changed interpolation expression from `{{ ... }}` to `{ ... }`.
- Added the ability to bind `name` slot attribute.
- Use `puppeteer` for test and drop `PhantomJS`.
- Dirctives are now NodeJS modules and work in compile time.
- NodeJS API change and now support parsers for javascript, html and css.
- Added tools inside Trebor again for more maintainability.

0.3.3
- Added project descriptions to Readme.
- Fixed bug when template elements are condition or loop blocks.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
### Overview

[TreborJS](https://npmjs.org/package/trebor) is a [NodeJS](http://nodejs.org) module to compile `component declarated files` into `stand-alone web component` javascript files to be used
in the browser. The format of a [component declaration file](https://github.com/InDIOS/trebor/wiki/Component-declaration) is specified be the module and described
in the browser. The format of a [single file component](https://github.com/InDIOS/trebor/wiki/Component-declaration) is specified be the module and described
in it's [documentation](https://github.com/InDIOS/trebor/wiki).

### Why?

In this days front-end frameworks are very populars comming to be an important part of a web application. Almost all of then have a runtime library that is part of the application, [Vue](https://github.com/vuejs/vue), [React](https://github.com/facebook/react), [Angular](https://github.com/angular/angular), but what if we can do a component that no need a runtime lib?
what if can create all components without useless code and can run it self?. That is what `TreborJS` do, a module that compile an structured html file in a javascript file with just the code you need and nothing more.
In this days front-end frameworks are very populars comming to be an important part of a web application. Almost all of then have a runtime library that is part of the application, [Vue](https://github.com/vuejs/vue), [React](https://github.com/facebook/react), [Angular](https://github.com/angular/angular), but what if we can make a component that no need a runtime lib?
What if we can create all components without useless code and can run it self?. That is what `TreborJS` do, a module that compile an structured html file in a javascript file with just the code you need and nothing more.

## How to use

Expand Down Expand Up @@ -48,4 +48,4 @@ Read the documentation [here](https://github.com/InDIOS/trebor/wiki)
[github-img]: https://img.shields.io/github/release/InDIOS/trebor.svg
[github-url]: https://github.com/InDIOS/trebor/releases/latest
[travis-image]: https://img.shields.io/travis/InDIOS/trebor/master.svg?label=build
[travis-url]: https://travis-ci.org/InDIOS/trebor
[travis-url]: https://travis-ci.org/InDIOS/trebor
Loading

0 comments on commit 96a72bb

Please sign in to comment.