Explorar el Código

hello world frontend

pull/1/head
Guillaume Vincent hace 9 años
padre
commit
ad75866d9e
Se han modificado 5 ficheros con 53 adiciones y 6 borrados
  1. +2
    -1
      .gitignore
  2. +9
    -1
      README.md
  3. +3
    -0
      app/app.js
  4. +28
    -4
      package.json
  5. +11
    -0
      public/index.html

+ 2
- 1
.gitignore Ver fichero

@@ -25,4 +25,5 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
.idea
.idea
dist

+ 9
- 1
README.md Ver fichero

@@ -7,4 +7,12 @@ lesspass is like keepass without the need to persist passwords

## run tests

npm tests
npm tests

## build app

npm build

## run application

npm start

+ 3
- 0
app/app.js Ver fichero

@@ -0,0 +1,3 @@
import PasswordGenerator from './password-generator';

alert(PasswordGenerator.make_password('password', 'facebook'));

+ 28
- 4
package.json Ver fichero

@@ -4,7 +4,14 @@
"description": "lesspass is like keepass without the need to persist password",
"main": "lesspass.js",
"scripts": {
"test": "node_modules/mocha/bin/mocha --compilers js:babel-core/register --ui bdd --reporter min --recursive ./tests"
"test": "mocha --compilers js:babel-core/register --ui bdd --reporter min --recursive ./tests",
"build": "npm-run-all clean copy 'build:*'",
"build:app": "browserify -e ./app/app.js -o ./dist/app.js",
"clean": "rimraf ./dist/**/*",
"copy": "mkdir -p ./dist && cp -ra public/. dist",
"serve": "static -p ${PORT:-5000} --gzip --host-address 0.0.0.0 dist/",
"start": "npm run serve",
"prestart": "npm run build"
},
"repository": {
"type": "git",
@@ -22,19 +29,36 @@
},
"homepage": "https://github.com/guillaumevincent/lesspass#readme",
"dependencies": {
"bootstrap": "^3.3.6",
"mocha": "^2.3.4"
"bootstrap": "^3.3.6"
},
"jshintConfig": {
"esnext": true
},
"devDependencies": {
"babel-core": "^6.3.15",
"babel-preset-es2015": "^6.3.13"
"babel-preset-es2015": "^6.3.13",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"mocha": "^2.3.4",
"node-static": "^0.7.7",
"npm-run-all": "^1.4.0",
"rimraf": "^2.4.4"
},
"babel": {
"presets": [
"es2015"
]
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"es2015"
]
}
]
]
}
}

+ 11
- 0
public/index.html Ver fichero

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>lesspass</title>
<script src="app.js"></script>
</head>
<body>
hello world
</body>
</html>

Cargando…
Cancelar
Guardar