Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to version 1 #20

Merged
merged 37 commits into from
Nov 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f9a9219
Refactored $data property
InDIOS Nov 5, 2018
ee4d17c
Reduced optimization iterations
InDIOS Nov 5, 2018
4144e47
Removed format from generated file name
InDIOS Nov 5, 2018
59063f3
Fixed missing imports when cjs format is used
InDIOS Nov 5, 2018
9f7a2c9
Fixed components pattern
InDIOS Nov 5, 2018
440dac5
Used uglify-es to optimize generated code
InDIOS Nov 12, 2018
91b84c5
Removed unnecesary code
InDIOS Nov 12, 2018
bc5426e
Refactored filter generator and changed filter usage to use as functions
InDIOS Nov 12, 2018
0ecef9f
Made internal helper functions globals by default
InDIOS Nov 12, 2018
d714d60
Updated dependecies
InDIOS Nov 12, 2018
21aa684
Added filters tests
InDIOS Nov 12, 2018
b7178f9
Removed examples folder and scripts
InDIOS Apr 29, 2019
5b33433
Fixed bind attribute function name
InDIOS Apr 29, 2019
6fd8982
Some refactoring
InDIOS Apr 29, 2019
6b87835
Fixed param
InDIOS Apr 29, 2019
11387b1
Moving to trebor-tools module
InDIOS Apr 29, 2019
7fdc730
Added a block object to found loops and conditions
InDIOS Apr 29, 2019
272c498
Fixed grammar issues
InDIOS Jun 11, 2019
c727725
Adopt new folder structure
InDIOS Nov 26, 2019
3c5faa0
Rewrote to use the new api
InDIOS Nov 26, 2019
a3ecb38
Updated packages and bump to version 1.0
InDIOS Nov 26, 2019
9ad686b
Configuration changes
InDIOS Nov 26, 2019
e703537
Removed unneed folders
InDIOS Nov 26, 2019
83c2dee
Adopt new api and added some new options
InDIOS Nov 26, 2019
8f9332a
Updated and ordred by number
InDIOS Nov 26, 2019
2d3d508
Updated and housekeeping done
InDIOS Nov 26, 2019
88779d8
Updated test and adopted puppeteer
InDIOS Nov 26, 2019
361cdfa
Included tools as a subfolder
InDIOS Nov 26, 2019
f2e628c
Updated tasks
InDIOS Nov 26, 2019
059b172
Fixed SFC concept
InDIOS Nov 26, 2019
b977410
Fixed error in build task
InDIOS Nov 26, 2019
2f1d606
Rewrote tests to use puppeteer into jasmine
InDIOS Nov 29, 2019
b643a2d
Testing if finally tests work on Travis-CI
InDIOS Nov 29, 2019
51ee572
Merge pull request #19 from InDIOS/next
InDIOS Nov 29, 2019
6072ad5
Merge branch 'master' into development
InDIOS Nov 29, 2019
6aa74b1
Bump to version 1.0.0
InDIOS Nov 29, 2019
d10a33d
Merge branch 'development' of https://github.com/InDIOS/trebor into d…
InDIOS Nov 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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